• Resolved xfourninetwox

    (@xfourninetwox)


    Hey All

    Is there some code I can add to a blog to have the sidebar visible when reading posts that will hide it when reading pages?

    And on the pages is there a way to increase the width to compensate for the empty space left by the invisible sidebar? If my total width is 800 and 550 of this is used for test in the posts section and 250 is used for the sidebar I’d like to get that 250 back and make the pages able to be a full 800 wide if it’s possible to hide the sidebar.

    May sound a bit confusing but would love to get a resolution for this problem.

    Thanks folks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Yes.

    Make a page.php in your theme folder and configure it without the sidebar and with a wider text space.

    See Stepping Into Templates

    Thread Starter xfourninetwox

    (@xfourninetwox)

    My issue was I took the <?php get_sidebar(); ?> out of the page.php but I wasn’t certain how to set the page to have wider text area. I assumed I would make the #page in the css expand out to the full width of the page but it didn’t seem to over ride it. Where do I set the wider text space?

    Thread Starter xfourninetwox

    (@xfourninetwox)

    Anyone?

    You’re on the right track. What theme are you using?

    Thread Starter xfourninetwox

    (@xfourninetwox)

    I used the default and over wrote the header and footer with my own aspects. I tried adding something like this but that over wrote the posts section as well

    #page {
    .narrowcolumn width:800;
    }

    You’re using the default Kubrick theme?

    Thread Starter xfourninetwox

    (@xfourninetwox)

    I worked off whatever was the default and made copies. Does anyone think they might have a coded solution or know where I might find one?

    Thread Starter xfourninetwox

    (@xfourninetwox)

    To those interested I’ve found a fitting solution that seems to be working. In my page.php file i’ve editing this section to include a style/width which seems to override the width of only the pages without interference in the posts.

    <div class=”entry” style=”width:815px;”>

    @xfourninetwox nice work around. i like it. i was looking for the same thing!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Hide sidebar on Pages, visible on Posts – Page Width?’ is closed to new replies.