[Resolved] Footer Widget above Sidebar in mobile view

Home Forums Support [Resolved] Footer Widget above Sidebar in mobile view

Home Forums Support Footer Widget above Sidebar in mobile view

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #814959
    Christopher

    Hey Tom,

    first of all – love your theme. Great Job!

    Is it possible to have the Footer Widget 1 above the Sidebar Widgets in mobile view?

    Best Chris

    #815031
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Glad you’re enjoying it!

    Unfortunately, that’s not possible without javascript (which would be hacky and jumpy), as the elements aren’t direct siblings.

    What you could try is adding the content you wish to show in a hook above the sidebars using a hook.

    1. Add a Hook Element: https://docs.generatepress.com/article/hooks-element-overview/
    2. Set the hook to generate_after_primary_content_area
    3. Add your content like this:

    <div class="hide-on-desktop hide-on-tablet">
        Your content you wish to show on mobile, above the sidebar here.
    </div>
    #815207
    Christopher

    perfect. Thanks a lot.

    #815771
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

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