“add_theme_support” for custom footer color?

You can use following class put inside your theme’s functions.php file. Theme Customization API will render the custom color selector control on the Theme customizer from this. class MyTheme_Customize { public static function register ( $wp_customize ) { $wp_customize->add_section( ‘mytheme_options’, array( ‘title’ => __(‘MyTheme Options RR’, ‘twentynineteen’ ), //Visible title of section ‘priority’ => 3, … Read more

I want to get the home root path

First of all your ajax doing approach is wrong when WordPress offer us great way to do this. Read this one why you should’t use your current approach and then read https://codex.wordpress.org/AJAX_in_Plugins how you can do ajax with wp_ajax hook. It’s really simple and easy. using this hook you don’t need to call external file … Read more

My scripts-bundle.js file is getting sent to the browser as a stylesheet css file. Help!

Ok, I managed to solve this issue because I was using the wrong WP functions to point my child themes directory and thus my bundled javascript script. I cleared out my functions.php file and added the below and it all works now: function load_js_files() { wp_enqueue_script( ‘script’, get_stylesheet_directory_uri() . ‘/js/scripts-bundled.js’, array ( ‘jquery’ ), 1.1, … Read more

Add a series of checkboxes to theme options

Want some honest advice? Work from a better code base.. Though, it’s not your fault, there are hundreds of blogs with variations of similar code, i’m not sure where it originated, but i see similar code “alot”… If you can get by without the hand holding and just manage with a good code base, i’d … Read more

how to add custom fields in page

Edit: Came back on this post much later but I am updating this with more correct information. The following code will allow you to display the value of a custom field anywhere in your theme or plugin, as long as you are getting the correct post ID to pass to it. You would need to … Read more