Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Child theme not overriding headers

Home / Forums / Virtue Theme / Child theme not overriding headers

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
May 9, 2017 at 3:45 am

Hi guys!

I have created a Child Theme for the virtue premium and I’m not able to override the style from H1 to H5. I can override h6 and p.

Here is my style.css and my functions.php

/*
Theme Name: Virtue Premium Child
Theme URI:
Description: Virtue Premium Child Theme for Cardonet
Author: Jesus Sanz
Author URI: http://www.jesussanz.net
Template: virtue_premium
Version: 1.0.0
Tags: light, dark, two-columns, right-sidebar, responsive-layout
Text Domain: virtue-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style', get_stylesheet_uri(), array( 'parent-style' ) );
}

The website is on my local computer, so I can’t share a link of it. Would you mind to let me know where is my mistake?

Thanks 🙂

  • The forum ‘Virtue Theme’ is closed to new topics and replies.