[Support request] Gb Headline Block Clickable Icon

Home Forums Support [Support request] Gb Headline Block Clickable Icon

Home Forums Support Gb Headline Block Clickable Icon

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1543314
    Ian

    I know there was talk that maybe future versions could have the entire block clickable. That would be a great feature actually. In the meantime, is there a way to make the icon inside GB Headline clickable?

    #1543330
    Elvin
    Staff
    Customer Support

    Hi,

    You can either wrap your <svg> markup with <a href="https://your.url.here"></a> and place it on the icon’s Icon SVG HTML under Headline Block’s Icons setting.

    or

    Write a script that adds an event listener for clicks on your span.gb-icon.

    A wise man once said:
    "Have you cleared your cache?"

    #1548641
    Ian

    Perfect! I have hard coded an href tag into the SVG field. Can’t wait for the feature where the entire block is clickable!

    #1550592
    Elvin
    Staff
    Customer Support

    Perfect! I have hard coded an href tag into the SVG field. Can’t wait for the feature where the entire block is clickable!

    Tom is working on the Pro version. I believe that’s one of the features he’s working on for it.

    Please look forward to it. 🙂

    A wise man once said:
    "Have you cleared your cache?"

    #2209753
    Karissa

    Hey there! Could you give me an example on how the code would look using this method?

    You can either wrap your <svg> markup with and place it on the icon’s Icon SVG HTML under Headline Block’s Icons setting.

    #2209756
    Fernando
    Customer Support

    Hi Karissa,

    Here is a sample: https://share.getcloudapp.com/xQuqXW0O

    Added the <a> tags mentioned by Elvin through the Code editor: https://share.getcloudapp.com/7KuQ50yl

    Alternatively, you may also simply use a Buttons Block instead.

    Hope this clarifies. 🙂

    #2214640
    Karissa

    Thank you!

    #2228930
    Fernando
    Customer Support

    You’re welcome Karissa! 🙂

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