Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    195
    Plugin Contributions
    6

    Default Re: Responsive Classic Redesign Support thread

    Quote Originally Posted by chadlly2003 View Post
    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;
    }

    }

    }
    This does not really work here because the languages and currencies links are kind of dynamic. If there is only one language or one currency, nothing is displayed. If there is 2 or 3 then an icon for each is displayed and if there is more, one icon with a drop down menu is displayed. Which means there could be between 0 and 4 icons to display depending on ZC settings.
    I can modify plugin to not display more than one icon per language/currency, but their would still be 0, 1 or 2 icons to display.

  2. #12
    Join Date
    Jan 2015
    Posts
    482
    Plugin Contributions
    0

    Default Re: Responsive Classic Redesign Support thread

    instead of grid lets do flex

    find this

    .shoppingcart {
    grid-template-columns: auto auto auto; <!--- remove this -->
    text-align: center;
    gap: 1.5rem;
    margin-top: 0px;

    replace with


    .shoppingcart {
    display:flex <!-- this will solve your issue -->
    text-align: center;
    gap:1.5rem;
    margin-top: 0px;

  3. #13
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    195
    Plugin Contributions
    6

    Default Re: Responsive Classic Redesign Support thread

    It was no right place to do the change, it was a little bit higher in the file. I replaced:
    Code:
    .shoppingcart {
    	margin-left:auto;
    	display:grid;
    	grid-template-columns: 1fr auto;
    	min-height: 44px;
    	min-width: 44px;
        position: relative;
        align-content: end;
    }
    By this:
    Code:
    .shoppingcart {
    	margin-left:auto;
    	display:flex;
    	grid-template-columns: 1fr auto;
    	min-height: 44px;
    	min-width: 44px;
        position: relative;
        align-content: end;
    }
    And now I can insert icons for languages and currencies on one line in header.
    Name:  _ZC_R_C_New_with_icons.png
Views: 9
Size:  4.9 KB

    Thanks!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v155 Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
    By picaflor-azul in forum Templates, Stylesheets, Page Layout
    Replies: 1087
    Last Post: 18 Jan 2025, 07:23 PM
  2. v155 Tableau 2 Responsive Theme - Support Thread
    By numinix in forum Addon Templates
    Replies: 24
    Last Post: 24 Jan 2023, 04:05 AM
  3. v156 ZCA Responsive Classic Template for 1.5.6 [Support Thread]
    By rbarbour in forum Addon Templates
    Replies: 31
    Last Post: 15 Nov 2019, 04:21 PM
  4. v155 Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
    By picaflor-azul in forum Addon Templates
    Replies: 0
    Last Post: 17 Mar 2016, 12:30 AM
  5. Bentley Classic Template Support Thread
    By picaflor-azul in forum Addon Templates
    Replies: 173
    Last Post: 17 Sep 2013, 08:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR