Site Map Page Template

Notes

This template page requires the jQuery library. Loading the library cannot be done within the template page code itself, it must be done outside and before the page is loaded. For that reason, the following code is added to the ‘functions.php’ file:

The function here is also used to register and enqueue the CSS style sheet and the jQuery script file file. Note the use of the ‘is_page_template()’ function with the sitemap template file name given as the function parameter to specify that only the given template page will load the desired styles and scripts.

Share
The short URL of the present article is: http://www.terryobrien.me/1i3n4

Page 5 of 5
First | Prev | 1 | 2 | 3 | 4 | 5 | Next | Last
View All