Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › How to swap login and cart positiion and make it appear only in sticky header
New Landing › How can we help? › Themeforest Theme Support › Dante › How to swap login and cart positiion and make it appear only in sticky header
- This topic has 15 replies, 2 voices, and was last updated 9 years by Rui Guerreiro – SUPPORT.
-
Posted in: Dante
-
October 19, 2015 at 10:39 am #221489
Hi,
I have set my login details and shopping cart to appear on top in the top navigation bar. I would like if possible to switch their position and have first the cart icon and last the login details. Is it also possible to add the word “Carrello” instead of showing the amount in the cart and add an icon next to login? (see attachment).
Right now the shopping cart is in both the top navigation bar and the navigation bar.
Is there a way to remove it from the navigation bar but make it appear when I scroll down the page? (sticky header).
Please let me know if you can help me out.
Thanks in advance.Attachments:
You must be logged in to view attached files.October 19, 2015 at 11:48 am #221509Hi,
Add the css below to your custom css option.
.top-menu .menu li:first-child { float: right!important; } .shopping-bag-item .amount:before{ content: " Carrelo "; } .sticky-wrapper .shopping-bag-item{ display:none; } .is-sticky .shopping-bag-item { display: block!important; }
Let us know the result.
-Rui
October 19, 2015 at 12:02 pm #221517Thanks Rui,
This code swapped the position of login and cart.
Is there any chance I can now:
1. add the ss-lock icon before the login
2. instead of displaying the total amount of money in the cart to show the word “Carrello”
3. make the cart from the navigation invisible and make it visible when you scroll down the page? (Sticky header)Thanks for your time.
October 19, 2015 at 12:08 pm #221519Hi,
2 and 3 was already provided in the code above. Did you add everything?
Will check 1.
-Rui
October 19, 2015 at 12:13 pm #221521Hi Rui,
Yes I have added all the css code you provided.
Unfortunately, 2 and 3 are still not working…October 19, 2015 at 12:19 pm #221525Try this one for 1)
.top-menu .menu li:first-child a:before{ font-family:"SSGizmo"; content:"🔒" }
-Rui
October 19, 2015 at 1:06 pm #221564The 2 and 3 are ok now, just clear the cache.
1 is not working will check with our head developer and get back to you.-Rui
October 19, 2015 at 1:12 pm #221567Hi Rui,
The code is trying to insert the icon but it doesn’t appear properly.
If you check it shows the icon code you inserted in the code.
I tried both the code and the .ss-cart in the css but still doesn’t appear. (note that in your code you put the semicolon inside the quotation marks and I have changed that)The “Carrello” in the item appears now but it doesn’t replace the total amount. I think this is fine as I prefer to have both. I will double check with my client and let you know If I need the total amount to be replaced with the “Carrello”. So for now number 2 is resolved.
October 19, 2015 at 1:15 pm #221569Number 3 isn’t working for me! I have cleared my cache but the cart still appears in the navigation bar.
I have also tested it in 3 browsers.October 19, 2015 at 1:28 pm #2215713 seems fine to me.
https://www.dropbox.com/s/6dawuvasihx4jki/Screenshot%202015-10-19%2013.27.01.png?dl=0Try to use chrome in Incognito mode mac( cmd + Shif + N ) or windows ( Ctrl + Shif + N )
Will let you know when I have something on 1.
-Rui
October 19, 2015 at 2:03 pm #221587Yes I am using incognito mode all the time.
It’s working now! I don’t know why but it takes some time for the site to update. I was using incognito mode to test the changes even 10 minutes after the changes but it wasn’t showing!Thanks for that. Will be waiting for number 1 🙂
October 19, 2015 at 2:38 pm #221614I also fixed 1 already.
This was the correct code.
.top-menu .menu li:first-child a:before{ font-family:"SSGizmo"; content:"\1F512"; }
-Rui
October 19, 2015 at 3:02 pm #221626Thanks a lot Rui.
The icon appears now but unfortunately another problem appears when you add the icon.
If you go to the cart, in the dropdown menu there is the lock icon inside and on top of the “Vai al negozio” button.This doesn’t happen with the cart inside the navigation bar but only in the cart that is in the top navigation bar.
October 19, 2015 at 4:16 pm #221653Didn’t realize that. I already changed to this one and it works.
.top-menu .menu > li:first-child a:before{ font-family:"SSGizmo"; content:"\1F512"; }
-Rui
October 19, 2015 at 4:36 pm #221664Thanks a lot Rui!
Now it’s perfect! You can lock this as resolved.
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.