How to toggle custom WP archive list

I know nothing about the theme or plugins you are using. Since your theme isn’t responsive you could get away with the down and dirty approach if you can edit CSS files: /wp-content/themes/mytable/style.css line 262 .content-bar { border-right: none; width: 890px; } /wp-content/themes/mytable/style.css line 181 .right-sidebar { display: none; } Or override by adding your … Read more

Ajax Load more CPT via shortcode

This will (*should) fix your first problem: function rmcc_post_listing_shortcode1( $atts ) { // No need for output buffering – AJAX handlers should ECHO their response // ob_start(); // .. // So long, farewell // $myvariable = ob_get_clean(); // return $myvariable; // Now terminate exit; } Your second problem is that you are not implementing any … Read more

Using Custom Javascript and pHp to send email to myself when a user clicks on an input button but only works on Chrome, IE, and Micorosft Edge

So turns out that on Safari and Firefox, the page would refresh before the email got sent out. As a workaround I just created another button that the user has to click on before clicking on the actual button that updates their profile information. The click event handler on that first button is being used … Read more

WordPress Jquery+scripts enqueue issue

The enqueue_parent_theme_style() and my_jquery_enqueue() functions do not have closing brackets. Does the above code run? Otherwise the code looks okay. Are running WordPress with WP_DEBUG set to true? https://codex.wordpress.org/Debugging_in_WordPress I use the following in my wp-config.php file: if ($_SERVER[‘REMOTE_ADDR’] == ‘123.456.789.123’) { define(‘WP_DEBUG’, true); define(‘WP_DEBUG_LOG’, true); define(‘WP_DEBUG_DISPLAY’, false); @ini_set(‘display_errors’, 0); } else { define(‘WP_DEBUG’, false); … Read more

jQuery.post() calling function with parameter

You second JS setting is more in the right direction, your biggest failure seems in misunderstanding how ajax requests are handled on the WP PHP/server side. On the PHP side, an action is being triggered based on the action parameter in your AJAX request. Since this is a generic mechanism it doesn’t have any facilities … Read more

How can I add the Post ID to Class Name in Jquery?

You are using css to display none we don’t need to use show() function. Please click on javascript icon in fiddle and select any jquery1.9.1 or above version . Update this code and run ( http://screenshotlink.ru/8f491216a33e437f762eb8815efec77d.png ) $(document).ready(function(){ $(‘.share-icon’).on(‘click’,function (e) { var id = $(this).attr(“id”).split(‘-‘); $(‘.post-share#post-share-‘+id[2]).css(“display”,”block”); }); });