Page 1 of 3 123 LastLast
Results 1 to 10 of 1685

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Hello, I am looking to put .active in red on the ezpage header bar and on the category names see photos one on a site where there is active on the categories and one without which is mine, in the login page I am successful to put the .active in yellow here is the code
    PHP Code:
    .nav-tabs .nav-link.active {
      
    color#fcf501;
      
    background-color#fff;
      
    border-color#dee2e6 #dee2e6 #fff;

    but in the column of the names of the categories I run into a wall. can you help me?

    Click image for larger version. 

Name:	Capture d’écran 2022-11-10 à 08.46.30.jpg 
Views:	90 
Size:	16.2 KB 
ID:	20145
    Click image for larger version. 

Name:	Capture d’écran 2022-11-10 à 08.46.jpg 
Views:	86 
Size:	40.8 KB 
ID:	20146
    Click image for larger version. 

Name:	Capture d’écran 2022-11-10 à 08.50.23.jpg 
Views:	75 
Size:	36.1 KB 
ID:	20147
    Giovanni,
    Zen Cart V2.1

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

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    The categories tab menu adds the class .activeLink to the current link automatically.

    Hopefully, you are using the site_specific_styles.php to control all your changes to the template. If not, rename the dist-site_specific_styles.php to site_specific_styles.php and save it to your CSS folder.

    Then, for the categories add
    Code:
    .activeLink {
      background-color: #ffffff !important;
      color: #fcf501 !important;
      border-color: #dee2e6 #dee2e6 #fff !important;
    }
    Unfortunately, the !important is needed to fully override the stylesheet_colors.css

    Please Note: The use of the above colors for background and font will violate accessibility contrast rules. Your font color would have to jump to #807900 to meet the 4.5:1 minimum ratio.

    It looks like we will need to add to the github wish list for .activeLink to be added to the ezpages bar. If so, the above code would need to be more specific than just .activeLink if you wanted different colors in different bars.
    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.

  3. #3
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Hello dbltoe, thank you for answering me so quickly, your modification
    PHP Code:
    .activeLink {
      
    background-color#ffffff !important;
      
    color#fcf501 !important;
      
    border-color#dee2e6 #dee2e6 #fff !important;

    does not work,

    I also have another problem if I put the css codes in site_specific_styles.php they have no effect, I had to create another .css file and paste my codes in this one.
    Giovanni,
    Zen Cart V2.1

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

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Site specific should look something like
    Code:
    <?php /*
     * BOOTSTRAP 3.3.0
     *
     * Create a file called "site_specific_styles.php" to contain any changes
     * to base css provided by this template. Place site-specific content
     * between the opening and closing style tags.
     *
     * Refer to https://github.com/lat9/ZCA-Bootstrap-Template/blob/v300/pages/faqs.md for
     * additional information.
     */
    ?>
    <style>
    .activeLink {
      background-color: #ffffff !important;
      color: #fcf501 !important;
      border-color: #dee2e6 #dee2e6 #fff !important;
    }
    </style>
    I do find that this is working in 3.3 but the border is not working in 3.4. See testDOTislam786booksDOTcom

    Both are using the site specific css with !important
    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.

  5. #5
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    I think I expressed myself badly about what I want to do, I put you a to a site, if you click on an ezpage you will see that once in the page the name of the page on ezbar remains yellow, also if you click on a category you will see that it remains red once the category is chosen. The code you provided me with changes color if you move the mouse over but it does not remain the color once the page has been chosen.

    https://demo.templatemonster.com/demo/43915dothtml
    Last edited by diamond1; 10 Nov 2022 at 05:13 PM.
    Giovanni,
    Zen Cart V2.1

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,536
    Plugin Contributions
    127

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    File includes/templates/bootstrap/jscript/jscript_zca_bootstrap.js

    starts with

    $('a.imageModal').on('click', function() {

    might need to be wrapped in

    if ($('a.imageModal')) {

    without this you can get

    Uncaught TypeError: $(...) is null

    if the page has no images.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Quote Originally Posted by swguy View Post
    File includes/templates/bootstrap/jscript/jscript_zca_bootstrap.js

    starts with

    $('a.imageModal').on('click', function() {

    might need to be wrapped in

    if ($('a.imageModal')) {

    without this you can get

    Uncaught TypeError: $(...) is null

    if the page has no images.
    Could you identify an example, preferably using the demo products, of a page that has no images?

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

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Quote Originally Posted by diamond1 View Post
    I think I expressed myself badly about what I want to do, I put you a to a site, if you click on an ezpage you will see that once in the page the name of the page on ezbar remains yellow, also if you click on a category you will see that it remains red once the category is chosen. The code you provided me with changes color if you move the mouse over but it does not remain the color once the page has been chosen.

    https://demo.templatemonster.com/demo/43915dothtml
    If you are actually using a templatemonster template, that is probably the reason for the failure. TM templates are not supported in the forum.

    You need to contact them to make their template respond to proper CSS.
    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.

  9. #9
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    No Dbltoe the model is ZCA Bootstrap, I put the monster template link so that you can see what I want to do, I am inspired by this model to modify the ZCA Bootstrap
    Giovanni,
    Zen Cart V2.1

  10. #10
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Quote Originally Posted by diamond1 View Post
    Hello, I am looking to put .active in red on the ezpage header bar and on the category names see photos one on a site where there is active on the categories and one without which is mine, in the login page I am successful to put the .active in yellow here is the code
    PHP Code:
    .nav-tabs .nav-link.active {
      
    color#fcf501;
      
    background-color#fff;
      
    border-color#dee2e6 #dee2e6 #fff;

    but in the column of the names of the categories I run into a wall. can you help me?

    Click image for larger version. 

Name:	Capture d’écran 2022-11-10 à 08.46.30.jpg 
Views:	90 
Size:	16.2 KB 
ID:	20145
    Click image for larger version. 

Name:	Capture d’écran 2022-11-10 à 08.46.jpg 
Views:	86 
Size:	40.8 KB 
ID:	20146
    Click image for larger version. 

Name:	Capture d’écran 2022-11-10 à 08.50.23.jpg 
Views:	75 
Size:	36.1 KB 
ID:	20147
    Perhaps you have an a:active defined in one of your css files.

    https://www.geeksforgeeks.org/differ...-active-links/

    why ZCA-bs decided to go with a separate class .activelink is beyond my understanding.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v155 Clone a Template [Support Thread]
    By lat9 in forum Addon Admin Tools
    Replies: 107
    Last Post: 11 Nov 2024, 08:28 PM
  2. v150 aBagon Template Support Thread
    By VJef in forum Addon Templates
    Replies: 54
    Last Post: 5 Sep 2020, 08:44 PM
  3. v155 ZCA Bootstrap Template 1.0 (BETA)
    By rbarbour in forum Addon Templates
    Replies: 74
    Last Post: 25 Apr 2018, 07:05 PM
  4. TB Sempre Template Support Thread
    By brandonturpin in forum Addon Templates
    Replies: 48
    Last Post: 19 Mar 2015, 06:33 PM
  5. Wallet Template - Support Thread
    By zami in forum Addon Templates
    Replies: 45
    Last Post: 25 Mar 2010, 10:15 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