[Resolved] How To Add Background Colour In Hook Element?

Home Forums Support [Resolved] How To Add Background Colour In Hook Element?

Home Forums Support How To Add Background Colour In Hook Element?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1147761
    Paramvir

    Hello. I am having fun configuring my GP.

    However, can’t figure out how to add a background colour to a Hook Element created ‘right after main content’, above the footer, which has ‘WPShowPost’ shortcode displaying 3 random posts.

    #1147990
    David
    Staff
    Customer Support

    Hi there,

    glad to hear you’re enjoying GP 🙂

    Edit your Hook Element and add this HTML around your shortcode:

    <div class="wpsp-wrapper">
    [wpsp shortcode goes here]
    </div>

    Now add this CSS:

    .wpsp-wrapper {
        background-color: #fff;
        padding: 40px;
    }
    
    @media (max-width: 768px) {
        .wpsp-wrapper {
            padding: 30px;
        }
    }
    #1149165
    Paramvir

    Thanks. Works fine.

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