CSS issue on 404 page with Child theme
-
Hi,
I’m contacting you because i’ve an issue only on my 404 page. The CSS isn’t applied on it. I’ve tried to disable plugins but the issue still occurs. I’m using a child theme and i’ve picked the CSS and the function.php codes in the GitHub.
My function.php is
function oceanwp_child_enqueue_parent_style() { // Dynamically get version number of the parent stylesheet (lets browsers re-cache your stylesheet when you update the theme). $theme = wp_get_theme( 'OceanWP' ); $version = $theme->get( 'Version' ); // Load the stylesheet. wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'oceanwp-style' ), $version ); } add_action( 'wp_enqueue_scripts', 'oceanwp_child_enqueue_parent_style' );
And my CSS is:
/* Theme Name: OceanWP Child Theme Theme URI: https://oceanwp.org/ Description: OceanWP WordPress theme. Sample child theme. Author: OceanWP Author URI: https://oceanwp.org/ Template: oceanwp Version: 3.4.1 */ /* Parent stylesheet should be loaded from functions.php not using @import */ .entry-title, .entry-content h2, .entry h2{ border-bottom:#999 dotted 1px !important; } /* Gallery block fix */ body .is-layout-flex { display: flex; flex-wrap: wrap }
I’ve tried without my personal CSS and to create my own 404 page in Ocean Extra Library and select it in customizer, but i’ve the same result. That seems the 404 page can’t access to the CSS. I’ve not a 404.php file in the child theme folder.
Thanks by advance for your help!
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘CSS issue on 404 page with Child theme’ is closed to new replies.