-
AuthorPosts
-
November 28, 2019 at 2:26 pm #1160977
Hi dear support.
I want to add a query code on my theme, Please help me to understand where can I add that.
I read this forum: https://kriesi.at/documentation/enfold/add-custom-js-or-php-script/ but it doesn’t work for me.Also I read an article when someone advice to add this js code to functions.php. Maybe I am not so familiar to php & JS that\s why I couldn’t
find a solution
I send my jQuery code, please add it on theme/child theme and let me know how did you do it.$(function(){
if($(window).width() < ‘992px’){
$(“.col_floating_text”).after(“.col_floating_img”);
}
})- This topic was modified 4 years, 11 months ago by vaskenBakkalian.
November 29, 2019 at 4:55 pm #1161260Hey vaskenBakkalian,
Best regards,
VictoriaDecember 2, 2019 at 8:48 am #1161769Hello dear Victoria.
Thanks for your help. but browser console shows an error. Can you check it? It seems jquery link is missing or something else.
December 4, 2019 at 2:10 pm #1162598Hi,
Sorry for the late reply and thanks for the admin login, I have disabled your jQuery script because I found flexbox css to work better.
So I added this css, please clear your browser cache and check.@media only screen and (max-width: 992px) { #top.home #wrap_all #main #av_section_3 > div > div > div > div > div:nth-child(2){ display: flex !important; flex-wrap: wrap !important; } #top.home #wrap_all #main #av_section_3 .col_floating_text { order: 2 !important; } #top.home #wrap_all #main #av_section_3 .col_floating_img { order: 1 !important; } }
Best regards,
MikeDecember 4, 2019 at 2:58 pm #1162623Dear Mike. Your answers are useful as always. It works perfect for me. Thank you!
Can you just share where did you add that css code, because I didn’t see it on appearance-> theme-editor-style.css
Thanks again
RegardsDecember 4, 2019 at 3:55 pm #1162638Hey!
I believe it is in Enfold theme options > General Styling > Quick CSS field :)
Regards,
YigitDecember 4, 2019 at 4:04 pm #1162640Dear Yigit thanks for your reply. I found it, It was in appearance – customize – additional css :)
Thanks
RegardsDecember 4, 2019 at 4:09 pm #1162644 -
AuthorPosts
- The topic ‘insert Jquery code’ is closed to new replies.