• Hello, I created Twenty Sixteen child theme (according to all rules) and everything was working perfect, the child style was overriding the parent’s one. Then suddenly, when I made a little change of the menu in the WP admin, child css stopped being dominant. After this in all child theme I’ve created, parent style always overrides child css. Here is the code I put into child css.
    ‘ /* Theme Name: Proservice_2016
    Description: Proservice Theme
    Author: VB
    Template: twentysixteen
    Version: 1.0.0
    Tags: light, dark, two-columns, right-sidebar, responsive- layout, accessibility-ready
    Text Domain: proservice
    */

    @import url(“../twentysixteen/style.css”);’

    Also in functions.php I inserted the following code

    ‘<?php
    function parent_css_theme_style() {
    wp_enqueue_style( ‘parent-style’, get_stylesheet_directory_uri().’/style.css’ );
    }
    add_action( ‘wp_enqueue_scripts’, ‘parent_css_theme_style’ );
    add_action( ‘wp_enqueue_scripts’);
    ?>’

    What can be the reason? It seems that I’ve tried all the solutions from the web and still nothing works(

Viewing 2 replies - 1 through 2 (of 2 total)
  • a:
    what changes did you make to the menu?

    b:
    there is no CSS in your child theme’s style.css as you posted it here;
    what styles exctly were working and stopped after your changes?

    are you able to post a link to your site, with the child theme activated, to illustrate the problem?

    Thread Starter irensol

    (@irensol)

    Hi Michael, thank you for your respond!
    There were 7 menu items and I just removed one. Also for menu I used jQuery Mega Menu plugin.
    After this change (or at least it was the last memorable change if not to consider some of mySql queries that I did to retrieve the data from database) child theme style just stopped overriding the parent style and no child css worked: menu and header styles dissapeared.
    Here is the link to my site: https://testinjoy.com/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child theme style stopped override parent's one’ is closed to new replies.