• 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:

    https://pastebin.com/DMckbU3w

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

    https://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:
    https://www.orlandoparques.com.br/formulario/
    This is one page created before changing the page.php:
    https://www.orlandoparques.com.br/hotel-em-orlando/
    Thanks in advance for any help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • <!-- 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.

    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.

    Thread Starter amexudo

    (@amexudo)

    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

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

    kinda suggest otherwise. hope i helped thought.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘new created pages different from old pages’ is closed to new replies.