[Resolved] Floating Trust Badge on Bottom, Animation on Scroll

Home Forums Support [Resolved] Floating Trust Badge on Bottom, Animation on Scroll

Home Forums Support Floating Trust Badge on Bottom, Animation on Scroll

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1267242
    Robert

    Hi!

    I want to add a “sticky, floating” trust badge like Trusted Shops at the bottom of every WooCommerce page. The trust badge graphic is actually an HTML code that updates the number of review stars. It is also linked to the trust portal, e.g. trustedshops.com.

    The bagde should stay at the same viewpoint at all times, bottom right. It should only be visible on desktop.

    Unfortunately, adding a sticky section to the global footer with Elementor theme builder interferes with sticky cart bottom panel.

    Appreciate your ideas!

    Robert

    #1267607
    David
    Staff
    Customer Support

    Hi there,

    you can try adding it to the site using a GP Hook Element:

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

    The after_footer hook would be a good place to add it.
    We can then provide some CSS to position it.

    #1274908
    Robert

    Hi David!

    Thanks! The badge should have a fixed (‘sticky’) position: horizontally aligned right & vertically centered. Delayed follow on scroll would be bonus. How can that be achieved (with CSS)?

    Position of hook 'after_footer'

    Cheers,

    Robert

    #1275052
    David
    Staff
    Customer Support

    Can you add the Element to the site so i can see what CSS is required.

    #1275507
    Robert

    You will be able to view the element here: <li>https://casimum.de/shop/</li>

    #1276034
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Something like this?:

    #shopauskunft-widget_wrapper {
        position: fixed;
        bottom: 20px;
        right: 20px;
    }
    #1276454
    Robert

    Hi Tom,

    Thanks! I ended up using (relative) vertical centering:

    #shopauskunft-widget_wrapper {
    position: fixed;
    top: 80%;
    right: 1%;
    z-index: 1;
    transform: translate(0%, -50%);
    }

    Do you know the animation CSS to make it slide in from off right on page load, 2 sec. delay?

    Cheers,

    Robert

    #1276613
    David
    Staff
    Customer Support

    You can apply the CSS option provided on this stackoverflow:

    https://stackoverflow.com/a/11681331

    #1282111
    Robert

    Thank you, David!

    #1282203
    David
    Staff
    Customer Support

    Glad we could be of help

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