[Resolved] Hide Post via mobile & reduce margins

Home Forums Support [Resolved] Hide Post via mobile & reduce margins

Home Forums Support Hide Post via mobile & reduce margins

  • This topic has 7 replies, 2 voices, and was last updated 1 year ago by David.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1510558
    Markus

    HI,
    in a post attached above I have included an NGG slideshow.

    1. i do not want to see this (this one post) via mobile phone. Unfortunately I don’t know how to embed the display:none correctly & where?

    2. how can I reduce the white borders in this one post to a minimum?

    Or is there another way to integrate the slideshow at this position? About Elements? I’m new to GeneratePress and don’t know my way around yet.

    Thanks for your help before.
    Greetings
    Markus

    #1510741
    David
    Staff
    Customer Support

    Hi there,

    1. Try this CSS to remove the first post that contains the slider:

    @media(max-width: 768px) {
        .blog.separate-containers article:first-of-type .inside-article {
            display: none !important;
        }
    }

    2. And this CSS to remove its padding:

    .blog.separate-containers article:first-of-type .inside-article {
        padding: 0;
    }
    #1511561
    Markus

    Thx a lot! It works both.

    #1511745
    David
    Staff
    Customer Support
    #1832036
    Markus

    Hi

    I still have the following question:
    On the 2nd blog page you can see the image I put as background in the first post behind slideshow from page 1.
    How can I limit this to the 1st post on the 1st page?

    Thanks & greetings
    Markus

    #1832041
    David
    Staff
    Customer Support

    So you have this CSS:

    .blog.separate-containers article:first-of-type .inside-article {
        background: url(/grafix/bg16.jpg);
    }

    Try changing that to:

    .blog.separate-containers:not(.paged) article:first-of-type .inside-article {
        background: url(/grafix/bg16.jpg);
    }
    #1832046
    Markus

    perfect, it works fine.
    thx for the fast service 🙂

    Regards
    Markus

    #1832260
    David
    Staff
    Customer Support
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.