Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter Renovatiomex

    (@renovatiomex)

    http:// imageshack.com/a/img716/7158/4avf. png

    dipovespo

    (@dipovespo)

    Yes, i would prefer this too.

    Adding a class of popup to the anchor tag for each share button will make the share dialog open in a popup, rather than a new window. (Good for Facebook, Twitter, Google Plus, etc.)

    I’ve read that in the https://github.com/kni-labs/rrssb and on author plugin it have popup class too, but the floating still doesn’t work.

    Any help?

    Plugin Author rts

    (@aarreedd)

    This is fixed in the new version (v2)

    I just installed the version 2.0.
    It still open in same window.

    I just installed the latest version and have the same issue.

    @dreamee & @rebelguru: If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else’s topic.

    Adding The following to the JavaScript fixed the popup problem for me:

    t(document).ready(function(){t(".rrssb-buttons a.popup").on("click",function(e){var n=t(this);l(n.attr("href"),n.find(".text").html(),580,470);e.preventDefault()})});

    @julianm

    Where do you add this code?
    In which js file and place?

    I add below in ridiculously-responsive-social-sharing-buttons/js/rrssb.js
    and don’t work for me.

    @merkucio You need to add it in the rrssb.min.js file.

    Do a search for the following snippet…

    t(".rrssb-buttons a.popup").on("click",function(e){var n=t(this);l(n.attr("href"),n.find(".text").html(),580,470);e.preventDefault()})

    …and replace it with this…

    t(document).ready(function(){t(".rrssb-buttons a.popup").on("click",function(e){var n=t(this);l(n.attr("href"),n.find(".text").html(),580,470);e.preventDefault()})})

    @julianm

    Bro, you are the best 🙂
    It works, big thanks.

    @aarreedd
    But this solution will work before next update?!

    No problem. Glad I could help. Unfortunately, a plugin update will overwrite the fix. The best solution would be for the plugin authors to fix it on the repository. I also noticed that the Email button opens a blank popup with this fix.

    Yeah, you are right.
    But we have nothing better at this moment.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘load buttons but the link opens in the same page’ is closed to new replies.