functions.php will not work with child theme
-
Hi there, I am new to wordpress however I have made couple of child themes for different themes till now and every time I used this exact code (except changing the child theme name) in my functions.php and it worked. but now I have problem.
here is the code:<?php /** * the functions file for the zokott child theme */ function zokott_scripts(){ { wp_enqueue_style( 'zokott-styles', get_stylesheet_directory_uri().'/zokott-style.css'); } } add_action('wp_enqueue_scripts' , 'zokott_scripts'); ?>
and I also add this to my style.css file in my child theme:
/* Theme Name: zokott Description: child theme based on twentytwelve Author: ZoKo Version: 0.0.1 Template: twentytwelve */ @import url('../twentytwelve/style.css');
I really cannot figure it out after several hours searching the web.
can anyone here help me. thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘functions.php will not work with child theme’ is closed to new replies.