Support » Fixing WordPress » Disabled sidebar – How to give static and dynamic pages same width?

  • Hi everyone,

    I’m new to the wordpress universe. I’ve run a blog on wordpress.com for a while and now I transferred it to my own space. First I must say that I’m not a CSS expert and not a native english speaker.

    I use the Baskerville theme and want to let the sidebar disappear on all pages. For the static pages (“Über Der Bürokrat”, “Kontakt”, “Impressum”) I chose the page attribute option with no sidebar.

    For the dynamic pages there isn’t such an option so I used the following customize CSS code:

    
    .sidebar {
       display: none;
    }
    
    body.single .content {
       width: 75%;
       float: none !important;
       margin: auto;
    }
    
    .featured-media img {
       width: 100%;
    }
    

    It works so far, BUT: static and dynamic pages don’t have the exact same width now. I can play with the body.single content width value (73%, 74%, 75%…) but it never has the exact static pages size.

    Here’s an example for a static page: /wp/ueber-derbuerokrat/

    And here’s an example for a dynamic page:
    /wp/2019/04/12/review-palomino-blackwing-volume-4/

    They don’t have the exact same width.

    Many thanks for your help.

    • This topic was modified 3 weeks, 5 days ago by nr261.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • lisa

    (@contentiskey)

    Asking your question in theme specific support forum area would get more accurate guidance.
    Use this link: https://wordpress.org/support/theme/baskerville/

    Hi Lisa, thank you for your reply. You’re right, this forum area would’ve been the better choice. I don’t know if it’s allowed to start a second topic with my question. Maybe a moderator could move my topic.

    But it looks like I solved the problem with this code:

    body.single .content {
    width: 944px;
    max-width: 100%;
    float: none !important;
    margin: auto;
    }

    lisa

    (@contentiskey)

    Glad to hear you have solved the issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.