• Hello,

    I have been coding HTML, CSS, JAVASCRIPT, JQUERY for a couple years now. I also know a little PHP.

    I am developing a multi-page website using one theme. The theme is ZERIF-LITE and has provided me with the front page. What I have done for the other pages has taken the font-page.php and formatted it specifically to each page – adding the suitable HTML, CSS and JAVASCRIPT. Once I have created the page I upload the file through FTP and use that specific page template. Therefore I do not have to change anything in WORDPRESS’S GUI (dashboard).

    Is this a best practice? If not what would be?

    I have thought of creating includes for sections and pulling them in much like header.php/footer.php but I would still need a different template for each page?

    Any thoughts or advice on this would be very much appreciated. I can’t help but think this may not be the best approach and I cannot find any documentation to send me in another direction.

    Thank you,
    Jennifer

Viewing 1 replies (of 1 total)
  • The above approach seems very labour intensive and far better suited to building a static site rather than using a dynamic CMS like WordPress. PHP includes are also not recommended within page templates. You’d be better off looking running multiple queries and/or using shortcodes instead. Maybe if you provided a little more information as to what is needed on these pages, someone would be able to offer suggestions for a better approach.

Viewing 1 replies (of 1 total)

The topic ‘Template Page Development: Best Practice’ is closed to new replies.