[resolved] Sidebar does not adjust width automatically (3 posts)

  1. 5tar5hine
    Posted 4 years ago #

    After installing widget logic, the sidebar disappeared on all pages (page.php) except my blog page (index.php). I added <?php get_sidebar(); ?> to the page.php and voila, the sidebar is back. However, the width is not automatically adjusted anymore to fit the page names. The blog page still works fine.

    Here is the URL:

    And this is the blog page:

    I am a total rookie and slowly learning. Thank you in advance for your help and time (I searched for an answer, unsuccessfully).

  2. peredur
    Posted 4 years ago #

    You need to override this style rule in style.css:

    .singular #content, .left-sidebar.singular #content {
      margin: 0 7.6%;
      position: relative;
      width: auto;

    You need:

    .singular #content, .left-sidebar.singular #content {
      margin: 0 7.6% 0 34%;
      width: 58.4%;

    This will give your single page content the same position and dimensions as your posts page content.

    You should, of course, create a child theme and make the changes there.



  3. 5tar5hine
    Posted 4 years ago #

    Worked like a charm!!!

    And thanks a lot for the tip with the child theme :)

Topic Closed

This topic has been closed to new replies.

About this Topic