Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Oct 2025
    Location
    Albuquerque, NM
    Posts
    11
    Plugin Contributions
    0

    Default Page not displaying correctly.

    Hello all,

    I am sure this is an easy fix I am just not seeing it, when I click on the Shop all brands page it doesn't display the page correctly I have attached a screenshot of what it looks like, I am hoping that someone can give me any ideas to make it display correctly. If you would like to see the site your self to get a better understanding https://shop.nmtaserandmore.com/inde...in_page=brands is the link directly to that page.
    Attached Images Attached Images  

  2. #2
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,741
    Plugin Contributions
    22

    Default Re: Page not displaying correctly.

    includes/templates/responsive_classic/css/stylesheet.css

    find
    Code:
    .brandCell {
      height: 126px !important;
    }
    and remove it. Save the file and reload the page (CTRL+F5) or clear browser cache. This should allow the matchHeight.js to trigger and align the rows. There will be some gaps because your images are different sizes, but it will look much better.

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,701
    Plugin Contributions
    11

    Default Re: Page not displaying correctly.

    I would suggest leaving the
    Code:
    .brandCell {
      height: 126px !important;
    }
    but change it to
    Code:
    .brandCell {
    height: auto !important;
    }
    That's the quick, down and dirty.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  4. #4
    Join Date
    Jan 2015
    Posts
    726
    Plugin Contributions
    1

    Default Re: Page not displaying correctly.

    you have to make a small adjustment to the html to get this to work right if you want it to be responsive. Sizing images is not the best option in this case.

    you have
    Code:
    <div class="">
    <div class="brandCell centeredContent back" style="width: 33%; height: 126px;"><a href="https://shop.nmtaserandmore.com/511-tatical-m-16.html"><div class="brandImage"><img src="images/5.11.webp" title="5.11 Tatical" alt="(image for) 5.11 Tatical" width="218" height="96"></div><div class="brandName">5.11 Tatical</div></a></div>
    <div class="brandCell centeredContent back" style="width: 33%; height: 126px;"><a href="https://shop.nmtaserandmore.com/abkt-tac-m-15.html"><div class="brandImage"><img src="images/abkt-logo.jpg" title="ABKT Tac" alt="(image for) ABKT Tac" width="220" height="220"></div><div class="brandName">ABKT Tac</div></a></div>



    change it to
    Code:
    <div class="example">
    <div class="brandCell"><a href="https://shop.nmtaserandmore.com/511-tatical-m-16.html"><div class="brandImage"><img src="images/5.11.webp" title="5.11 Tatical" alt="(image for) 5.11 Tatical" width="218" height="96"></div><div class="brandName">5.11 Tatical</div></a></div>
    <div class="brandCell"><a href="https://shop.nmtaserandmore.com/abkt-tac-m-15.html"><div class="brandImage"><img src="images/abkt-logo.jpg" title="ABKT Tac" alt="(image for) ABKT Tac" width="220" height="220"></div><div class="brandName">ABKT Tac</div></a></div>
    All i did was removed remove the styles from the html
    Code:
    .centeredContent back and style="width: 33%; height: 126px;"

    add this to your css and you will have a nice responsive brand page

    Code:
    .example
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-content: center;
    align-items: center;
    }
    
    
    
    @media (min-width: 576px) {
    .example
    display: flex;
    flex-direction: row;
    gap: 1rem;
    text-align: center;
    align-content: center;
    align-items: center;
    }
    }
    Click image for larger version. 

Name:	Screenshot 2026-01-15 135701.jpg 
Views:	22 
Size:	35.4 KB 
ID:	21136

  5. #5
    Join Date
    Oct 2025
    Location
    Albuquerque, NM
    Posts
    11
    Plugin Contributions
    0

    Default Re: Page not displaying correctly.

    Quote Originally Posted by chadlly2003 View Post
    you have to make a small adjustment to the html to get this to work right if you want it to be responsive. Sizing images is not the best option in this case.

    you have
    Code:
    <div class="">
    <div class="brandCell centeredContent back" style="width: 33%; height: 126px;"><a href="https://shop.nmtaserandmore.com/511-tatical-m-16.html"><div class="brandImage"><img src="images/5.11.webp" title="5.11 Tatical" alt="(image for) 5.11 Tatical" width="218" height="96"></div><div class="brandName">5.11 Tatical</div></a></div>
    <div class="brandCell centeredContent back" style="width: 33%; height: 126px;"><a href="https://shop.nmtaserandmore.com/abkt-tac-m-15.html"><div class="brandImage"><img src="images/abkt-logo.jpg" title="ABKT Tac" alt="(image for) ABKT Tac" width="220" height="220"></div><div class="brandName">ABKT Tac</div></a></div>



    change it to
    Code:
    <div class="example">
    <div class="brandCell"><a href="https://shop.nmtaserandmore.com/511-tatical-m-16.html"><div class="brandImage"><img src="images/5.11.webp" title="5.11 Tatical" alt="(image for) 5.11 Tatical" width="218" height="96"></div><div class="brandName">5.11 Tatical</div></a></div>
    <div class="brandCell"><a href="https://shop.nmtaserandmore.com/abkt-tac-m-15.html"><div class="brandImage"><img src="images/abkt-logo.jpg" title="ABKT Tac" alt="(image for) ABKT Tac" width="220" height="220"></div><div class="brandName">ABKT Tac</div></a></div>
    All i did was removed remove the styles from the html
    Code:
    .centeredContent back and style="width: 33%; height: 126px;"

    add this to your css and you will have a nice responsive brand page

    Code:
    .example
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-content: center;
    align-items: center;
    }
    
    
    
    @media (min-width: 576px) {
    .example
    display: flex;
    flex-direction: row;
    gap: 1rem;
    text-align: center;
    align-content: center;
    align-items: center;
    }
    }
    Click image for larger version. 

Name:	Screenshot 2026-01-15 135701.jpg 
Views:	22 
Size:	35.4 KB 
ID:	21136
    Which files would i need to change?

  6. #6
    Join Date
    Jan 2015
    Posts
    726
    Plugin Contributions
    1

    Default Re: Page not displaying correctly.

    path: includes\templates\your_template\templates\tpl_brands_default.php

    find this

    Code:
    'params' => 'class="brandCell centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
    replace with

    Code:
    'params' => 'class="brandCell"' . ' ' . '',
    path: includes\templates\yor_template\common\tpl_columnar_display.php
    find this
    Code:
    $r_params = 'class=""';
    replace with
    Code:
    $r_params = 'class="example"';
    CSS -- so this does not impact any other pages i added #brandsBody to the class
    path: /includes/templates/responsive_classic/css/stylesheet.css
    Add this to the bottom of stylesheet

    Code:
    #brandsBody .example {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-content: center;
    align-items: center;
    }
    
    
    
    @media (min-width: 576px) {
    #brandsBody .example {
    display: lex;
    flex-direction: row;
    gap: 1rem;
    text-align: center;
    align-content: center;
    align-items: center;
    }
    }

 

 

Similar Threads

  1. v151 Min / Max Order Amounts not displaying correctly on product info page
    By cbooch in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Aug 2019, 01:38 AM
  2. Home page layout not displaying correctly
    By tgts2000 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Dec 2009, 06:42 PM
  3. Not Displaying correctly
    By arthena in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 21 Feb 2009, 11:08 PM
  4. Home page not displaying correctly
    By Macopoly in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 16 Mar 2007, 08:00 PM

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