Sure. This is the URL to the fix:
https://github.com/lat9/ZCA-Bootstra...4bd86ef847364a
Line 31 to 47 in includes/templates/bootstrap/templates/tpl_index_categories.php
Sure. This is the URL to the fix:
https://github.com/lat9/ZCA-Bootstra...4bd86ef847364a
Line 31 to 47 in includes/templates/bootstrap/templates/tpl_index_categories.php
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
but in the column of the names of the categories I run into a wall. can you help me?PHP Code:.nav-tabs .nav-link.active {
color: #fcf501;
background-color: #fff;
border-color: #dee2e6 #dee2e6 #fff;
}
![]()
Giovanni,
Zen Cart V2.1
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 addUnfortunately, the !important is needed to fully override the stylesheet_colors.cssCode:.activeLink { background-color: #ffffff !important; color: #fcf501 !important; border-color: #dee2e6 #dee2e6 #fff !important; }
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.
Hello dbltoe, thank you for answering me so quickly, your modificationdoes not work,PHP Code:.activeLink {
background-color: #ffffff !important;
color: #fcf501 !important;
border-color: #dee2e6 #dee2e6 #fff !important;
}
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
Site specific should look something likeI do find that this is working in 3.3 but the border is not working in 3.4. See testDOTislam786booksDOTcomCode:<?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>
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.
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
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.
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.
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.
Looks like an override of
includes/languages/english/lang.order_status.php
will be needed for PHP 8.1
[13-Nov-2022 13:56:15 America/New_York] PHP Fatal error: Uncaught Error: Undefined constant "TEXT_LOOKUP_INSTRUCTIONS" in /homepages/19/client/htdocs/estore/includes/templates/bootstrap/templates/tpl_order_status_default.php:177
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.