[Support request] CSS Issue/Header Help – Conflicting code

Home Forums Support [Support request] CSS Issue/Header Help – Conflicting code

Home Forums Support CSS Issue/Header Help – Conflicting code

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #775426
    yury

    I installed a premade generate press design, and it has this code but it’s causing an issue for me:

    /* GeneratePress Site CSS */ .inside-article,
    .sidebar .widget,
    .comments-area {
    border: 1px solid rgba(232, 234, 237, 1);
    box-shadow: 0 0 10px rgba(232, 234, 237, 0.5);
    }

    There is a line/space where my menu ends and where the design begins so you see that extra white there. How do I fix the issue? It seems the way to fix it is removing the code above from .comments-area but then that messes up with the code on all the other pages/posts becauase it removes the box-shadow/border around the main content area

    #775433
    Leo
    Staff
    Customer Support

    Hi there,

    You can modify the CSS like this to exclude the home page:

    body:not(.home) .inside-article,
    .sidebar .widget,
    .comments-area {
        border: 1px solid rgba(232, 234, 237, 1);
        box-shadow: 0 0 10px rgba(232, 234, 237, 0.5);
    }

    Let me know if this helps 🙂

    #775438
    yury

    Thank you but that won’t be a good fix because I have the same issue on other pages:
    https://www.onbiz.com/deals/
    https://www.onbiz.com/online-business-ideas/

    #775440
    Leo
    Staff
    Customer Support

    Is there any logic in this? Like do you only need the border in single posts?

    #775444
    yury

    I guess for the time being if we can just limit it to only posts that will work

    #775458
    Leo
    Staff
    Customer Support

    This should do:

    body.single .inside-article,
    body.single .sidebar .widget,
    body.single .comments-area {
        border: 1px solid rgba(232, 234, 237, 1);
        box-shadow: 0 0 10px rgba(232, 234, 237, 0.5);
    }
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.