• Resolved atl_sud

    (@atl_sud)


    Hi all,

    I am attempting to create my first WP site and was wondering if the layout of the pages can be customized.

    For example, on the Home page I was populating the widgets in the left side of the page. When adding new pages, like “Blog” or “Contact” the widget elements are carried over from the home page. Is there a way to customize the side elements for each page? On another page I would like to utilize the entire page without any side navigation elements to showcase my Amazon Astore.

    Is this something that can be done on a WP template?

    Thanks in advance.

    T

Viewing 2 replies - 1 through 2 (of 2 total)
  • Is there a way to customize the side elements for each page?

    Yes – by creating different sidebar files (eg sidebar-two.php, sidebar-three.php etc) and then calling the appropriate sidebar based on the is_page conditional in your theme’s page.php template. Eg:

    <?php if( is_page('About' ) ) get_sidebar('two');
    elseif( is_page('Contact' ) ) get_sidebar('three');
    else get_sidebar();?>
    ke vinritt

    (@ke-vinritt)

    sorry – in wrong place

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘customizing page layout for themes’ is closed to new replies.