Call Shortcode Attribute Value within another function

First: You return before you add the values to the $outvalue, so this part of the code is never reached. Second: You have typos, when adding the values to $outvalue. This function works for me: function myVal($attr, $content = null) { extract(shortcode_atts(array( ‘var1’ => ”, ‘var2’ => ”, ‘var3’ => ”, ‘var4’ => ”, ‘var5’ … Read more

Will dequeueing in child theme functions.php file prevent Google Fonts from loading?

Dequeueing the enqueued style will be sufficient. But you need to be careful to dequeue it after it is enqueued. It is enqueued at the default priority of 10, so make sure that when you hook into wp_enqueue_scripts you do so at a higher/later priority. add_action( ‘wp_enqueue_scripts’, ‘wpse_escutcheon_scripts’, 11 ); function wpse_escutcheon_scripts() { wp_dequeue_style( ‘escutcheon-fonts’ … Read more

Child Theme – Changing Header

Not sure I fully understand what you’re trying to achieve, but can you make a check on the value of your custom field? Something like this: if( $field == ‘banner’ ) { // Display banner } You can put the code straight into your parent theme’s header-main.php and it will only execute if the value … Read more