[Support request] CTA Image

Home Forums Support [Support request] CTA Image

Home Forums Support CTA Image

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #841929
    Dax

    Hello,

    Rather than a button, I want to use a custom image as a CTA linking to another page. I would like it to follow the user as they scroll. I would also like it to be positioned on the left-hand side of the content.

    Thanks in advance

    #841971
    David
    Staff
    Customer Support

    Hi there,

    You could place a HTML widget in the Left Hand Side-bar, then use some HTML Like this:

    <a class="cta-link" href="url">
            <img src="url-to-image" alt="alternate-label">
    </a>

    Set that up and i can look at the CSS to make that element sticky.

    #842363
    Dax

    Hello David,

    That works great thanks. So how do I make it sticky? Do you need to see my site?

    Thanks

    #842384
    David
    Staff
    Customer Support

    It would be useful to see the Site. You can edit your original topic and use the Site URL field for privacy.

    #842441
    Dax

    Hi David,

    Done.

    Thanks

    #842469
    David
    Staff
    Customer Support

    Try this, i also tweaked its starting position for it to align with top of the first paragraph:

    @media (min-width: 769px) {
        .site-content {
            position: relative;
        }
    
        #left-sidebar {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
        }
    
        .inside-left-sidebar {
            height: 100%;
        }
    
        .inside-left-sidebar .widget {
            position: -webkit-sticky;
            position: sticky;
            /* change Top to a PX value to increase top position when sticky */
            top: 0;
            /* margin-top to adjust static position */
            margin-top: 25px;
        }
    }
    #842577
    Dax

    Thank you very much David! It works perfectly

    #842586
    David
    Staff
    Customer Support

    Awesome – glad to be of help

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