Tagged: x
-
AuthorPosts
-
September 11, 2016 at 1:59 pm #1170342
MichaelEHennessyParticipantI am very puzzled about how all of this is supposed to work.
I am trying to use an x style button, but when clicked it runs “privy.show(87168);”
I can do this simply with `<button onclick=”privy.show(87168);”>Button Text</button>
But when I want to use the onclick within real styled xbutton, I get the page I am on like http://mykieeugene.com/blog but at the end it shows # i.e. http://www.mykieeugene.com/blog/#
HELP ME!
September 11, 2016 at 8:16 pm #1170620
Rue NelModeratorHello There,
Thanks for writing in! To resolve your issue, you can use this button code instead:
<button class="x-btn x-btn-regular" onclick="privy.show(87168);">Button Text</button>You can also use the regular X button element if you are editing in Cornerstone. You just need to add the following:
1] Make sure that the href is set to ‘#’;
2] Add a custom classmy-buttonin the class field
3] go to the settings tab, Settings > Custom JS and insert the following custom js code(function($){ $(document).ready(function{ $('.my-button').on('click touchend', function(e){ e.preventDefault(); privy.show(87168); }); }); })(jQuery);Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1170342 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
