CSS from child theme isn’t working
-
Hello,
I created the child theme
style.css/* Theme Name: Ashe Child Theme URI: https://risvoltidicopertina.com/ Description: Tema Child per il tema Ashe Author: Valeria Curseri Author URI: https://valeriacurseri.com/ Template: ashe Text Domain: ashechild Version: 3 */ .entry-header { height: 300px; } .header-logo a, .site-description { color: #ca9b52; } .site-description { display: inline-block; margin-top: 15px; margin-bottom: 0; font-size: 30px; line-height: 1.1; } .elementor-element.elementor-element-4c02cb6{ margin-left: 25px; margin-right: 25px; padding-top:10px; padding-bottom:10px; } #subscribe_reloaded_email{ border-color:#e8e8e8; box-shadow:none; border: 1px solid #8e98a2; } #evf-submit-375{ border: none; width: auto; cursor: pointer; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; color: #ffffff; background-color: #333333; padding:13px; font-size: 14px; font-family: 'Open Sans'; border-radius: 0; } #evf-submit-375:hover{ color: #ffffff; background:#ca9b52; }
function.php
<?php add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style' ); function enqueue_parent_theme_style() { $parent_style = 'ashe-style'; wp_enqueue_style( $parent_style, get_template_directory_uri().'/style.css' ); wp_enqueue_style( 'ashe-child', get_stylesheet_directory_uri().'/style.css', array($parent_style), wp_get_theme()->get('Version') ); }
and the site first loads the css of the parent theme and then that of the child theme. despite this, the changes inserted in the style.css file within the child theme are not taken.
Because? What else should I do?
ThanksThe page I need help with: [log in to see the link]
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘CSS from child theme isn’t working’ is closed to new replies.