-
Notifications
You must be signed in to change notification settings - Fork 865
Child-Theme #120
Comments
This was the most pointless help me message I've ever read :) |
Hi @olefredrik , first of all, thanks for develop the Foundation Press theme. |
Hey it's me again. I have done! the child theme works now! @import url("../foundationpress/style.css");
@import url("../foundationpress/css/app.css"); two. create in my child theme folder a functions.php and enqueue my css like this: $parent_path = get_template_directory_uri();
$child_path = get_stylesheet_directory_uri();
function child_style(){
global $child_path;
wp_register_style( 'child-style', $child_path.'/style.css');
wp_enqueue_style( 'child-style');
}
add_action('wp_enqueue_scripts','child_style'); After that I tested and works! :) Cheers |
You don't have to do this, the "style.css" in foundationpress folder is empty anyway. |
@Dotmagic, I didn't had thought on this... I never tryed to use this grunt (http://gruntjs.com/) :/
|
I've update my answer already because it seems to be just about CSS and not Javascript. I did only add the following Javascript to get collapsible Navigation with Multi Level Support. /* Multi Level off-canvas navigation */
$(".off-canvas-list ul.sub-menu").append('<li class="back"><a href="">Back</a></li>');
$(".off-canvas-list li.has-dropdown").addClass('has-submenu');
$(".off-canvas-list ul.sub-menu").addClass('left-submenu'); |
Oh, I remember the was a problem with Joyride Plugin! Please check you Javascript console for undefined messages (Press F12). Just comment out the Joyride demo. // Joyride demo
$('#start-jr').on('click', function() {
$(document).foundation('joyride','start');
}); |
@Dotmagic, thanks for your considerations and observations. best regards. |
Hey,
i have added a child-theme but it does not work.
Can you help me please.
Thanks.
The text was updated successfully, but these errors were encountered: