Jump to content

Code block not working in footer

Recommended Posts

I have a dual language website that people can pick which language they want to view the website in and I'm having trouble with some coding I've placed in my my footers. I have my footer duplicated for each language and then hidden depending on which language they've picked. French footer is hidden on the English side - only English is displayed and vice versa for the French.

The custom code placed in my footer is not displaying on the English side but displaying double on the French side (see screenshots). I've deleted the code and placed it back in case it just needed a reset but that didn't work so I'm not quite sure how to fix it. Any ideas?

www.oneofthereids.ca
Password: claire1234!

Code that I need to use for membership badge:

<div id="mni-membership-638495506847879284"></div>
<script src="https://tbchamberon.chambermaster.com/Content/Script/Member.js" type="text/javascript"></script>
<script type="text/javascript">
new MNI.Widgets.Member("mni-membership-638495506847879284",{member:6155,styleTemplate:"#@id{text-align:center;position:relative}#@id .mn-widget-member-name{font-weight:700}#@id .mn-widget-member-logo{max-width:100%}"}).create();
</script>

 

Screen Shot 2024-08-16 at 5.01.41 PM.png

Screen Shot 2024-08-16 at 5.02.07 PM.png

Link to comment
  • Replies 7
  • Views 447
  • Created
  • Last Reply

Top Posters In This Topic

To fix double problem on French Pages, you can use this code to Website Tools > Custom CSS

div#block-yui_3_17_2_1_1716575090948_7706 div[id*="mni-membership-"]>div:first-child {
    display: none;
}

To fix badge doesn't appear on English Pages: I think both section has same code so they conflict together, you try edit English Code Block > Replace current code with this line only

<div id="mni-membership-638495506847879284"></div>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.