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

Tagged: 

Viewing 9 reply threads
  • Author
    Posts
    • #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' );
      ?>
    • #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

    • #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

    • #5109
      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

    • #5114

      This has been changed now.

    • #5120

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

    • #5121

      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

    • #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?

Viewing 9 reply threads

You must be logged in to reply to this topic.