On April 4, 2014 at 4:19 pm
Hi again,
I finally decided to create a child theme but something doesn’t work right. I found out on the forum that:
wp_enqueue_style( ‘asteria-style’, get_template_directory_uri().’/style.css’);
In fact, you should probably do it like this;
wp_enqueue_style( ‘asteria-style’, get_stylesheet_uri() );
Before changing the code to the one above (in function.php parent theme) nothing was going on at all but now my frontpage isn’t working. I have 2 sliders, posts are displayed vertically. It’s a big mess.
Somehow though, I can see that the slider dots disappeared so something is working.
/*
Theme Name: Asteria-Lite Child
Theme URI: http://www.towfiqi.com/asteria-lite-free-wordpress-theme.html
Description: Asteria-Lite Child Theme
Template: Asteria-Lite
Text Domain: asteria-lite child theme
*/
@import url(β../asteria-lite/style.cssβ);
/* =Theme customization starts here
————————————————————– */
.nivo-controlNav{display:none!important;}
I also want to change part of php (layout1.php) but I’m confused how to do it properly. Do I just need to put layout1.php with the changed code in the child’s theme directory?
Do I need to copy the function.php to child theme? (I did it already just to try and I couldn’t even login to my site so I deleted it).
“>
with this:
“>
I’m still working locally so I can’t send you the link…
Any help would be greatly appreciated.