[Resolved] Site-wide search before footer

Home Forums Support [Resolved] Site-wide search before footer

Home Forums Support Site-wide search before footer

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #796653
    Sven

    Hi there,
    the start page on https://fudiggl.de contains a search field at the end of that page (realised within a section).
    How can I add this section before the footer widgets, so it’s shown on any page/post…?
    I wonder, if I can do that with “elements” but I don’t know how to and I really appreciate your help!
    Best regards,
    Sven

    #796696
    David
    Staff
    Customer Support

    Hi there,

    Elements is a good way to go, Create a new Hook Element.
    Select the before_footer hook. Add your markup like so to create the container:

    <div class="search-section">
        <div class="grid-container">
            <!-- add your markup here -->
        </div>
    </div>

    Set your Display Rules.

    And this CSS to Additional CSS or the your child theme style sheet. to style it:

    .search-section {
        background-color: #6b6b6b;
    }
    .search-section .grid-container {
        padding-top: 40px;
        padding-bottom: 40px;
        color: #ffffff;
    }

    More info:

    https://docs.generatepress.com/article/hooks-element-overview/

    #797281
    Sven

    Wow! THAT is easy… already realised (2 minutes max.)!

    Thank you for your advice and fast reaction! Thumbs up! Greatest support!!!

    Sven

    #797409
    David
    Staff
    Customer Support

    Awesome – glad to be of help 🙂

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