Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
Quote:
Originally Posted by
dbltoe
I guess we do need to compliment you on what I used to call "Coming up with four decimals on a slide rule".
First time I've EVER seen an image that's
Code:
<img src="includes/templates/responsive_classic/images/logo.gif" alt="" width="300" height="167.24738675958" />
No alt is not good. (that's a freebie)
CSS should be done in a stylesheet. You have 18 HTML errors in the define_main_page for CSS inclusion. (nudder freebie)
Image dimensions cannot have a decimal place.
Maybe your browser versions do not play well with others.
THIS WAS FOR THE SITE IN YOUR PROFILE SINCE YOU GAVE NO URL LOOKING AT NEW NOW
Logo was not the problem. Its the wide banner above it.
Logo was set at 300 and height was set to ''. Decimals are not my problem.
Alt tags are seo fodder and will disappear eventually. If you are thinking its a type of meta tag, you're wrong.
Define main page editor responsible for any perceived errors.
Problem is in chrome and firefox. havent tried edge.
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
You need to get out of the spans and in-line styles. They just get things all munged up in responsive. You're telling the system to make this image 2888 wide and it is by Jimminy gonna do it.
Get the width and height out of the in-line and add
Code:
div#bannerOne {width: 100%;}
to the end of your stylesheet.css. You will need to adjust the margin-top in the same listing to something like 35px and it may need to go in the responsive_default.css in order to not mess with the desktop version.
You can decide what to do with the padding on line 43 of the stylesheet.css.
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
If I wanted to make it work just for me, I would not have posted it here.
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
I just checked with the out of the box banners and they have the same issue, wide banner not visible.
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
Quote:
Originally Posted by
dbltoe
No alt is not good. (that's a freebie)
I fixed the no alt for the logo. It now says dbltoe from zen-cart.com is the best.:laugh: lakecountyprocessservers.com
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
A question!
I installed 1.5.7 on my test site and works fine.
Now I want to modify tpl_main_page.php to block some columns.
In layout settings I have ACTIVATE Responsive Template set to 1.
When I upload tpl_main_page.php from responsive classic template to my own template in my test site the storefront no longer shows up and in my log is the following fatal error..
Code:
[01-Aug-2020 10:29:23 Europe/Zurich] Request URI: /CatalogTest/index.php?main_page=index, IP address: 87.245.97.248
--> PHP Fatal error: Uncaught Error: Call to a member function isMobile() on null in /home/httpd/vhosts/simmar.ch/CatalogTest.simmar.ch/CatalogTest/includes/templates/OWNTEMPLATE/common/tpl_main_page.php:97
Stack trace:
#0 /home/httpd/vhosts/simmar.ch/CatalogTest.simmar.ch/CatalogTest/index.php(94): require()
#1 {main}
thrown in /home/httpd/vhosts/simmar.ch/CatalogTest.simmar.ch/CatalogTest/includes/templates/OWNTEMPLATE/common/tpl_main_page.php on line 97.
When I upload tpl_main_page.php from template default template to my own template in my test site everything works OK.
My question is - I assume I should be using the responsive_classic version and not the template default one or?
Appreciate any advice/help.
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
Quote:
Originally Posted by
marton_1
A question!
I installed 1.5.7 on my test site and works fine.
Now I want to modify tpl_main_page.php to block some columns.
In layout settings I have ACTIVATE Responsive Template set to 1.
When I upload tpl_main_page.php from responsive classic template to my own template in my test site the storefront no longer shows up and in my log is the following fatal error..
Code:
[01-Aug-2020 10:29:23 Europe/Zurich] Request URI: /CatalogTest/index.php?main_page=index, IP address: 87.245.97.248
--> PHP Fatal error: Uncaught Error: Call to a member function isMobile() on null in /home/httpd/vhosts/simmar.ch/CatalogTest.simmar.ch/CatalogTest/includes/templates/OWNTEMPLATE/common/tpl_main_page.php:97
Stack trace:
#0 /home/httpd/vhosts/simmar.ch/CatalogTest.simmar.ch/CatalogTest/index.php(94): require()
#1 {main}
thrown in /home/httpd/vhosts/simmar.ch/CatalogTest.simmar.ch/CatalogTest/includes/templates/OWNTEMPLATE/common/tpl_main_page.php on line 97.
When I upload tpl_main_page.php from template default template to my own template in my test site everything works OK.
My question is - I assume I should be using the responsive_classic version and not the template default one or?
Appreciate any advice/help.
Some additions
The only addon so far is the German language pack.
The \includes\templates\responsive_classic\common/html_header is dated 26June20 (that is the file that defines that variable and makes it available for use.)
Installation is vanilla except for modified language files.
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
Quote:
A question!
I installed 1.5.7 on my test site and works fine.
Now I want to modify tpl_main_page.php to block some columns.
What do you mean by columns? Are you talking about the sideboxes are entire columns on either side? All of that can be done without editing a file.
Quote:
In layout settings I have ACTIVATE Responsive Template set to 1.
If you are talking about the Layout Settings under the Configuration menu, there is no such setting for this template.
Quote:
When I upload tpl_main_page.php from responsive classic template to my own template in my test site the storefront no longer shows up and in my log is the following fatal error..
It could simply be that your OWNTEMPLATE is not responsive. Templates are often not interchangeable.
It seems you are trying to modify a template that is not responsive_classic BUT,
Quote:
The \includes\templates\responsive_classic\common/html_header is dated 26June20 (that is the file that defines that variable and makes it available for use.)
you list responsive_classic.
We ask for answers to the posting tips for a reason. In this case, a link to your site would really be helpful.
https://docs.zen-cart.com/user/templ...right_columns/
https://docs.zen-cart.com/user/sideboxes/sidebox_list/
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
Quote:
Originally Posted by
dbltoe
What do you mean by columns? Are you talking about the sideboxes are entire columns on either side? All of that can be done without editing a file.If you are talking about the Layout Settings under the Configuration menu, there is no such setting for this template.It could simply be that your OWNTEMPLATE is not responsive. Templates are often not interchangeable.
It seems you are trying to modify a template that is not responsive_classic BUT, you list responsive_classic.
We ask for answers to the posting tips for a reason. In this case, a link to your site would really be helpful.
https://docs.zen-cart.com/user/templ...right_columns/
https://docs.zen-cart.com/user/sideboxes/sidebox_list/
Thanks for your quick reply.
I managed to fix the problem, I had forgotten to copy the responsive_classic jscript folder into my new template :(
A couple of questions
You posted "If you are talking about the Layout Settings under the Configuration menu, there is no such setting for this template."
But I do, see picture below - is this a problem for me that I have this setting?
Then you posted "Are you talking about the sideboxes are entire columns on either side? All of that can be done without editing a file"
You sent me a link https://docs.zen-cart.com/user/templ...right_columns/ entitled "Left and Right Columns - turning them off" which tells me to edit tpl_main_page.php to turn off columns which is exactly what I was planning to do.