jQuery functions work in console, but not live

Where are you using the jQuery code we see in question? If you are using it in header (head), I would recommend using: jQuery(document).ready(function(){ jQuery(‘.homepage_buttons_text a[href^=”http://danrobertsgroup.com/?attachment_id=1037″]’).each(function(){ jQuery(this).html(“<h1 class=”homepage_button_title”>Workouts</h1><span class=”homepage_button_title”>Books / DVD’s / Downloads</span>”); }); }); If you are using the code in the footer, the above replacement is still recommended and for each add_action hook … Read more

Divi theme including javascript

You might have to use get_stylesheet_directory_uri() instead of get_template_directory_uri() when you’re referencing files in a child theme. On a fresh install, I created and activated a child theme of twentyfifteen called child and run the following codes: echo get_stylesheet_directory_uri(); # Output: http://localhost/test1/wp-content/themes/child echo get_template_directory_uri(); # Output: http://localhost/test1/wp-content/themes/twentyfifteen Also, If you have tested the JS independently … Read more

Why functions metaboxes is causing White Screen in Admin [closed]

Finally I found the solution in codex…. Interpreting the Error Message: If the error message states: Warning: Cannot modify header information – headers already sent by (output started at /path/blog/wp-config.php:34) in /path/blog/wp-login.php on line 42, then the problem is at line #34 of wp-config.php, not line #42 of wp-login.php. In this scenario, line #42 of … Read more

Can’t override CSS with child theme

They are using a more specific identifier in the theme on the homepage. try this one: .be-section .be-row:not(:last-child) .column-block h5:last-child { margin-bottom: 10px !important; } you can change the margin to whatever you want, of course. okay try this: #main .be-section .be-row:not(:last-child) .column-block h5:last-child { margin-bottom: 5px !important; }

Edit copyright in Hesita Child Theme

You Could Also Try This Cheeky Little Trick 🙂 If you just want a quick and easy, no fuss change, you can do this to the Hestia theme copyright area. Just add the following code to your child theme CSS or to the WordPress Customise > CSS area. .copyright a { display: none; } .copyright:before … Read more

Loading Canvas & WooCommerce translation file in child theme

There was a syntax error in loading the WooCommerce translations and I managed to get the parent theme translations working by following the same method I used for the WooCommerce translations. function weg_localisation() { unload_textdomain( ‘woothemes’ ); load_textdomain(‘woothemes’, get_stylesheet_directory() . ‘/lang/af_AF.mo’); unload_textdomain(‘woocommerce’); load_textdomain(‘woocommerce’, get_stylesheet_directory() . ‘/woocommerce/i18n/languages/woocommerce-af_AF.mo’); } add_action(‘init’, ‘weg_localisation’);