• Hello

    Is it possible to use different page templates within WP?

    For example, I have a page for reviews that I want to be completely styled differently to the index/single.php pages. Is there an easy way this can be acheived?

    I looked into the body class on the codex but I am unsure of how to implement it (if it is indeed the solution).

    Thank you

Viewing 1 replies (of 1 total)
  • Moderator Kathryn Presner

    (@zoonini)

    You can do this in a few different ways.

    1) CSS Method – You can create special classes for your reviews page. For example, look at the body tag for your reviews page and see what it says.

    For example, it may look something like this:

    <body class="page page-id-70 page-child parent-pageid-7 page-template page-template-page-en-php"

    Take the unique class for that page – in the example above, it would be page-id-70 – and create your CSS for that class. Those styles will now be applied to only that page.

    2) Custom Template Method – The other way to do it is to create a custom template for the reviews page. Here are the instructions for doing that:

    https://www.wordpressmax.com/customize-wordpress/custom-page

    Both methods work well, it really depends how extensively you want to customize the page.

Viewing 1 replies (of 1 total)
  • The topic ‘Pages using different templates?’ is closed to new replies.