seancli
Forum Replies Created
-
Ah gotcha really sorry about that! Heh…
Ah gotcha, my mistake for the typo (don’t shoot me), and now it’s back to the original where it isn’t displaying properly.
I’m letting it go live for a little bit for you to check out if you can – http://www.seancli.com . Maybe it’s actually importing properly but there’s another reason it’s not looking right?
Here is my functions.php at the moment:
<?php add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX); function enqueue_child_theme_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); wp_enqueue_style( 'mobile-style', get_template_directory_uri() . '/css/mobile.css' ); wp_enqueue_style( 'flickr-style', get_template_directory_uri() . '/css/flickerplate.css' ); wp_enqueue_style( 'slicknav-style', get_template_directory_uri() . '/css/slicknav.css' ); wp_enqueue_style( 'child-style', get_stylesheet_uri(), array('parent-style') ); }Thanks a ton again, hope to get this resolved soon!
Ok so this is what it returns:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘theme_enqueue_styles’ not found or invalid function name in /home/content/73/11515973/html/wp-includes/plugin.php on line 496
And this is my functions.php file after those last changes:
<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function enqueue_child_theme_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); wp_enqueue_style( 'mobile-style', get_template_directory_uri() . '/css/mobile.css' ); wp_enqueue_style( 'flickr-style', get_template_directory_uri() . '/css/flickerplate.css' ); wp_enqueue_style( 'slicknav-style', get_template_directory_uri() . '/css/slicknav.css' ); wp_enqueue_style( 'child-style', get_stylesheet_uri(), array('parent-style') ); }For the record, wasn’t sure if I was supposed to change theme_enqueue_styles to enqueue-child_theme_styles (kinda shooting in the dark here) so I tried it and it got the same response. Just throwing that out there haha
You’re the best, I’m going to try this out right now and report back here
Edit: Accidental double post!
Tried it and I didn’t get any error message, but the site didn’t look the way it’s supposed to. Things formatted wrong and such 🙁
And sure – http://www.seancli.com/ – I didn’t post it originally because these changes aren’t live. Sorry I know that would probably help a lot. I didn’t want my site to show an error for too long while I figure it out, but if it’ll help, I can so we can debug.
Here is the theme I’m using if it helps to preview/download it:
http://dessign.net/creative-portfolio-theme-responsive-free/Thanks!!
I tried that but it always gave me errors. I’ll do it again now and if it does it again, I’ll post the error output here soon.
Thanks for the reference, but unfortunately I’ve read it before and it isn’t relevant to my situation :/
Forum: Themes and Templates
In reply to: Child Theme HelpWorked! Thanks so much!!
Forum: Themes and Templates
In reply to: Child Theme HelpSo I removed the @import line from style.css, created functions.php in the same folder, and entered this:
<? php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-style') ); } ?>But now I have a syntax error.
Forum: Themes and Templates
In reply to: Child Theme HelpUpdated below
Forum: Themes and Templates
In reply to: Child Theme HelpAh those are (‘) instead of (“). Both got me the same results but to be proper I’ll change it back
Also I read about @import not being the best anymore, I just did it because it seemed simpler. I’ll start reading about the other way more in depth. Thanks!