Different Layouts for Different Pages on WP?

6 replies
  • WEB DESIGN
  • |
Hi Warriors:

I hope someone can help me with this. I want to have different layouts for different pages on a Wordpress site. Is this possible? Is it theme dependent? If so, what themes can do this and how do you identify which ones those are?

Any advice is much appreciated. Finding out what doesn't work is taking a lot of time.
#layouts #pages
  • Profile picture of the author wfcheapseo
    Hi,
    Yes it it possible to make different layouts for different pages. You just have to create some page template on the theme. Then you can chose the different layouts in dashboard.

    In how many pages do you want to use different layouts?

    Thanks
    {{ DiscussionBoard.errors[4125468].message }}
  • Profile picture of the author jeedal
    wfcheapseo thanks, it was helpfull.
    {{ DiscussionBoard.errors[4141855].message }}
    • Profile picture of the author erbuc
      Hi Judy,

      There are a couple of things you should be aware of when creating a new page template for your WordPress theme.

      1.) The VERY first line of your page template should read similar to this:

      PHP Code:
      <?php /* Template Name: My Template Name */ ?>
      This will ensure that when you Add or Edit a page in WordPress, and you select a Template to use, the name of the Template will show up properly.

      2.) Name your files using this format "page-templatename.php" where "templatename" is your own name for the file. You can use the same method for single posts, sidebars, headers and footers (even taxonomys if you are that advanced). You can start by using the page.php file for your theme and naming it to your new template file name immediately.

      Single post = single-templatename.php
      Sidebar = sidebar-templatename.php
      Header = header-customheadername.php

      I think you get the idea.
      {{ DiscussionBoard.errors[4145095].message }}
  • Profile picture of the author Sire
    Hi Judy, I'm using a WP theme that has a whole set of templates already built into it as well as offering short codes so that you can configure it even more. I've used it's templates to design a squeeze style page to promote my lottery affiliate.
    {{ DiscussionBoard.errors[4145114].message }}
  • Profile picture of the author Kezz
    Page templates are the best solution, but if you're not familiar with coding another solution is the WP Post Columns plugin.

    It lets you create columns inside any post or page, in as many rows as you want. So you can have one row split into thirds, another into halves and so on.

    It makes it very easy to create custom layouts on the fly with no coding.

    WordPress › WP Post Columns « WordPress Plugins
    {{ DiscussionBoard.errors[4149741].message }}
    • Profile picture of the author erbuc
      Hey Kezz,

      Very nice recommendation. That is a very simple and easy solution to formatting a page layout.

      Sometimes we developers forget it is a bit difficult to get in touch with the code of creating a page template.

      I like your approach ... and the plugin. Very useful.
      {{ DiscussionBoard.errors[4152902].message }}

Trending Topics