psaju
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
So easy way: install this plugin https://ww.wp.xz.cn/plugins/css-javascript-toolbox/
Once installed click ‘add new code block’, give it a name, set the hook to footer.
Insert<script> jQuery(document).ready(function($){ console.log('test'); $( "a" ).click(function( event ) { event.preventDefault(); }); }) </script>On the right you will have multiple tabs, where you select where the script should be executed. Save.
Remember! The ‘a’ in the script is the link that is being clicked, you should replace it with the proper class of the popup links.Forum: Fixing WordPress
In reply to: Issue with delegated domainOk, just found it 🙂 So if anyone else has this problem (or a major brainfart like me), just go to your settings page and be sure you changed both your WordPress URL and site URL to your domain 🙂
What about using jQuery?
Try adding this to the footer of your site.(jQuery)( "link_to_popup" ).click(function( event ) { event.preventDefault();}Forum: Fixing WordPress
In reply to: How can I include private pages in a page list?How about this?
wp_list_pages(array( 'title_li' => '', 'child_of' => $page->ID, 'post_status' => 'published,private' ));
Viewing 4 replies - 1 through 4 (of 4 total)