Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Harish Chouhan

    (@hchouhan)

    Hey Adrian,

    Thank you for your patience. To close the box after a link is clicked, you can use below code:
    <a onclick="STB.toggleBox(16);" href="#disqus_thread">Mo?e skomentujesz co? zamiast si? przygl?da??</a>

    Please make sure to replace “16” with the ID of the pop-up.

    I hope that helps. If you face any issue do let us know.

    Thread Starter Makabe

    (@makabe)

    Hi,

    I checked onclick=”STB.toggleBox(XXX);” before and it doesn’t work for me, STB shows again when you scroll or refresh the page.

    Greetings,
    Adrian

    Plugin Author Harish Chouhan

    (@hchouhan)

    Hello Adrian,

    The above code only uses the close function. If you permanently close the STB, then you need to setup a cookie. Let me know if that is the option you are looking for.

    Thread Starter Makabe

    (@makabe)

    Yes, i am looking for that option ??

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Makabe,

    Quick update: you can use the following to “dismiss” the box, which basically means “close the box AND set a cookie so it does not show again”.

    <a href="#your-link" onclick="STB.dismissAllBoxes();">text</a>

    Hope that helps. If not, let me know!

    Thread Starter Makabe

    (@makabe)

    Hi Danny,

    I have another event on that link, so finally code look like this:

    onClick=”ga(‘send’, ‘event’, ‘klikniecie w box’, ‘obrazek’);STB.dismissAllBoxes();”

    Thanks for solution ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to close box after clicking in the link’ is closed to new replies.