X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Removing "Page Name" from Static Pages (https://forum.x-cart.com/showthread.php?t=41125)

Meredith Martin Davis 07-15-2008 08:46 AM

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!!

balinor 07-15-2008 10:11 AM

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.

Meredith Martin Davis 07-15-2008 05:30 PM

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... :D

Thanks again.

balinor 07-16-2008 04:36 AM

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

Meredith Martin Davis 07-16-2008 07:33 AM

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.

balinor 07-16-2008 08:02 AM

Re: Removing "Page Name" from Static Pages
 
Ah, you must have a custom template then.

boomobile 12-31-2008 09:48 AM

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.


All times are GMT -8. The time now is 03:34 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.