Vanda-SuperBonjour
-
Posts
7 -
Joined
-
Last visited
Content Type
Forums
Gallery
Blogs
Events
Store
Downloads
Profiles
Posts posted by Vanda-SuperBonjour
-
-
12 hours ago, creedon said:
They way the code works is to hide all footers with the CSS and then the Javascript that is added to Brad's code should display the correct footer section based on lang.
Without the code installed I can not diagnose if there is a issue with my code.
The code is installed. I get an error : Uncaught ReferenceError: lang is not defined. Can't understand...
-
I tried to removed the ""display : none;"" part of the css...
And intervert the sections id. Can't figure it out ahaha.
keeping trying though. If you guys see something well you save me!
Thanks again and again anyway
-
Hi @creedon! Thanks for your answer!
I did as you said, but now none of the footer section is displayed, they both disappeared.
-
Hi guys !
I am trying something quite similar... it is chosing the footer i want to display depending on the language of the page using a script. I made a script for the multilanguage following the script of Brad Good. Everything works fine, i just need to display the right footer. I already made a footer with two sections within it.
The site is lafirme .ca
For now, concerning the ccode, here is where i am....
/*EXCLUDE OTHER LANGUAGE FOOTER*/
if (lang = "fr") {
section[data-section-id="615e0033625b2043c92d327a"] {
display: none !important;
visibility: hidden !important;}
}if (lang = "en") {
section[data-section-id="609084d63d45de554fe899f5"] {
display: none !important;
visibility: hidden !important;}
}Could anybody please give me a hand and help me figure out what i got wrong here ?
Thank you very much to all for your time and all previous documentation !
Cheers
-
Site URL: http://lafirme.com
Hi guys !
I am trying to chose the footer i want to display depending on the language of the page using a script.
The site is lafirme.ca
For now i am there....
/*EXCLUDE OTHER LANGUAGE FOOTER*/
if (lang == "fr") {
section[data-section-id="615e0033625b2043c92d327a"] {
display: none !important;
visibility: hidden !important;}
}if (lang == "en") {
section[data-section-id="609084d63d45de554fe899f5"] {
display: none !important;
visibility: hidden !important;}
}Could anybody give me a hand and help me figure out what i got wrong here ?
Thank you very much to all for your time and all previous documentation !
Different footers on different pages in 7.1 ( how to hide sections in a stacked footer)
in Customize with code
Posted
@creedon actually your code worked!
I misplaced the script! It just had to be placed inside the $(function() { } of Brad setting up multilanguages and language classes!
Thanks a lot !