Forums / Templates, Stylesheets, Page Layout / Changin page title order

Changin page title order

Locked

Views: 1,544

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
1 Mar 2007, 4:07 PM
#1
madk avatar

madk

Zen Follower

Join Date:
Jun 2006
Location:
Michigan
Posts:
162
Plugin Contributions:
0

Changin page title order

Hello,

I am currently looking to change the order of my page title.

Right now it shows up as:

PRODUCTNAME [PRODUCTID] - PRICE : SITENAME, TAGLINE

I want to resort this so that it shows up as

SITENAME, PRODUCTNAME - PRICE

I can't for the life of my find out where ZenCart pieces together META_TAG_TITLE.

1 Mar 2007, 4:24 PM
#2
madk avatar

madk

Zen Follower

Join Date:
Jun 2006
Location:
Michigan
Posts:
162
Plugin Contributions:
0

Re: Changin page title order

SOLVED. Thanks

1 Mar 2007, 4:39 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Changin page title order

What was the solution that worked for you? :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

6 May 2007, 12:59 PM
#4
mellonade avatar

mellonade

New Zenner

Join Date:
Apr 2007
Posts:
69
Plugin Contributions:
0

Re: Changin page title order

i'd like to find out as well.. can you tell us what you did? thanks :)

6 May 2007, 3:35 PM
#5
mellonade avatar

mellonade

New Zenner

Join Date:
Apr 2007
Posts:
69
Plugin Contributions:
0

Re: Changin page title order

I found it! :D

ok, so, in the includes/modules/my_template/meta_tags.php,

define('META_TAG_TITLE', arrangement_of_title_components . etc)

is the code youre looking for. there are 18 of these in the meta_tags.php file, and each one sets up the page titles based on different things, namely your chosen level of customization for the meta_tags of various products and/or categories. if you've customized the metatags for your categories, for example, then you will search for // bof: categories meta tags and find the define('META_TAG_TITLE', etcetc) and change the order of the elements to whatever you like.

for those, like me, who haven't customized their meta tags, you can scroll down to line 275 and rearrange the elements in the latter part of this code:

define('META_TAG_TITLE', str_replace('"','',$review_on . TITLE . PRIMARY_SECTION . $meta_products_name . $meta_products_price . TAGLINE));

the arrangement above lists the site title, then the category, then the product's name, then price, and lastly tagline.

24 Aug 2007, 3:50 PM
#6
mellonade avatar

mellonade

New Zenner

Join Date:
Apr 2007
Posts:
69
Plugin Contributions:
0

Re: Changin page title order

:blush: alright, I have a question about what I thought I knew the answer to: Can someone tell me which lines in modules/CUSTOM/meta_tags.php address my category page titles?

24 Aug 2007, 4:18 PM
#7
mellonade avatar

mellonade

New Zenner

Join Date:
Apr 2007
Posts:
69
Plugin Contributions:
0

Re: Changin page title order

I know its one of these four sections, I'm just not sure which!

starting at:
line 111
line 127
line 137
line 147

24 Aug 2007, 5:47 PM
#8
ebizbooster avatar

ebizbooster

New Zenner

Join Date:
Aug 2007
Posts:
2
Plugin Contributions:
0

Re: Changin page title order

I'm trying to alter the home page tags from the usual title and tag line but don't see it in any of the case statements. Any pointers?

Thanks

25 Aug 2007, 5:22 PM
#9
mellonade avatar

mellonade

New Zenner

Join Date:
Apr 2007
Posts:
69
Plugin Contributions:
0

Re: Changin page title order

mellonade:

Can someone tell me which lines in modules/CUSTOM/meta_tags.php address my category page titles?

found it: line 137

ebizbooster:

I'm trying to alter the home page tags from the usual title and tag line but don't see it in any of the case statements. Any pointers?

I'm workin on it, too, so I'll let you know when I find it

25 Aug 2007, 6:11 PM
#10
mellonade avatar

mellonade

New Zenner

Join Date:
Apr 2007
Posts:
69
Plugin Contributions:
0

Re: Changin page title order

what are you looking to do?

if you're looking to put a custom description in, check out this post, especially post #12 by clyde jones.

what i did was paste in his code IN LIEU OF the '<meta name="description"....' that was already there.