Comments on: How to (Safely) Add Code to functions.php in WordPress https://www.rosehosting.com/blog/how-to-add-code-to-functions-php-in-wordpress/ Premium Linux Tutorials Since 2001 Sun, 14 Jan 2024 00:07:43 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Nate https://www.rosehosting.com/blog/how-to-add-code-to-functions-php-in-wordpress/#comment-49045 Sun, 14 Jan 2024 00:07:43 +0000 https://www.rosehosting.com/blog/?p=27470#comment-49045 Just wondering how you call the function via a wordpress page?

]]>
By: Derek Lloyd https://www.rosehosting.com/blog/how-to-add-code-to-functions-php-in-wordpress/#comment-48718 Sun, 17 Oct 2021 22:07:43 +0000 https://www.rosehosting.com/blog/?p=27470#comment-48718 Tks! Great piece! Wish this ‘looked over’ type of information were wide-spread as it is obviously not only pertinent, but also necessary for a properly operating file.

]]>
By: Yunior Buitrago https://www.rosehosting.com/blog/how-to-add-code-to-functions-php-in-wordpress/#comment-48635 Sun, 30 May 2021 11:30:37 +0000 https://www.rosehosting.com/blog/?p=27470#comment-48635 I added the code below in functions.php. and then I deleted it because it made appears a mistake on my website. Now, that mistake is still there. I tried to use Pingdom to test my website but says that something is wrong. Do you have any experience like that maybe you can share with me. I will appreciate it. thanks

/**
* Automatically move JavaScript code to page footer, speeding up page loading time.
*/
remove_action(‘wp_head’, ‘wp_print_scripts’);
remove_action(‘wp_head’, ‘wp_print_head_scripts’, 9);
remove_action(‘wp_head’, ‘wp_enqueue_scripts’, 1);
add_action(‘wp_footer’, ‘wp_print_scripts’, 5);
add_action(‘wp_footer’, ‘wp_enqueue_scripts’, 5);
add_action(‘wp_footer’, ‘wp_print_head_scripts’, 5);

]]>
By: john https://www.rosehosting.com/blog/how-to-add-code-to-functions-php-in-wordpress/#comment-47856 Thu, 18 Jul 2019 11:57:05 +0000 https://www.rosehosting.com/blog/?p=27470#comment-47856 Learned a lot from your post. Loved it. Your post was really worth reading and your tips were also very useful for me.
keep posting. Thank you.

]]>
By: Maroon 5 https://www.rosehosting.com/blog/how-to-add-code-to-functions-php-in-wordpress/#comment-47749 Fri, 26 Apr 2019 15:54:10 +0000 https://www.rosehosting.com/blog/?p=27470#comment-47749 Thanks a lot

]]>
By: Miley Cyrus https://www.rosehosting.com/blog/how-to-add-code-to-functions-php-in-wordpress/#comment-47505 Wed, 26 Dec 2018 14:18:00 +0000 https://www.rosehosting.com/blog/?p=27470#comment-47505 Thanks for the article, it was very helpful.

]]>