Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 12th, 2013, 02:26 PM
dpaulsen dpaulsen is offline
 
Join Date: Jun 2012
Posts: 18
Default Title tags for store category pages

Store ID: 40725
Website URL: papayababy.com
URL to page in question: http://papayababy.com/store/category/baby-girl-clothes/

Hi there,

Is there a way to write custom title tags for each of my category pages? I am currently using the header to get some customization, but ideally I would be able to customize even more based on the category (adding SEO value)? Or maybe override the formula for just a few key pages?
<title>[category.name], Thoughtful and Fun Baby Gifts | Papaya Baby </title>

Thanks in advance,
Dave
  #2  
Old April 12th, 2013, 02:50 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi Dave,

There are a couple ways to do this without creating too much work for yourself. However, one question first: are you using the Category Keywords field? I know Google ignores this field as do other search engines. If you're not using that, that's the easiest way to get around this issue.

Just add your custom title tags to the Category Keyword field and then reference the keyword field in your <title> tags like this:

<title>[category.name], [category.keywords] | Papaya Baby </title>

Eric
  #3  
Old April 12th, 2013, 02:53 PM
dpaulsen dpaulsen is offline
 
Join Date: Jun 2012
Posts: 18
Default

I was actually going to use the category keywords field and repurpose that for the meta description, since I am using the [category.description] field for the live text description that displays to site visitors. If only there was one more field!
  #4  
Old April 12th, 2013, 02:58 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

The other (less pretty) option is to add a conditional statement to your <head> area. You just need the category IDs.

First you would start with something like this:

PHP Code:
<?php 
if ($category->id == 123) {
    
$title 'my unique title for category id 123';
} elseif (
$category->id == 456) {
    
$title 'my unique title for category id 456';
} elseif (
$category->id == 789) {
    
$title 'my unique title for category id 789';
}
?>
Then you would do something like this:

<title>[category.name], <?php echo $title; ?> | Papaya Baby </title>

Eric
  #5  
Old April 12th, 2013, 03:06 PM
dpaulsen dpaulsen is offline
 
Join Date: Jun 2012
Posts: 18
Default

Thanks Eric, I will try this.

To be clear, the php code you describe will go in the "HTML for the <head> element" section just above the <title>declaration?

Could I request a future DF enhancement to include a 3rd field for category content?
  #6  
Old April 12th, 2013, 03:08 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

Yes, above. For example, if you were using the default <head> content, it would look like this:

PHP Code:
<?php 
if ($category->id == 123) {
    
$title 'my unique title for category id 123';
} elseif (
$category->id == 456) {
    
$title 'my unique title for category id 456';
} elseif (
$category->id == 789) {
    
$title 'my unique title for category id 789';
}
?>

<title>[category.name] | <?php echo $title?></title>
<meta name="description" content="[category.description]" />
<meta name="keywords" content="[category.keywords]" />
I think this has already been suggested in the Feature Request forum.

Eric
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
where can I change title tags for each category? dk3 Questions 21 March 27th, 2012 09:03 AM
Removing Store Title from top of category & product pages jackrock Questions 2 November 10th, 2011 07:10 PM
How do I make unique title tags for merchant filter widget pages? cashnow Questions 3 January 29th, 2011 06:29 PM
How do I make unique title tags for price filter widget pages? cashnow Questions 15 January 28th, 2011 06:11 PM


All times are GMT -5. The time now is 03:05 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.