Forums / Templates, Stylesheets, Page Layout / Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

Sticky

Started by picaflor_azul on 16 Mar 2016, 11:30 PM · Views: 363,092

Results 461 to 480 of 1,106
26 Jan 2018, 4:07 AM
#461
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

hello.. i want to add contact us to the header but i put it in places i think it should go and nothing

I used this info but using this template you will see what happened
https://www.zen-cart.com/content.php?232-how-do-i-add-additional-links-to-the-header-and-footer
i know the info maybe a little outdated but i added to three different places and still no contact us

my site is http://herasonlinemarket.com
thank you ahead of time.

My Multi_Site Zen Carts
http://herasonlinemarket.com

26 Jan 2018, 1:48 PM
#462
gunni avatar

gunni

Zen Follower

Join Date:
Aug 2010
Location:
Israel
Posts:
287
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

noppie:

hello.. i want to add contact us to the header but i put it in places i think it should go and nothing

I used this info but using this template you will see what happened
https://www.zen-cart.com/content.php?232-how-do-i-add-additional-links-to-the-header-and-footer
i know the info maybe a little outdated but i added to three different places and still no contact us

my site is http://herasonlinemarket.com
thank you ahead of time.

Do you mean the tagline like here where the telephone number appears ?

26 Jan 2018, 7:29 PM
#463
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

[QUOTE=gunni;1341267]Do you mean the tagline like here where the telephone number appears ?[/QUOT
thank you for responding..
i would like to have the contact on the other side of where it says log in .. on the pink line...
thank you

My Multi_Site Zen Carts
http://herasonlinemarket.com

26 Jan 2018, 7:45 PM
#464
gunni avatar

gunni

Zen Follower

Join Date:
Aug 2010
Location:
Israel
Posts:
287
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

left side should be done in stylesheet.css #tagline {text-align:left}
If you want the tagline to be at the same line of the search line, you should do it in the php file.

26 Jan 2018, 8:50 PM
#465
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

gunni:

left side should be done in stylesheet.css #tagline {text-align:left}
If you want the tagline to be at the same line of the search line, you should do it in the php file.

yes I know that.. I have been using zen cart for years.. but took a long break.. and i just got to learn the different parts of the header file in the commons folder..
i think this is the way it goes..

there are three navmain
the first one is for moblie phones
the second is for tablets and
the third part is for web ... correct?

My Multi_Site Zen Carts
http://herasonlinemarket.com

26 Jan 2018, 9:56 PM
#466
gunni avatar

gunni

Zen Follower

Join Date:
Aug 2010
Location:
Israel
Posts:
287
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

If you mean for the css files so here it is:
responsive.css // is loaded on every page except the popup_image and popup_image_additional pages and
contain site-wide selectors that control the responsive HTML elements.
responsive_default.css // is loaded on by default where a mobile or tablet UA is NOT detected.
responsive_mobile.css // is loaded on mobile devices where a mobile UA is detected, it replaces the 'responsive_default.css' file.
responsive_tablet.css // is loaded on tablet devices where a tablet UA is detected, it replaces the 'responsive_default.css' file.

26 Jan 2018, 10:24 PM
#467
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

no ,,, i understand css files.. I already changed them.. I made the pink line on my header pink from dark grey... and smaller.. and I made the box title smaller also and purple.

i just want to ADD contact us in my header on the pink line...
i am in the tpl_header.php under the commons file.. the answer is there somewhere I am taking it apart using the blue fish editor program..

My Multi_Site Zen Carts
http://herasonlinemarket.com

27 Jan 2018, 4:05 AM
#468
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

noppie:

no ,,, i understand css files.. I already changed them.. I made the pink line on my header pink from dark grey... and smaller.. and I made the box title smaller also and purple.

i just want to ADD contact us in my header on the pink line...
i am in the tpl_header.php under the commons file.. the answer is there somewhere I am taking it apart using the blue fish editor program..

Line 128 - 133 in includes/templates/YOUR_RESPONSIVE_TEMPLATE/common/tpl_header.php:

<?php  } else { ?>
<div id="navMain">
  <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<?php if ($_SESSION['customer_id']) { ?>

add this line:
<li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>"><?php echo BOX_INFORMATION_CONTACT; ?></a></li>

like this:

<?php  } else { ?>
<div id="navMain">
  <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>"><?php echo BOX_INFORMATION_CONTACT; ?></a></li>
<?php if ($_SESSION['customer_id']) { ?>

The contact us link will now show on desktop. It should already be in the 'responsive' mobile and tablet menu through /templates/tpl_modules_mobile_menu.php loading through the "menu" i class="fafa...

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

27 Jan 2018, 4:13 AM
#469
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

thank you so much.. I figured it out on my own but thank you so much.. if someone else needs it is here now. and I have a hard time explaining things. thank you again.

My Multi_Site Zen Carts
http://herasonlinemarket.com

29 Jan 2018, 1:02 PM
#470
amart79196 avatar

amart79196

New Zenner

Join Date:
Jul 2010
Posts:
72
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

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.

29 Jan 2018, 1:28 PM
#471
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,129
Plugin Contributions:
56

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

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.

29 Jan 2018, 11:23 PM
#472
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

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.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

30 Jan 2018, 3:30 AM
#473
amart79196 avatar

amart79196

New Zenner

Join Date:
Jul 2010
Posts:
72
Plugin Contributions:
0

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?

30 Jan 2018, 4:52 AM
#474
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

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.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

30 Jan 2018, 5:13 AM
#475
amart79196 avatar

amart79196

New Zenner

Join Date:
Jul 2010
Posts:
72
Plugin Contributions:
0

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.

30 Jan 2018, 5:32 AM
#476
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

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.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

30 Jan 2018, 6:05 PM
#477
slater555 avatar

slater555

Zen Follower

Join Date:
Jan 2011
Posts:
367
Plugin Contributions:
0

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

30 Jan 2018, 10:57 PM
#478
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

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?

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

7 Feb 2018, 10:22 AM
#479
mani avatar

mani

New Zenner

Join Date:
Aug 2008
Location:
Abbottabad, Pakistan
Posts:
62
Plugin Contributions:
0

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

7 Feb 2018, 10:41 AM
#480
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

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;}

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian