WordPress.org

Ready to get started?Download WordPress

Forums

new created pages different from old pages (5 posts)

  1. amexudo
    Member
    Posted 2 years ago #

    Hi everyone,
    I'm having a tittle headache here, this is why:
    I was trying not to display the side bar in certain pages and changed the "Page" template (page.php). After that, new created pages didn't show the content, they had a little css in the main container that said content: " ";. The code of page.php looked like this:

    http://pastebin.com/DMckbU3w

    Then I found that there was missing a closing `</div>
    Then I closed the div like this:

    http://pastebin.com/9qd1RE38

    But now the side bar appears just on the new created pages and this was not my intent. I want the side bar in all pages besides some. Why should two pages created with the same template be different?
    Example - the new created pages have sidebar:
    http://www.orlandoparques.com.br/formulario/
    This is one page created before changing the page.php:
    http://www.orlandoparques.com.br/hotel-em-orlando/
    Thanks in advance for any help!

  2. KrashKartMedia
    Member
    Posted 2 years ago #

    <!-- SIDEBAR -->
                    <div class="five columns sidebar">
                            <div id="style-sidebar">
                            <?php dynamic_sidebar( 'default-widget-area' ); ?>
                            </div>
                    </div>
                    <!-- /SIDEBAR -->

    just delete

    <?php dynamic_sidebar( 'default-widget-area' ); ?>

    from the page. and give the page a template name so you can use that.

  3. KrashKartMedia
    Member
    Posted 2 years ago #

    of you can delete

    <div class="five columns sidebar">
                            <div id="style-sidebar">
                            <?php dynamic_sidebar( 'default-widget-area' ); ?>
                            </div>
                    </div>

    and then make the body container a full width page so it doesnt look like there is a missing gap to the right, where the sidebar should be.

  4. amexudo
    Member
    Posted 2 years ago #

    Hi,
    thanks for your answer.
    The issue is I want a sidebar in ALL pages besides 2 or 3.
    So if I delete those lines, I don't have the sidebar in any page.
    Thanks,
    Alexandre

  5. KrashKartMedia
    Member
    Posted 2 years ago #

    I was trying not to display the side bar in certain pages

    kinda suggest otherwise. hope i helped thought.

Topic Closed

This topic has been closed to new replies.

About this Topic