
Originally Posted by
chadlly2003
Just to be clear if you want to add another icon next to shopping cart use css grid to create the columns.
In CSS Grid, grid-template-columns: auto defines that each column will be sized automatically, primarily based on the content within the column. This means the width of each column will adjust to fit the widest content it contains, and the grid will expand to accommodate new columns as needed
1st step ** Add your content within the .shoppingcart div
<div class="shoppingcart">
<a href="https://www.zencartdemo.com/index.php?main_page=login" aria-label="Login Details">
<i class="fa fa-user spacer2 navitem1t" aria-hidden="true" role="img" aria-label="Login icon">##</i></a>
<a href="https://www.zencartdemo.com/index.php?main_page=contact_us" aria-label="Contact Us">
<i class="fa fa-envelope spacer1 navitem2t " aria-hidden="true" role="img" aria-label="Contact icon">##</i></a>
<a href="https://www.zencartdemo.com/index.php?main_page=shopping_cart" aria-label="Shopping Cart">
<i class="fa fa-shopping-cart fa-fw badge fa-lg navitem3t" aria-hidden="true" role="img" aria-label="Shopping cart icon">
<span class="cart-count">0</span></i></a>
</div>
2nd step ** update css grid
Path: /stylesheet custom.css
we are only editing grid-template-columns
To make it resposnive
find this
@media (min-width: 576px) {
.shoppingcart {
grid-template-columns: auto auto auto;
text-align: center;
gap:1.5rem;
margin-top: 0px;
}
replace with
@media (min-width: 576px) {
.shoppingcart {
grid-template-columns: auto auto auto auto;
text-align: center;
gap:1.5rem;
margin-top: 0px;
}
}
}