WordPress.org

Ready to get started?Download WordPress

Forums

Different Layouts on Different Pages (3 posts)

  1. whiteRED
    Member
    Posted 2 years ago #

    Just wondering how I can design different layouts on each page. There doesn't seem to be any option available. The ThemeShift template shows samples of various layouts but there seems to be no way to implement them. Any ideas?

    The site I am working on is transfer.whitered.ca

  2. futurepocket
    Member
    Posted 2 years ago #

    There is a templates option for every page you create in WordPress. If your theme has multiple different templates, you can select a different template for each page (check your screen options in case its not showing up). If you want to have different styles for every page, use if is_page ( ID ) in your page.php to define separate CSS styles for every page and add them into your CSS. If you want to create custom templates:

    http://codex.wordpress.org/Pages

  3. peredur
    Member
    Posted 2 years ago #

    I don't know about that theme in particular, but in general you can use the WordPress Template Hierarchy to generate different layouts for different pages.

    For example, if you had a page with the slug 'cv', you could create a page called page-cv.php, which would be used instead of page.php for a page with the slug 'cv'.

    The easiest way to do this is to create page-cv.php and copy the contents of page.php into it (assuming page.php exists, which it usually does). You can then mess about with page-cv.php to output the html you want.

    HTH

    PAE

Topic Closed

This topic has been closed to new replies.

About this Topic