Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
ianhg
Thank you for this I realised that I had missed adding the header_php_specials_zca_bootstrap.php to Pages/specials.. feel a bit stupid now.. many thanks
Appreciate the update; it's always the little bits that bite you in the ar*e.
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
swguy
Small bug in version 3.4.0 of the bootstrap template:
includes/modules/sideboxes/bootstrap/information.php
references FILENAME_ABOUT_US and FILENAME_BRANDS for checks as to whether to add these links to the sidebox; should follow the 1.5.8 release standard of checking the flags $flag_show_about_us_sidebox_link and $flag_show_brand_sidebox_link instead.
That's something to be done when the template no longer supports zc157!
Re: ZCA Bootstrap 4 Template [Support Thread]
Or you could base the check on zen_get_zcversion().
if (function_exists('zen_get_zcversion') && zen_get_zcversion() >= '1.5.8') {
check flags
} else {
check defines
}
Re: ZCA Bootstrap 4 Template [Support Thread]
I'll most likely simply repeat the code present in the zc158 /includes/init_includes/init_common_elements.php, with a note that the processing can be removed once support for zc157 is dropped.
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
swguy
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?
Re: ZCA Bootstrap 4 Template [Support Thread]
A non product page like contact_us.
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
swguy
A non product page like contact_us.
Tried the login page, which disables the left/right sideboxes. I'll note that there's an image in the footer banner, as well as the site's header image, but I'm not seeing any console logs.
Re: ZCA Bootstrap 4 Template [Support Thread]
This might have been some oddball page where they turned off header/footer/sideboxes so it could easily be printed - I can't remember. No worries if it's hard to repro; could be just an edge case that only applies to a few sites.
Re: ZCA Bootstrap 4 Template [Support Thread]
Hello, I can't turn off the search box on the sideboxes when the Box: search_header.php is active. Indeed I have two search boxes, one on the header and one on the right/left box. And if I disable Box: search_header.php and I use Box: search.php I have no search box when I am in tablet mode.
Do you have an idea of how to disable the search box on the sideboxes while keeping the header on, or where to use the search.php box and have a search box on the tablet?
Thanks in advance
Re: ZCA Bootstrap 4 Template [Support Thread]
@diamond1,
What I do is to turn off both the sideboxes/YOUR_TEMPLATE search_header.php and the sideboxes/search.php in the Layout Boxes Controller. NOTE: the YOUR_TEMPLATE will be bootstrap unless you have done as I did and cloned the bootstrap template.
After turning those two off, I go to Admin >> Bootstrap Template Settings and set Enable AJAX Search? to True.