Calling get_theme_mod() of an WP_Customize_Image_Control() returns an Array, how do I correctly return the image src for my custom theme?

Short answer: Pasting in your code, setting the images. I was able to get the string with <img src=”https://wordpress.stackexchange.com/questions/304906/<?php echo $colorlogoURL[“image_upload_test’] ?>”> Long answer: Having an array on each unique setting (nscoctwentyseventeen_*_logo[image_upload_test]) doesn’t make sense to me for this simple use. The functionality for it exists in core, so there’s obviously a reason for it, … Read more

How can I write code in a plugin for my child theme that will allow me to use remove_action() based on if the current page is the home page?

I use this code and now it works. I think using wp-head instead of init was important in the add_action parameter: function remove_sf_header_widget_region() { if(!is_front_page()){ remove_action( ‘sf_before_content’, ‘sf_header_widget_region’, 10 ); } } add_action( ‘wp_head’, ‘remove_sf_header_widget_region’ );

Adding custom html/css/images to Theme

If your HTML is displaying but the images aren’t that normally points to a path issue – doublecheck it by opening your browser’s dev tools and checking whether the requested path to the images is correct. Make sure you’re using get_stylesheet_directory_uri() to get the URI to the root of the child theme, as get_template_directory_uri() will … Read more