What is wrong here? Variable to working

Hello,

What am I doing wrong here:

<?php<br>
$css = "black";<br><br>

if ( !function_exists( 'child_theme_configurator_css' ) ):
function child_theme_configurator_css() {<br>
    wp_enqueue_style( 'chld_thm_cfg_ext1', trailingslashit( get_theme_root_uri() ) .<br> 'gemtechllc/css/base.css' );<br>
    wp_enqueue_style( 'chld_thm_cfg_ext2', trailingslashit( get_theme_root_uri() ) . <br>'gemtechllc/css/'.$css.'.css' );
}
endif;<br>
?>

If I do echo $css it works fine, but with the code I get nothing.

Please advise.

Thank you,

Don

$css doesn’t exist inside the function

Thank you! :slight_smile:

Sponsor our Newsletter | Privacy Policy | Terms of Service