View Single Post
  #4  
Old August 28th, 2014, 02:14 PM
stefan stefan is offline
 
Join Date: Feb 2008
Posts: 5,901
Default

As an alternative: if you want to create specific meta tag descriptions per category you can do something like this...

1. Go to The Factory > Your Store > VIEWS > CATEGORY PAGE > Default > View menu > View <head> Elements

2. Replace <meta name="description" content="[category.description]" /> with an if else clause:

PHP Code:
<?php if ($category->id==123){ ?>
          <meta name="description" content="description for category 123" /> 

<?php } elseif ($category->id==456){ ?>
          <meta name="description" content="description for category 456" /> 

<?php } elseif ($category->id==789){ ?>
          <meta name="description" content="description for category 789" /> 

<?php } elseif ($category->id==012){ ?>
          <meta name="description" content="description for category 012" /> 

<?php } else { ?>
          <meta name="description" content="........." /> 
<?php ?>
3. Add your category IDs and descriptions.

4. Save and update your store by clicking the Update Settings button in Datafeedr plugin.