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

Removing "Page Name" from Static Pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-15-2008, 08:46 AM
 
Meredith Martin Davis Meredith Martin Davis is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 70
 

Default Removing "Page Name" from Static Pages

Hello,
I've looked everywhere in the forums but can't find an answer -

We'd like to create category pages (and also a few Static Pages) that DON'T display the name of the Category. We'd like to use a graphic instead.

What code can I edit out so that the info entered into the Category field doesn't display on the main category page, but does still display on the home page under the side categories listing? (Sorry, don't know the exact name for the side navigation on the home page).

For example, say we have a category of "Beans". I'd like Beans still to be a link on the home page, but when you actually click on the "Beans" link, you are taken to the Beans page, without the word "Beans". Seems like there must be some label you can delete to get rid of that?

Thank you!!
__________________
4.1.8
Reply With Quote
  #2  
Old 07-15-2008, 10:11 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Removing "Page Name" from Static Pages

It is in dialog.tpl - but that is a global template so if you remove it, it removes it from the whole site. You'd need to use {if} statements to tell it which categories and pages it should display on.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-15-2008, 05:30 PM
 
Meredith Martin Davis Meredith Martin Davis is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 70
 

Default Re: Removing "Page Name" from Static Pages

Thanks, balinor.

Do you mind telling me exactly which code I should remove? I'm not much of a coder, so it's usually a trial and error method with me, which can be dangerous...

Thanks again.
__________________
4.1.8
Reply With Quote
  #4  
Old 07-16-2008, 04:36 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Removing "Page Name" from Static Pages

Hey Meredith, it is this part of dialog.tpl:

<tr>
<td class="DialogTitle">{$title}</td>
</tr>

If you want to hide it for some pages/categories, etc, you could use {if} statements similar to this:

{if $cat ne "4" and $cat ne "5"}
<tr>
<td class="DialogTitle">{$title}</td>
</tr>{/if}

That would hide the title for category 4 and 5
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 07-16-2008, 07:33 AM
 
Meredith Martin Davis Meredith Martin Davis is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 70
 

Default Re: Removing "Page Name" from Static Pages

hi balinor,
Tried what you suggested and that didn't work, so I dug around some more and came up with removing this code:

<div id="cat_head"><h1>{$title}</h1>

from cat_dialog.tpl, which took away the category titles, but left the product name titles when you click on each product for the product details.

Now I'm off to find a way to remove the Page Name from the static pages...

Thanks for your tips.
__________________
4.1.8
Reply With Quote
  #6  
Old 07-16-2008, 08:02 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Removing "Page Name" from Static Pages

Ah, you must have a custom template then.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 12-31-2008, 09:48 AM
  boomobile's Avatar 
boomobile boomobile is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 306
 

Default Re: Removing "Page Name" from Static Pages

Quote:
Originally Posted by Meredith Martin Davis
hi balinor,
Tried what you suggested and that didn't work, so I dug around some more and came up with removing this code:

<div id="cat_head"><h1>{$title}</h1>

from cat_dialog.tpl, which took away the category titles, but left the product name titles when you click on each product for the product details.

Now I'm off to find a way to remove the Page Name from the static pages...

Thanks for your tips.

Just a FYI:
when you remove a H1 tag, you are removing a SEO searchable word... you may want to replace this somewhere else on the page.
__________________
X Cart Ver: 4.0.14
MySQL4 4.1.22
phpMyAdmin 2.6.0
Pearl 5.6.0
PHP 5.2.1
Python 2.2.2
Server: Apache/2.0.52 (Red Hat)
OS: Linux
www.cleanlinesurf.com
1. Customer Rewards Points
2. One Page Checkout (altercart)
3. Free shipping orders over $50 as Real Time Shipping
4. Gift Certificates
-----------------------------------------------
Graphic Design | Boomobile Design, LLC
www.boomobile.com
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 03:52 PM.

   

 
X-Cart forums © 2001-2020