Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Child-Theme #120

Closed
robinbirr opened this issue Oct 2, 2014 · 8 comments
Closed

Child-Theme #120

robinbirr opened this issue Oct 2, 2014 · 8 comments

Comments

@robinbirr
Copy link

Hey,
i have added a child-theme but it does not work.

Can you help me please.
Thanks.

@ghost
Copy link

ghost commented Oct 7, 2014

This was the most pointless help me message I've ever read :)
If you're too lazy to explain why it doesn't work, don't expect the peoples motivated to help you.

@theodorocaliari
Copy link

Hi @olefredrik , first of all, thanks for develop the Foundation Press theme.
Well in the previous version I used this child theme of your theme (https://github.com/thetrickster/FoundationPress-child) but after your update, the child-theme not worked correctly anymore. I go to codex (http://codex.wordpress.org/Child_Themes) to try make a child theme too, but I noted that in my child theme, the theme not 'look' for parent folder to take path for styles or any other stuff inside of parent folder. I don't know why. I suspect that happening because in parent theme miss some configuration and "blocked" this... can you please help me? thanks

@theodorocaliari
Copy link

Hey it's me again. I have done! the child theme works now!
I make this steps:
one. create a new style.css like codex explains (http://codex.wordpress.org/Child_Themes)

@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

@ghost
Copy link

ghost commented Oct 8, 2014

You don't have to do this, the "style.css" in foundationpress folder is empty anyway.
It seems you dont use SCSS and grunt, right? Well, without grunt you have to include the app.css as you did, but you're losing the power to customize foundation 5.

@theodorocaliari
Copy link

@Dotmagic, I didn't had thought on this...
For me the child theme have a bug in mobile (off-canvas-menu)...
because of this I try to make work by myself... :)

I never tryed to use this grunt (http://gruntjs.com/) :/

sorry about my english... :X

@ghost
Copy link

ghost commented Oct 8, 2014

I've update my answer already because it seems to be just about CSS and not Javascript.
off-canvas works fine for me, but as i've told you I'm building with grunt.

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');

@ghost
Copy link

ghost commented Oct 8, 2014

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');
});

@theodorocaliari
Copy link

@Dotmagic, thanks for your considerations and observations. best regards.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants