• Resolved raincheck123

    (@raincheck123)


    Hello,
    Can you tell me how to get the child stylsheet to override the parent I have tried just about everything but it is calling the parent stylsheet first, any help would be great.
    regards,
    raincheck123

Viewing 3 replies - 16 through 18 (of 18 total)
  • Theme Author Gorilla Themes

    (@gorilla-themes)

    Please let me know the status of the stylesheet issue.

    Thanks CrouchingBruin: That solution worked for me. Just replaced the line wp_enqueue_style( 'main_style', get_template_directory_uri() . '/style.css' );
    with
    wp_enqueue_style( 'main_style', get_stylesheet_directory_uri() . '/style.css' );

    Hi, InvaderNat. Did you create a child theme or did you make the change directly to the theme’s functions.php file? If you made the change directly to the theme’s functions.php file, just be aware that the next time the theme is updated, then your changes will be lost the next time you update/upgrade the theme. That is why you should create your own child theme’s functions.php file and add the code above.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘child stylesheet not overriding’ is closed to new replies.