Tagged: x
-
AuthorPosts
-
December 29, 2016 at 3:02 pm #1309009
ifeelwebParticipantHi,
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/GgNMXOAny chance to improve your script to get this default CSS behavior working?
Thanks
TimoDecember 29, 2016 at 10:08 pm #1309407
RupokMemberHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1309009 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
