Joe Vega
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Hueman] responisve.css doesn't work with child themeThe function file with “alx_styles()” works very well yet!
But, it’s a mystery! ?? May be it was a Chrome for Android problem.Thank you very much!
Forum: Themes and Templates
In reply to: [Hueman] responisve.css doesn't work with child themeThe access to the proof site is https://reikiar.com/index-wp.php
At this moment hueman-child/function.php has the “alx_styles()” function with de line “if ( ot_get_option(‘responsive’) != ‘off’ ) { wp_enqueue_style( ‘responsive’, get_stylesheet_directory_uri().’/responsive.css’ ); }” active
…and WORKS CORRECTLY NOW!It is a mystery, it was not working correctly yesterday. I’m sorry.
Maybe there was some fault in the server performance.Forum: Themes and Templates
In reply to: [Hueman] responisve.css doesn't work with child themefunction.php is in hueman-child folder.
Forum: Themes and Templates
In reply to: [Hueman] responisve.css doesn't work with child themeI’m sorry, the english is not my language and it’s a bit difficult explain it for me.
When I add the function with the line “if ( ot_get_option(‘responsive’) != ‘off’ ) { wp_enqueue_style( ‘responsive’, get_stylesheet_directory_uri().’/responsive.css’ ); }” in function.php, the layout shows in mobile phone like in PC, it doesn’t adjust at 320px. In the PC no problem.
When I change “get_stylesheet_directory_uri()” by “get_template_directory_uri()” on that line, the layout works perfectly at 320px in smartphone.
I think the problem is “get_stylesheet_directory_uri()”.
Thank you very much for your attention!
Forum: Themes and Templates
In reply to: [Hueman] responisve.css doesn't work with child themeHi bdbrown,
I forgot to mention that in PC works well, but does not work in mobile phone.
Forum: Themes and Templates
In reply to: [Hueman] responisve.css doesn't work with child themeI tried this other code but does not work.
function alx_styles() { wp_enqueue_style( 'style', get_stylesheet_uri() ); if ( ot_get_option('responsive') != 'off' ) { wp_enqueue_style( 'responsive', get_stylesheet_directory_uri().'/responsive.css' ); } if ( ot_get_option('custom') == 'on' ) { wp_enqueue_style( 'custom', get_template_directory_uri().'/custom.css' ); } wp_enqueue_style( 'font-awesome', get_template_directory_uri().'/fonts/font-awesome.min.css' ); }