cancel
Showing results for 
Search instead for 
Did you mean: 

Category Description

Category Description

Hello, I am hoping someone can help me. 

 

I am adding a category Description to all of our website Category pages so we have some good SEO text and a description to help the end user.

 

I have added these but the block for the Category Description I am changing which is in (Manage Category > Categories > Description) is showing at the very bottom of the page rather than at the top that we would prefer. I have attached images could anyone tell me how to move this piece of text ourselves to the top of the website categories. I have attached images and your help is grateful.

 

We need it here.We need it here.It's here.It's here.

2 REPLIES 2

Re: Category Description

Hi @marketing360uk

 

You need to modify the category view page:

app/design/frontend/{package}/{theme}/template/catalog/category/view.phtml

Find this code for Description

<?php if($_description=$this->getCurrentCategory()->getDescription()): ?>
    <div class="category-description std">
        <?php echo $_helper->categoryAttribute($_category, $_description, 'description') ?>
    </div>
<?php endif; ?>

Find this code for Imagen

<?php
    
   if ($_imgUrl = $_category->getImageUrl()) {
       $_imgHtml = '<p class="category-image"><img src="'.$_imgUrl.'" alt="'.$this->escapeHtml($_category->getName()).'" title="'.$this->escapeHtml($_category->getName()).'" /></p>';
         $_imgHtml = $_helper->categoryAttribute($_category, $_imgHtml, 'image');
    }
?>



 

 

Re: Category Description

Paco, many thanks for your help.

 

excelente!