Custom css not working
-
I have been designing my site with free generatepress and child theme but if I add my custom css it affects only the desktop unless i add it directly to “additional css” in theme customization located in appearance.
I have below function..function generatepress_child_enqueue_scripts() { if ( is_rtl() ) { wp_enqueue_style( 'generatepress-rtl', trailingslashit( get_template_directory_uri() ) . 'rtl.css' ); } } add_action( 'wp_enqueue_scripts', 'generatepress_child_enqueue_scripts', 100 ); add_action( 'wp_enqueue_scripts', 'tu_child_theme_enqueue' ); function tu_child_theme_enqueue() { wp_enqueue_style( 'child-theme-style', get_stylesheet_directory_uri() . '/custom.css'); }but it doestn’t affect the mobile view when I check on my phone. Thanks in advance to whoever will help.
Currently I have my css on “additional css” and its too many that it slows my site.The page I need help with: [log in to see the link]
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘Custom css not working’ is closed to new replies.
