Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1309009
    ifeelweb
    Participant

    Hi,

    I was trying to implement a Pure CSS Popup on a X theme site, but it does not work because a script seems to listen to all clicks on anchor links for the soft scrolling effect. The target does not get appended to the URL and the target never gets the focus.

    I used this example: http://www.sevensignature.com/blog/code/pure-css-popup-without-javascript/
    You can try to implement the code from this codepen on a X page to figure it out: http://codepen.io/imprakash/pen/GgNMXO

    Any chance to improve your script to get this default CSS behavior working?

    Thanks
    Timo

    #1309407
    Rupok
    Member

    Hi Timo,

    Thanks for writing in! If you want to override the default functionality then the usual behavior of One Page Navigation or scrolling will be affected. You can do this for your pop up specifically but it won’t be CSS only anymore as you need to add custom JS for this. So I’d suggest to use the Responsive Lightbox shortcode or use a plugin to achieve this. Using such custom script is not standard of WordPress.

    Cheers!

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