Need to replace old functions.php section with new code
-
Hi there,
I need some .php help.
There are two lines in the original theme I need to “replace” with two other lines of code in functions.php.
Code to be replaced:
$stylesheets .= wp_enqueue_style('theme', STYLE_WEB_ROOT . '/style.css' , array(), UT_THEME_VERSION, 'screen, projection'); $stylesheets .= wp_enqueue_style('layout', STYLE_WEB_ROOT . '/layout.css' , array('theme'), UT_THEME_VERSION, 'screen, projection');Code I want to use instead:
$stylesheets .= wp_enqueue_style('theme', get_stylesheet_directory_uri().'/style.css', array(), UT_THEME_VERSION, 'screen, projection'); $stylesheets .= wp_enqueue_style('layout', THEME_WEB_ROOT.'/layout.css', array('theme'), UT_THEME_VERSION, 'screen, projection');Basically the second group of code is from a developer my client used before me and they “customized” a theme for them by messing with all the parent files. I’m moving everything to a child theme but don’t know .php to make this change.
Thanks in advance for your help!
Jason
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Need to replace old functions.php section with new code’ is closed to new replies.