Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1170342
    MichaelEHennessy
    Participant

    I 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!

    #1170620
    Rue Nel
    Moderator

    Hello 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 class my-button in 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.

  • <script> jQuery(function($){ $("#no-reply-1170342 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>