• Resolved Jam

    (@pimaniii)


    I’ve seen this before…

    If I want some of my pages to be full width, and have no sidebar, etc. you create a different page templates.

    What code should I copy? I think I know what I need to edit, but how do I create a new template for a few of my pages?

Viewing 10 replies - 1 through 10 (of 10 total)
  • look at file onecolumn-page.php in the default twentyten theme, folder /wp-content/themes/twentyten/ to your theme.

    You will have to add some CSS to your stylesheet.

    Thread Starter Jam

    (@pimaniii)

    Thanks!

    Actually, I found out that the thing I want to change is in my header.php.

    How can I make some pages have this element, while others do not?

    Your question is too generic to answer as asked.

    What is the element, and what pages do you want to have it?

    Thread Starter Jam

    (@pimaniii)

    Sorry, the slideshow. It is Piecemaker image rotator that came with the theme. I would like it on the home page, but not on any other page.

    Thanks!

    What is the element to be included only on the home page, a javascript file?

    Thread Starter Jam

    (@pimaniii)

    I think it is only a line of code in header.php

    Put the line of code in between this

    <?php if ( is_front_page() ) { ?>
       --- line of code goes here
    <?php } ?>

    If its a posts page and not a static home page and the above doesn’t work, change the first line to this
    <?php if ( is_home() ) { ?>

    Hey I just ran across this post. I have had a similar problem. You mentioned that you must add some code to make onecolumn-page.php work on other themes.

    I am using Liquorice right now. https://Www.maxaberger.com i copied the php over to my liquroice theme but when I try to apply onecolumn to my homepage it just messes things up in my template. All I want to do is get rid of my sidebar on my home page but have it exist for all other pages.

    -Max

    @uzbekadventure

    You can make the sidebar not appear on your homepage by adding this to your stylesheet

    .home #secondaryContent { display: none; }

    You will probably want to change the position of the left column after you make that change.

    Thread Starter Jam

    (@pimaniii)

    Wow! Thank you very much stvwlf! It worked! Awesome!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Create "Fullwidth-page.php" page template?’ is closed to new replies.