Site logo

Archived topic

How Do I enter Java script cart coding info into my nav menu bars?

7 replies · Started by Jason on January 11, 2017

Viewing posts 1–8 of 8

I was able to use the custom link in menus to add the actual cart image with <i class="fa fa-shopping-cart" aria-hidden="true"></i>

But I would like to add the below cart info to display on my site when people add actual items to the cart, the amounts update in real time to the amount. How do i add the below script to the nav menu bar?

I changed my actual cart numbers to all 000000,

then how do I point it back to my menu nav bar?

How does puting the code in the footer get it on the nav bar? that doesn't make any sense at all.

That's not how javascript works. The code itself targets the elements it needs to change - you can place it wherever you like and it won't make a difference. The footer is just best practice when it comes to JS.

ok thanks,

No problem :)

This archived topic is closed to new replies.