Home › Forums › Themes Support › Aqua WordPress Theme › Child Theme Not Overriding Parent
Tagged: child theme
- This topic has 9 replies, 2 voices, and was last updated 6 years, 11 months ago by Daniel_Cielo.
-
AuthorPosts
-
-
04/13/2017 at 4:10 PM #5083
I have installed Aqua-Child and attempted to modify one element and it is not working.
When I try to modify:
.tb-header-wrap.tb-header-v8 .header-sidebar .sidebar-top-left { margin-top:20px; }
to
.tb-header-wrap.tb-header-v8 .header-sidebar .sidebar-top-left { margin-top:10px; }
It doesn’t change. When I inspect the element in Chrome, I can see it being overwritten from 20, to 10, and then back to 20.
This line:
.tb-header-wrap.tb-header-v8 .header-sidebar .sidebar-top-left { margin-top:10px; }
Is the only line in the Child Syle.css
The Child functions.php looks like this:
<?php /* Define THEME */ if (!defined('URI_PATH')) define('URI_PATH', get_template_directory_uri()); if (!defined('ABS_PATH')) define('ABS_PATH', get_template_directory()); if (!defined('URI_PATH_FR')) define('URI_PATH_FR', URI_PATH.'/framework'); if (!defined('ABS_PATH_FR')) define('ABS_PATH_FR', ABS_PATH.'/framework'); if (!defined('URI_PATH_ADMIN')) define('URI_PATH_ADMIN', URI_PATH_FR.'/admin'); if (!defined('ABS_PATH_ADMIN')) define('ABS_PATH_ADMIN', ABS_PATH_FR.'/admin'); function aqua_theme_enqueue_styles() { $parent_style = 'aqua-style'; wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'aqua-child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ) ); } add_action( 'wp_enqueue_scripts', 'aqua_theme_enqueue_styles' ); ?>
-
04/13/2017 at 4:26 PM #5085
I should also add, that if I add that line into the Custom CSS through the WordPress Dashboard it works, but it does do all the multiple overrides first.
I wish to make a lot of changes, so I want to be able to use the child theme.
Regards
-
04/14/2017 at 2:51 PM #5101
Thank you for reaching us.
Sorry but this is what I have when I go to your Admin:
Best Regards,
Sophie -
04/15/2017 at 7:01 AM #5109This reply has been marked as private.
-
04/15/2017 at 8:17 AM #5111
Hey buddy!
Please let me be as an administrator, so that I can see all things in the Admin site.
Best Regards,
Sophie -
04/15/2017 at 11:03 AM #5114
This has been changed now.
-
04/16/2017 at 12:08 PM #5120
Have you had a chance to look at a resolution for this issue yet?
-
04/17/2017 at 5:42 AM #5121
What is the update on this issue. It is still outstanding and I can’t launch my website without sorting this issue out.
-
04/18/2017 at 1:27 PM #5149
Sorry for late reply.
The reason why is due to the priority: http://prntscr.com/expzom
Just add ‘body’ before class like this: http://prntscr.com/exq0hm
then the issue will be solved.
Best Regards,
Sophie -
04/18/2017 at 4:26 PM #5166
You do not understand. I do not want these lines of code in my Custom CSS component.
Why can I not add them into the Child Theme “style.css” and have it work correctly?
-
-
AuthorPosts
You must be logged in to reply to this topic.