Home › Forums › Theme support › Eiffel Theme Menu Not Displaying Properly › Reply To: Eiffel Theme Menu Not Displaying Properly
Hello again,
I have been working on this issue for a number of weeks now.
I’ve gone back and recreated the Child Theme in hopes of removing the issue. However that has not solved the issue. I have done numerous things with the function.php file to see if enqueuing style sheets differently would change the result and that served no purpose either.
In looking at the inspector the site is reading the proper color however it only displays if the site has been visited.
Please continue to advise.
Here is a link to a screenshot of the inspector.
The only thing I have no attempted is custom CSS to see if that will override. I did not take that step as the CSS file seems to be reading properly according to the inspector.
For reference here is the php code.
<?php
/**
* Load the stylesheet from the parent theme with theme version added automatically.
*
*/
function theme_name_parent_styles() {
$parent = get_template();
$parent = wp_get_theme( $parent );
// Enqueue the parent stylesheet
wp_enqueue_style( ‘theme-name-parent-style’, get_template_directory_uri() . ‘/style.css’, array(), $parent[‘Version’], ‘all’ );
// Enqueue the parent rtl stylesheet
if ( is_rtl() ) {
wp_enqueue_style( ‘theme-name-parent-style-rtl’, get_template_directory_uri() . ‘/rtl.css’, array(), $parent[‘Version’], ‘all’ );
}
}
add_action( ‘wp_enqueue_scripts’, ‘theme_name_parent_styles’ );
?>