[Resolved] Sticky Floating Call to Action

Home Forums Support [Resolved] Sticky Floating Call to Action

Home Forums Support Sticky Floating Call to Action

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1163241
    Michael

    Hi is there a way to make floating sticky CTA in top header (for desktop) and bottom (for mobile) get free shipping.
    like in this website https://drivealogue.com/
    many Thanks

    #1163588
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    For sure, but it involves some HTML and CSS.

    For example, you can:

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

    <div class="sticky-cta">
        Your text
    </div>

    4. Set the Display Rules.

    Then you can use CSS to style it:

    .sticky-cta {
        position: fixed;
        top: 0;
        right: 10%;
        max-width: 200px;
        background-color: red;
        color: white;
    }

    Hope this helps get you started ๐Ÿ™‚

    #1164280
    Michael

    Thank you Tom for your Help.

    #1164356
    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.