BuyItSellIt Community
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


««12

Custom Meta Tags Expand / Collapse
Author
Message
Posted 4/15/2008 5:54:55 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/16/2008 11:34:23 PM
Posts: 9, Visits: 48
I can't get this to work either

Here is what I want to do (this is on a custom store)

On the product details template ... 

1. I want the Title to be the actual product title, not the store title (whether or not it is entered on the SEO tab of the add product section).

2. Keywords and Description - default to the store settings, but use the actual product keyword and description if entered on the SEO tab of product.

Is this possible?

Thanks,

Debbie 

Decals, Stickers, and Signs

Post #8143
Posted 4/15/2008 8:02:25 PM


BISI Admin

BISI Admin

Group: Administrators
Last Login: Today @ 2:07:22 PM
Posts: 1,393, Visits: 2,990
hogwildsigns (4/15/2008)
I can't get this to work either

Here is what I want to do (this is on a custom store)

On the product details template ... 

1. I want the Title to be the actual product title, not the store title (whether or not it is entered on the SEO tab of the add product section).

2. Keywords and Description - default to the store settings, but use the actual product keyword and description if entered on the SEO tab of product.

Is this possible?

Thanks,

Debbie 

 

1. You can do two ways. The easiest ist to put in your product details template <title>$ProductTitle</title>. Or you can set it under the SEO options.

2. You can use the following code to accomplish this. This is the way it's defaulted in the pre-designed templates. This checks to see if the product-specific SEO values are entered, if not they'll default the the global SEO values.


#if($seo_keywords != "")
<meta name="keywords" content="$seo_keywords" />
#else
 <meta name="keywords" content="!$Store.MetaKeyWordsText" />
#end

#if($seo_description != "")
<meta name="description" content="$seo_description" />
#else
 <meta name="description" content="$Store.MetaDescriptionText" />
#end



---------------------
Tomas
Post #8151
Posted 4/15/2008 8:17:27 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/16/2008 11:34:23 PM
Posts: 9, Visits: 48
Thank you Tomas for the quick reply.

#1 worked perfectly as you stated. (I thought I had tried that, but must have done something wrong: w00t: ) 

#2 I will try in a bit.

Thanks again!

Decals, Stickers, and Signs

Post #8155
Posted 4/15/2008 9:38:00 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/16/2008 11:34:23 PM
Posts: 9, Visits: 48
tomas (4/15/2008)

1. You can do two ways. The easiest ist to put in your product details template <title>$ProductTitle</title>. Or you can set it under the SEO options.

2. You can use the following code to accomplish this. This is the way it's defaulted in the pre-designed templates. This checks to see if the product-specific SEO values are entered, if not they'll default the the global SEO values.


#if($seo_keywords != "")
<meta name="keywords" content="$seo_keywords" />
#else
 <meta name="keywords" content="!$Store.MetaKeyWordsText" />
#end

#if($seo_description != "")
<meta name="description" content="$seo_description" />
#else
 <meta name="description" content="$Store.MetaDescriptionText" />
#end

 

#2 works great as well.  Thank you!

I did remove the ! in this line ... <meta name="keywords" content="!$Store.MetaKeyWordsText" />  Is that okay or is it suppose to be there?


Decals, Stickers, and Signs

Post #8158
Posted 5/2/2008 10:21:01 PM


BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI Guru

Group: Forum Members
Last Login: 8/18/2008 3:31:18 PM
Posts: 184, Visits: 412
Yep, the ! needs to be removed. I just noticed that on a site I put together.

~~~~~~~~~~~~~~~~~~~~~~~~
Jennifer

Just In! Great Stock Logos from $4.99!!!

Market your business w/ custom postcards!

Hand out customized business cards to everyone you see!

Portfolio of Designs

Post #8977
« Prev Topic | Next Topic »

««12

All times are GMT -7:00, Time now is 2:37pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 11 queries. Compression Disabled.