Zen Cart Logo
Forums / General Questions / Hedear disorder

Hedear disorder

Views: 867

Results 1 to 6 of 6
15 Jun 2011, 7:39 PM
#1
lazar avatar

lazar

Zen Follower

Join Date:
Feb 2011
Location:
Between London and Cetinje
Posts:
109
Plugin Contributions:
0

Hedear disorder

Hi,
i'd like to widen my logo image but when i try ti resize it I got header elements in disorder. I've tried to define image size in header.php but got the same.

Here is how the image is defined in header.php
define('HEADER_LOGO_WIDTH', '131px');
define('HEADER_LOGO_HEIGHT', '37px');

Here is definition from my tpl_header.php:
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
<div style="float:left;width:660px;">
<div id="baskethead">

<a href="http://twitter.com/mypage" target="_blank"><img src="images/twitter.jpg" /></a>
<a href="http://www.facebook.com/mypage" target="_blank"><img src="images/facebook.jpg" /></a>

You can see here how my header looks now

This is how the header looks after the logo image has been resized

Any idea about this?

15 Jun 2011, 7:49 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Hedear disorder

<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>

<div style="float:left;width:660px;"> <div id="baskethead">Change the items in red. It works without them and putting style calls outside the stylesheet can be problematic.
15 Jun 2011, 8:14 PM
#3
lazar avatar

lazar

Zen Follower

Join Date:
Feb 2011
Location:
Between London and Cetinje
Posts:
109
Plugin Contributions:
0

Re: Hedear disorder

dbltoe:

Change the items in red. It works without them and putting style calls outside the stylesheet can be problematic.

Sorry, but I didn't understand this well.

15 Jun 2011, 8:31 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Hedear disorder

Change this> Here is definition from my tpl_header.php:

<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
<div style="float:left;width:660px;">

<div id="baskethead"> to this> Here is definition from my tpl_header.php: <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div> <div> <div id="baskethead">
15 Jun 2011, 9:07 PM
#5
lazar avatar

lazar

Zen Follower

Join Date:
Feb 2011
Location:
Between London and Cetinje
Posts:
109
Plugin Contributions:
0

Re: Hedear disorder

Thank you. It works.

15 Jun 2011, 9:10 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Hedear disorder

Glad you got it going.

You will need to make changes if you ever get an SSL Cert. The two images for twitter and facebook are called from outside the cart with http://.... That will cause the cart to fail certification during customer login or checkout.