HomePage Forums Themes Support Aqua WordPress Theme Child Theme Not Overriding Parent

Tagged: 

This topic contains 9 replies, has 2 voices, and was last updated by  Daniel_Cielo 1 month, 1 week ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #5083
    Daniel_Cielo
    Supported

    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' );
    ?>
    #5085
    Daniel_Cielo
    Supported

    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

    #5101

    Thank you for reaching us.

    Sorry but this is what I have when I go to your Admin:

    http://prntscr.com/ewaoad

    Best Regards,
    Sophie

    ---
    Best Regards,
    Sophie

    #5109
    Daniel_Cielo
    Supported
    This reply has been marked as private.
    #5111

    Hey buddy!

    http://prntscr.com/ewmp3y

    Please let me be as an administrator, so that I can see all things in the Admin site.

    Best Regards,
    Sophie

    ---
    Best Regards,
    Sophie

    #5114
    Daniel_Cielo
    Supported

    This has been changed now.

    #5120
    Daniel_Cielo
    Supported

    Have you had a chance to look at a resolution for this issue yet?

    #5121
    Daniel_Cielo
    Supported

    What is the update on this issue. It is still outstanding and I can’t launch my website without sorting this issue out.

    #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

    ---
    Best Regards,
    Sophie

    #5166
    Daniel_Cielo
    Supported

    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?

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.