Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How do I remove Company Name & Phone number from head?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 08-03-2009, 04:08 PM
 
trixiesirisheyes trixiesirisheyes is offline
 

Member
  
Join Date: Jul 2009
Posts: 11
 

Default Re: How do I remove Company Name & Phone number from head?

Quote:
Originally Posted by cflsystems
Original 4.2.1 code. Do not copy/paste as yours could be different depending on version and mods. I don't see company name in the original code, unless you are talking abou the company logo

Code:
{* $Id: head.tpl,v 1.12 2008/11/21 07:49:55 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} <div class="line1"> {* REMOVE COMPANY LOGO <div class="logo"><a href="{$catalogs.customer}/home.php"><img src="{$ImagesDir}/xlogo.gif" alt="" /></a></div> REMOVE COMPANY LOGO *} {if $speed_bar} <div class="tabs"> <ul> {foreach from=$speed_bar item=sb} <li><a href="{$sb.link|amp}">{$sb.title}</a></li> {/foreach} </ul> </div> {/if} {* REMOVE COMPANY PHONE NUMBERS <div class="phones"> {if $config.Company.company_phone} <span>{$lng.lbl_phone_1_title}: {$config.Company.company_phone}</span> {/if} {if $config.Company.company_phone_2} <span>{$lng.lbl_phone_2_title}: {$config.Company.company_phone_2}</span> {/if} </div> REMOVE COMPANY PHONE NUMBERS *} </div> <div class="line2"> {if $main ne "fast_lane_checkout"}

Broken all to heck. I think that's because your code looks like this:

Code:
{* REMOVE COMPANY LOGO <div class="logo"><a href="{$catalogs.customer}/home.php"><img src="{$ImagesDir}/xlogo.gif" alt="" /></a></div> REMOVE COMPANY LOGO *}

and before I put in the comments, my code looked like this:

Code:
<div class="logo"> <div class="logo1"> <a onclick="$('#hr_menu').hide();" href="{$catalogs.customer}/home.php"><img src="{$ImagesDir}/custom/company_logo.gif" alt="" /></a> </div>

You'll note the JavaScript "Onclick" in my code.

Here's the website, so you can see what's wrong:
teambreaksbarriers.com
__________________
XCart 4.2/XCart Affiliate
Reply With Quote
  #12  
Old 08-03-2009, 05:26 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: How do I remove Company Name & Phone number from head?

The code I posted is from the out-of-the-box xcart with lucid skin, yours is different. But the logic is the same - you have to find the code you want to comment out in head.tpl
If you want to comment out the log comment out the div with class="logo1" and not the div with class="logo" per your example above. Right now looking at your site is a mess because you closed the header div before line2 and line3 which also belong to the header and that's why there are at the bottom of your site. It's all CSS code that you have to follow properly
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #13  
Old 08-03-2009, 06:11 PM
 
trixiesirisheyes trixiesirisheyes is offline
 

Member
  
Join Date: Jul 2009
Posts: 11
 

Default Re: How do I remove Company Name & Phone number from head?

Oh, I'm used to following CSS code properly, but PHP, JavaScript, and Smarty tags are being interjected and the divs are not commented as to what they belong to, so I'm left counting divs. The documentation talks about having a solid knowledge of HTML (check), CSS (mostly check), and Smarty Tags (not so much). Nothing about PHP and JavaScript.

I'm still futzing with this. One thing I've learned about CSS in the last 6 years is you want to be careful about how many position: absolute rules you put on the page (straight from the posts of the experts on CSS-Discuss). Things can break very quickly. And they are.

I'm trying to move the header down, the tabs (absolute position) over the top of the header, the search box (absolute position) up to the upper left, and get the nav bar back where it should be, as soon as I can figure out what it's called in the template and CSS. I can't get those to move. I also can't get the left sidebar boxes out of the middle of the page. Arggg. I've made slight progress today.

The template editing screen *kind* of feels like I'm editing templates on my iPhone - the area is so small.

This is one of X-Cart's generic templates. I'm trying to customize it, which is supposed to be easy according to the website, but not so much. Same thing I encountered with Zen Cart. Supposed to be a piece of cake, but more like a nightmare. This is slightly better than Zen Cart.

I just got my book on Smarty tags from UPS. We'll see how much that helps.



Thank you for your help - I really appreciate it!
__________________
XCart 4.2/XCart Affiliate
Reply With Quote
  #14  
Old 08-03-2009, 06:30 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: How do I remove Company Name & Phone number from head?

You will be better off using an FTP client with integrated editor to edit files. Xcart admin edit is not the way to do it
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #15  
Old 08-03-2009, 07:13 PM
 
trixiesirisheyes trixiesirisheyes is offline
 

Member
  
Join Date: Jul 2009
Posts: 11
 

Default Re: How do I remove Company Name & Phone number from head?

Yeah, I'm mostly using DW CS3. I make a copy of the page and put it in my BAK folder on my local server. I do most of my coding by hand anyway. Too bad I don't have my MAMP server going yet - this would be so much faster...my cable internet gets a little sluggish.

But nearly 5000 lines of CSS code? Goodness! and I thought *I* had really long style sheets! LOL.

I forgot I had a function in my Web Developer Toolbar in FF that lets me see the CSS style information, so I just roll over the area and it gives me the parent container(s) and all child rules so I can figure out what something is called in order to change it. This is the main reason I use FF, and I use the Web Developer toolbar nearly every day. I printed out the page and made notes all over it as to what made up each element. This will save me a bunch of time tomorrow.

The two boxes I thought were supposed to be on the left were actually supposed to be on the bottom. I'm going to try to move those tomorrow. I don't like them where they are.

This week I have to learn Smarty Tags, Fireworks, X-Cart, and iDevAffiliate. This weekend - Apache, MySQL, and PHP - at least enough to get around MAMP. Hard to wear my right-brain creative hat when I'm doing all this left-brain thinking. Did I mention I have to design another site this week too?
__________________
XCart 4.2/XCart Affiliate
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:54 PM.

   

 
X-Cart forums © 2001-2020