changes in main.css (child theme) needs function.php changes
-
Hi!
First of all
Your theme is gorgeus.
I made a child theme to change some style, change the width of sidebar and also change text to spanish. But code from main.css or nivo.css or even from content-sidebar.css don´t work.For example, changes in main.css
main.css is inside this folder (theme/sixteen/css/main.css) from parent theme.
I have created a folder (theme/sixteen-child/css/main.css) with the same path to change fonts..etc but it doesn´t work.I think that I have to create a functions.php in the child theme and change some code from functions.php but I don´t know what exactly.
Can you help me?
function sixteen_scripts() {
wp_enqueue_style( ‘sixteen-fonts’, ‘//fonts.googleapis.com/css?family=Roboto:400,300,700’);
wp_enqueue_style( ‘sixteen-basic-style’, get_stylesheet_uri() );
if ( (function_exists( ‘of_get_option’ )) && (of_get_option(‘sidebar-layout’, true) != 1) ) {
if (of_get_option(‘sidebar-layout’, true) == ‘right’) {
wp_enqueue_style( ‘sixteen-layout’, get_template_directory_uri().”/css/layouts/content-sidebar.css” );
}
else {
wp_enqueue_style( ‘sixteen-layout’, get_template_directory_uri().”/css/layouts/sidebar-content.css” );
}
}
else {
wp_enqueue_style( ‘sixteen-layout’, get_template_directory_uri().”/css/layouts/content-sidebar.css” );
}
wp_enqueue_style( ‘sixteen-main-style’, get_template_directory_uri().”/css/main.css”, array(‘sixteen-fonts’,’sixteen-layout’) );My web is http://www.algomasquesexo.com
The topic ‘changes in main.css (child theme) needs function.php changes’ is closed to new replies.
