Tagged: x
-
AuthorPosts
-
June 21, 2016 at 6:27 pm #1053355
flyingkiwiParticipantHi guys,
I have a child theme setup and am trying to add a new folder called ‘login’ into the root of ‘x-child’ with a few files inside.
I have the following in my child themes functions.php
function my_loginCSS() { wp_enqueue_style('login-styles', get_template_directory_uri() . '/login/login_styles.css'); } add_action('login_enqueue_scripts', 'my_loginCSS');but no matter what I try it keeps looking to /wp-content/themes/x/login instead of /wp-content/themes/x-child/login
How can I make this point to the correct folder?
Cheers,
TomJune 21, 2016 at 8:05 pm #1053556
JadeModeratorHi Tom,
Please to use
get_stylesheet_directory()instead ofget_template_directory_uri().Hope this helps.
June 21, 2016 at 8:17 pm #1053567
flyingkiwiParticipantHi Jade,
Unfortunately that’s not working – it’s kicking back the following error in the chrome inspector..
at least it’s getting closer..
Tom
June 21, 2016 at 8:21 pm #1053569
flyingkiwiParticipantRESOLVED!
I updated
get_stylesheet_directory()toget_stylesheet_directory_uri()and it’s now working correctly.Thanks!
June 21, 2016 at 11:34 pm #1053747
Prasant RaiModeratorGlad to hear that, feel free to get in touch with us regarding any further queries.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1053355 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
