:scream: !!! Thank you so much!
My js was in the "Custom JS" window of the page, where it's impossible to write <script></script>. I thought it was automatic...
I've put it in the custom header, and IT WORKS!
Merci Merci Merci
:scream: !!! Thank you so much!
My js was in the "Custom JS" window of the page, where it's impossible to write <script></script>. I thought it was automatic...
I've put it in the custom header, and IT WORKS!
Merci Merci Merci
Hello Armin!
Thank you for your answer, I've tried it, but I still don't understand.
Here my code (compatible with every version of the Jquery library and it works on a simulator):
window.laytheme.on("newpageshown", function(layoutObj, type, obj){
if(type == "page" && obj.id == 109){
function close_accordion_section() {
jQuery('.accordion .title').removeClass('active');
jQuery('.accordion .section-content').slideUp(300).removeClass('open');
}
jQuery('.title').click(function(e) {
// Grab current anchor value
var currentAttrValue = jQuery(this).attr('href');
if(jQuery(e.target).is('.active')) {
close_accordion_section();
}else {
close_accordion_section();
// Add active class to section title
jQuery(this).addClass('active');
// Open up the hidden content panel
jQuery('.accordion ' + currentAttrValue).slideDown(300).addClass('open');
}
e.preventDefault();
});
}
});
Thank you for your help :thinking:
Audrey
Finally fixed it! I was calling a wrong link in the header! :see_no_evil:
Thanks you for your help :cactus:
I did it, nothing change :crab:
Here the link -->> www.fusion-vegetale.fr
Hi @ana!
Very pretty website!
I can see that you found a solution, which one is it?
Thanks a lot in advance!
Audrey
Hi Armin!
Thanks a lot for this awesome theme! I've made the last update last night, since, texte and images don't appear in my web site. Should I wait more, is it in "maintenance" ?
I have no Child-Theme because I'm still building it.
Thanks a lot,
Audrey
Hi everybody!
I'm Audrey, freelancer art director. I choose Lay Theme for building my first website for a personal project (vertical garden shop) and I want to try & customize some things with the help of Js ans Css animations.
Here is the situation :
[http://codepen.io/be-laud/pen/pROVmz]
I am trying to put this accordion in Lay Theme. HTML and CSS are integrated and both of them work, but I'm not very good in JS. I tried super hard to apply the Lay Theme documentation... but I still miss something!
Could you please tell me how I should write it to make it compatible with Lay Theme ?
Thanks a lot!
Audrey