Take a look at your <head>
tag. More importantly look at the order of your stylesheets.
The styles from your child theme are being added first and then all the styles from your parent theme. This will cause the styles from the parent theme to override your child theme styles.
You can change the priority of your my_theme_enqueue_styles
function to run after the parent by using the third parameter of add_action. This will enqueue your child theme styles last and allow the CSS to work as expected.
<?php add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles', 11 ); function my_theme_enqueue_styles() { wp_enqueue_style( 'child-style', get_stylesheet_uri() ); } ?>
Related Posts:
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- How can I find my php.ini on wordpress?
- $wpdb->update or $wpdb->insert results in slashes being added in front of quotes
- Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes)
- WordPress Error : Upload folder is not writable. Export and file upload features will not be functional
- Child theme css not overriding parent
- Prioritize Visible Content WordPress
- Get user role by ID WordPress
- do_shortcode not working
- WooCommerce action hooks and overriding templates
- Contact Form 7 – Custom Validation
- XAMPP, using port:81, cannot run localhost:81/mywebsite
- WordPress query single post by slug
- How to integrate WordPress with Angular 8 for website?
- Create a folder if it doesn’t already exist
- How to remove index.php from WordPress site URL
- CSS background images in WordPress
- WordPress visual composer not loading
- wordpress menu dropdown item not showing after first dropdown
- WordPress get_template_directory_uri() not returning https and only return http
- PHP “or” Syntax
- Get the full URL in PHP
- Invalid column count in CSV input on line 1 Error
- How to check if a string starts with a specified string?
- mysqli_real_connect(): (HY000/2002): No such file or directory
- Are there dictionaries in php?
- laravel updateOrCreate method
- How to listen messageSent event in laravel 5.5
- Mixing a PHP variable with a string literal
- Make a HTTPS request through PHP and get response
- How do the PHP equality (== double equals) and identity (=== triple equals) comparison operators differ?
- pdo – Call to a member function prepare() on a non-object
- Compare given date with today
- Multi-line strings in PHP
- Commands out of sync; you can’t run this command now
- Refresh a page using PHP
- cURL error 60: SSL certificate: unable to get local issuer certificate
- Laravel 5.2 Storage::makeDirectory($dir) is not creating directory
- Lost connection to MySQL server at ‘reading initial communication packet’, system error: 0
- Replace spaces with a dash in a URL
- Are PDO prepared statements sufficient to prevent SQL injection?
- Message: Trying to access array offset on value of type null [duplicate]
- retrieve data from db and display it in table in php .. see this code whats wrong with it?
- Count how many files in directory PHP
- Convert timestamp to readable date/time PHP
- Convert a date format in PHP
- Creating a php search bar
- What does ‘
- Parsing domain from a URL
- PHP class not found but it’s included
- How to fix the session_register() deprecated issue?
- How to convert string to boolean php
- Are There Any Cron Jobs Alternative?
- How to Create Multiple Where Clause Query Using Laravel Eloquent?
- PHP: How to get referrer URL?
- Warning: A non-numeric value encountered
- Proper Format of iframe in PHP?
- How to find the last day of the month from date?
- php_network_getaddresses: getaddrinfo failed: Name or service not known (0) Failed To Connect..!
- Updating php version on mac
- Composer: Command Not Found
- How to send a GET request from PHP?
- Undefined variable: $_SESSION
- Error:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
- The character encoding of the HTML document was not declared
- Notice: Undefined offset: 0 in
- How to Sort a Multi-dimensional Array by Value
- How to get time difference in minutes in PHP
- How to write a link like which link to the same page in PHP?
- PHP – syntax error, unexpected T_CONSTANT_ENCAPSED_STRING
- Insert string at specified position
- PHP + JQuery – How to use these two together? Please see my example
- Data extraction from /Filter /FlateDecode PDF stream in PHP
- How to use data-saferedirecturl in a tag in PHP?
- PHP date yesterday [duplicate]
- Clear cache in Symfony: `cache:clear` or `rm -rf`?
- create php live clock
- Converting a UNIX Timestamp to Formatted Date String
- PHP Call to undefined function
- Formatting a number with leading zeros in PHP
- POST an array from an HTML form without javascript
- Formidable Forms WordPress Plugin
- How to implement inline cm/inches conversion in WordPress
- WordPress qw.php file on root of installation
- How to change thumbnails for WordPress pages (KakaoTalk)
- Php – Your PHP installation appears to be missing the MySQL extension which is required by WordPress
- Local WordPress installation is stripping ‘wp-admin’ from URL on WordPress admin dashboard
- Exclude Featured Posts in WordPress ‘Recent Posts’ Function
- WordPress – add second logo to customizer
- php, cookies, wordpress – how to make automatic login in one one site, login and on other one
- WordPress Login Tracking Google Analytics
- WordPress – Check if user is logged in
- WordPress custom supports for custom post types
- Query multiple WordPress post types alternately
- After moving WordPress, login works, but no admin access anymore
- WordPress Error: There has been a critical error on your website. Please check your site admin email inbox for instructions
- Double slashes on WordPress Admin URL redirects to wp-login
- Display Ninja Forms Data in WordPress Template
- function “add_submenu_page in wordpress connects to the home page instead of the submenu page