I too am not that familiar with Bootstrap but I think you could shift the attributes to the left and remove their list style for small screens, like this
That almost does it for resolutions down to 360px width, to remove scrolling completely at that width play about with the padding of .productsCellCode:@media (max-width:???px) { .productsCell-attributes ul { padding-left: 0px; list-style: none; } }
(I'm assuming that the productsCell class isn't used elsewhere - worth checking)
Last edited by simon1066; 11 Oct 2022 at 07:33 AM.
Simon
Thanx to ASAlishaa for adding the bootstrap cheatsheet to the bootstrap reamde.md I think I may have found where the problem is coming from.
The particular table is given the class table-responsive and table responsive is actually in the CSS.
However the bootstrap cheatsheet suggests that the class should be table-*-responsive with the * being sm, md, lg, or xl. It's possible that the missing clarifier is not letting CSS do its thing.
I will have to test when back at the computer later today.
Are You Vulnerable for an Accessibility Lawsuit?
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've just submitted v3.4.0 of the Bootstrap-4 template; it's now available for download (https://www.zen-cart.com/downloads.php?do=file&id=2191) and supports the Zen Cart 1.5.7 series as well as 1.5.8!
This release contains changes associated with the following GitHub issues and has been validated with Zen Cart v1.5.8:
#151: Update zen_cfg_read_only, using zc158 version for zc157 change
#150: Remove redundant button definitions
#147: ZcaBootstrapObserver::setVariables incompatible with PHP 8.2's dynamic properties' restriction
#142: Enable additional content to be displayed on the shopping_cart page
#141: Use 'standard' Zen Cart HTML 'id' for cart quantity/button display and centerboxes
#140: Don't include conditions if shipping and/or billing isn't available
#139: Preload (rather than prefetch) the CDN-based css/js files
#138: Consolidate One-Page Checkout/Bootstrap template integration
#137: 'common_address_formatting', set as primary checkbox should appear only for address_book_process
#136: Move 'country' selection above 'state' in common-address formatting
#135: Remove unused template files for all/featured/new products' listings
#135 opened on Jul 18 by lat9
#134: zc158 Compatibility, overall changes required.
#133: Exporting ZCA Bootstrap Colors
#132: orphan statement in tpl_modules_manufacturer_info
#131: modules\bootstrap\category_row.php compare to core ZC158 query
#130: centerboxes\new_products.php comparison to core query
#125: contact_us "Send Email To:" Selection Is Not Really Required
#124: Raw HTML displayed for when customer views an order's history
#122: Restore 'base' Zen Cart attributes HTML class and id attributes.
Good evening, I downloaded the template, and in the html header file, I saw these lines: I assume we are going to preload the css and jscript files right? I wanted to know if they can be applied to other templates or does it only work on this one? Thank you
if (! empty ($ bs4_no_preloading)) {
?>
<link rel = "preload" href = "<? php echo $ preloads ['bscss'] ['link'];?>" integrity = "<? php echo $ preloads ['bscss'] ['integrity']; ?> "crossorigin =" anonymous "as =" style "/>
<link rel = "preload" href = "<? php echo $ preloads ['fa'] ['link'];?>" integrity = "<? php echo $ preloads ['fa'] ['integrity']; ?> "crossorigin =" anonymous "as =" style "/>
<link rel = "preload" href = "<? php echo $ preloads ['jquery'] ['link'];?>" integrity = "<? php echo $ preloads ['jquery'] ['integrity']; ?> "crossorigin =" anonymous "as =" script "/>
<link rel = "preload" href = "<? php echo $ preloads ['bsjs'] ['link'];?>" integrity = "<? php echo $ preloads ['bsjs'] ['integrity']; ?> "crossorigin =" anonymous "as =" script "/>
<? php
<link rel = "stylesheet" href = "<? php echo $ preloads ['bscss'] ['link'];?>" integrity = "<? php echo $ preloads ['bscss'] ['integrity']; ?> "crossorigin =" anonymous ">
<link rel = "stylesheet" href = "<? php echo $ preloads ['fa'] ['link'];?>" integrity = "<? php echo $ preloads ['fa'] ['integrity']; ?> "crossorigin =" anonymous "/>
<script src = "<? php echo $ preloads ['jquery'] ['link'];?>" integrity = "<? php echo $ preloads ['jquery'] ['integrity'];?>" crossorigin = "anonymous"> </script>
<? php
/ *
<script> window.jQuery || document.write (unescape ('% 3Cscript src = "<? php echo $ template-> get_template_dir ('. js', DIR_WS_TEMPLATE, $ current_page_base, 'jscript');?> / jquery.min.js"% 3E% 3C / script% 3E ')); </script>
* /
?>
<script src = "<? php echo $ preloads ['bsjs'] ['link'];?>" integrity = "<? php echo $ preloads ['bsjs'] ['integrity'];?>" crossorigin = "anonymous"> </script>
Erboristeria La Spiga e Il Girasole Herbal Shop - https://www.erboristeriabio.com
Golden Eagle Herbal - https://www.erboristeriabio.it
Giraspiga - https://www.giraspiga.com
Thanks for the quick reply,
how to apply them to other templates? Does the template in question have any particular function? because in the template files, I have not found any function related to preloads, what I did not understand is what the words "bscss" "fa" "bsjs" mean Thanks
Erboristeria La Spiga e Il Girasole Herbal Shop - https://www.erboristeriabio.com
Golden Eagle Herbal - https://www.erboristeriabio.it
Giraspiga - https://www.giraspiga.com
Good morning, ok thanks I'll do some tests,
Erboristeria La Spiga e Il Girasole Herbal Shop - https://www.erboristeriabio.com
Golden Eagle Herbal - https://www.erboristeriabio.it
Giraspiga - https://www.giraspiga.com
Bookmarks