mister_nar Posted June 11 Share Posted June 11 I know I can just add links to the main navigation to go to categories but my issues is it won't show those pages as active because it considers them external links. There is a button in store settings> categories> that says "add to main navigation" (see attachment for reference screenshot) but it doesn't do anything/ doesn't work when clicked. Any insight would be much appreciated. Thank you! Link to comment
tuanphan Posted June 13 Share Posted June 13 Hi, I think we can add code to make it show as active link. If you share link to your site, we can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
mister_nar Posted June 21 Author Share Posted June 21 Sorry for the delay. here is the link https://narmfg.com Thank you! Link to comment
tuanphan Posted June 23 Share Posted June 23 On 6/21/2023 at 10:23 PM, mister_nar said: Sorry for the delay. here is the link https://narmfg.com Thank you! You mean make these underline when users on? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
mister_nar Posted June 24 Author Share Posted June 24 On 6/23/2023 at 4:10 AM, tuanphan said: You mean make these underline when users on? Yes. Link to comment
tuanphan Posted June 25 Share Posted June 25 14 hours ago, mister_nar said: Yes. Try adding this code to Last Line in Code Injection > Footer <script> if (document.location.pathname.indexOf("/shop/manufacturing") == 0) { document.querySelector('body').classList.add('t-active') } if (document.location.pathname.indexOf("/shop/supply") == 0) { document.querySelector('body').classList.add('t-active') } </script> <style> t.active header#header [href*="/shop/manufa"], t.active header#header [href*="/shop/supply"] { border-bottom: 1px solid; } </style> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
mister_nar Posted June 25 Author Share Posted June 25 hmmmm I've the code in there but it doesn't seem to be working. Link to comment
Solution tuanphan Posted June 27 Solution Share Posted June 27 On 6/26/2023 at 1:21 AM, mister_nar said: hmmmm I've the code in there but it doesn't seem to be working. I miss a - symbol. Use this new code <script> if (document.location.pathname.indexOf("/shop/manufacturing") == 0) { document.querySelector('body').classList.add('t-active') } if (document.location.pathname.indexOf("/shop/supply") == 0) { document.querySelector('body').classList.add('t-active') } </script> <style> body.t-active header#header [href*="/shop/manufa"], body.t-active header#header [href*="/shop/supply"] { border-bottom: 1px solid; } </style> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
mister_nar Posted June 28 Author Share Posted June 28 On 6/27/2023 at 1:46 AM, tuanphan said: Thanks. I had to change one of the 't-active' so they wouldn't both be underlined and now it works. tuanphan 1 Link to comment
TRBZINK Posted July 22 Share Posted July 22 i am having the same problem, with categories not showing in the header, the solution above is not working? and i configured the code to use the /shop/abode like my site categories. https://conch-platinum-mf8h.squarespace.com/ Link to comment
tuanphan Posted July 25 Share Posted July 25 On 7/23/2023 at 6:46 AM, TRBZINK said: i am having the same problem, with categories not showing in the header, the solution above is not working? and i configured the code to use the /shop/abode like my site categories. https://conch-platinum-mf8h.squarespace.com/ What is access password? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment