• Resolved Nookie0

    (@nookie0)


    Hello all,

    I`m building a site that has on the top-right corner a contact widget.
    Is it possible that when I click a hyperlinked word, the server interprets it like as I was clicking the widget and open the contact widget?

    Thanks in advance

Viewing 6 replies - 1 through 6 (of 6 total)
  • Probably. Can you provide a link to the site?

    Thread Starter Nookie0

    (@nookie0)

    Great, thanks! I assume you’re referring to the tab on the right, “Contacto”? This is shown/hidden via JavaScript, so you would just need to add some JS that triggers the same function call when your link is clicked.

    If you’re editing the link manually, you can try adding an onClick event:

    <a href="#" onClick="DropifiWidgetLoad.showHideWidget('#dropifiContactTab')">Contacto!</a>

    Thread Starter Nookie0

    (@nookie0)

    I`m actually referring to the blue shopping cart on the upper right corner.
    ??

    You can simulate a click of the blue shopping cart like this:

    jQuery('.x-btn-widgetbar').click();

    You can bind that to your link like this:

    jQuery(document).ready(function(){
      jQuery('your link selector here').click(function(){
        jQuery('.x-btn-widgetbar').click();
      });
    });
    Thread Starter Nookie0

    (@nookie0)

    Thank you !
    I haven`t had time for it, I was on holiday.
    It seems to work.
    Many thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Clicking on a hyperlink pops the contact widget from the uper right corner’ is closed to new replies.