Quantcast
Channel: Topic Tag: mobile | WordPress.org
Viewing all articles
Browse latest Browse all 22087

goobybunny on "[Theme: Fruitful] Responsive css loading before child theme"

$
0
0

Update: I got it to work by changing the function fruitful_get_responsive_style in functions.php -- specifically:

function fruitful_get_responsive_style () {
$style_ = $back_style = $woo_style_ = '';
$theme_options = fruitful_ret_options("fruitful_theme_options");

wp_enqueue_style('fonts-style', get_template_directory_uri() . '/inc/css/fonts-style.css');
if (isset($theme_options['responsive']) && ($theme_options['responsive'] == 'on')) {
wp_enqueue_style('main-style', get_stylesheet_uri());
wp_enqueue_style( 'woo-style', get_stylesheet_directory_uri() . '/woocommerce/woo.css'); *

From get_template_directory_uri.

*(then it goes on to describe the fixed styles but I abridged it here for brevity's sake)

But this same code won't work when placed in my child theme's functions.php file. Anyone have any idea why?


Viewing all articles
Browse latest Browse all 22087

Trending Articles