The style.css won´t load
-
Hi,
The style.css file exists but it doesn’t load.
http://sisasparce.com/wp-content/themes/obturador/style.css
Yesterday i deledted the cache and it work, but then i uninstalled the theme and reinstalled and the problem came back.
I’m enqueueing the styles in the functions file, i try calling the stylesheet from the header but it doesn’t work:
$skin = get_theme_mod( 'obturador_skin' ); if ( $skin == 'dark' ) { wp_enqueue_style( 'obturador-style', get_stylesheet_uri() ); } if ( $skin == 'light' ) { wp_enqueue_style( 'obturador-light-skin', get_template_directory_uri() . '/layouts/light.css' ); } wp_enqueue_style( 'custom-style', get_template_directory_uri() . '/layouts/responsive.css' ); //Responsive stylesheet if (is_page_template('page-templates/page-nosidebar.php')) { wp_enqueue_style( 'obturador-layout-style' , get_template_directory_uri() . '/layouts/no-sidebar.css'); } elseif (is_page_template('page-templates/page-full-width.php')) { wp_enqueue_style( 'obturador-layout-style' , get_template_directory_uri() . '/layouts/full-width.css'); } else { wp_enqueue_style( 'obturador-layout-style' , get_template_directory_uri() . '/layouts/content-sidebar.css'); }
Please help. I´ve been trying to solve this problem for days.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘The style.css won´t load’ is closed to new replies.