Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
Quote:
Originally Posted by
amart79196
I do not by any means mean to change topics on a thread, but it is responsive classic related. Please move it if necessary.
When I did the upgrade to my cart from 1.5.5e to f, the way in which my logo displayed went from what it is supposed to be to displaying very small.
This is what I did:
I went into the file located a "/includes/templates/responsive_classic/common/tpl_header.php ". I removed from line 167 “, HEADER_LOGO_WIDTH, HEADER_LOGO_HEIGHT”. This allowed the logo to actually display correctly (the correct size) again.
My main question:
Is this actually the most correct way to address the logo size or is this basically incorrect and there is a more correct way to do this?
Many thanks in advance for your time and answer.
It's for exactly these kinds of upgrade-issues that Clone a Template was created. I'd suggest downloading that plugin to make a clone of the responsive_classic template that you can customize for your site's use.
That way, when the next Zen-Cart version is released, an upgrade won't overwrite any changes (like above) that you've made.
BTW, rather than removing those definitions from the header-image's display, you can make a template-specific copy of /includes/languages/english/header.php (copying to /includes/languages/english/YOUR_TEMPLATE/header.php) and then edit those two constants to reflect the size of your header-image.
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
Yep, those two items were added to 155f to fix a long-time problem with the logo not properly responding to the size set forth in the header.
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
Would it then be safe to say that if I was to put back what I took out of the file in "tpl_header.php" and make an adjustment instead to the "header.php" file, would that be a "more correct" way of resizing the logo size?
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
Any time you can avoid munging core files and simply change a setting in a file, that's the better way to go.
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
I hate to sound stupid, but, what file would you be considering a core file? Sorry, a bit new here.
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
Technically not core in this case but, core is generally considered any file that is not able to be easily overridden by the override system. For instance, the tpl_header.php file that you changed is an override of the Template Default version. In order to override the responsive_classic version, you would need to clone responsive_classic to something like MY_TEMPLATE. Then, when an upgrade is done, you don't lose any changes you made to the files as you have them in your personalized override template.
lat9 has an excellent chart that shows where you can use overrides to protect changes from overwrite on upgrade. Any time you can avoid changing a file by changing a setting, it's a good thing. Take a look at the chart and see if it makes a little more sense.
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
Hope i'm not off subject but with my 1.5.5 I have an issue. when I click on a category from the category list I get a 404 page even though the category is populated with products
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
You need to answer the posting tips and we can be of more help but, 404 generally means something is missing. Any debug files in your /logs directory?
1 Attachment(s)
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
I want to change the background ..see attached
Attachment 17683
When I make changes to stylesheet_colors.css file, changes dont reflect in the website. Where I am doing it wrong?
Usman
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
Quote:
Originally Posted by
mani
I want to change the background ..see attached
Attachment 17683
When I make changes to stylesheet_colors.css file, changes dont reflect in the website. Where I am doing it wrong?
Usman
You could add this to your .css:
#mainWrapper {background-image: url(../images/YOUR_IMAGE.jpg); background-repeat: no-repeat; background-size: cover; background-position: center;}