Hi
The best method to achieve this would be through editing your category page template and adding the description inside it.
For additional help please contact us at support@jigoshop.com 🙂
Thank you for the reply.
I am adding the description text for ever category page but it doesn’t show.
Or do you mean adding the description to the category template jigoshop file?
If so, two questions: what is the name of the file? And how would I be able to add different text to different category pages?
Thank you for your help!
The file’s name is “shop.php” (can be found in jigoshop-ecommerce/templates). Each description is different, so it will be different for each category, but you might want to use a separate condition to distinguish between the categories (slug-based, for example). The code below should do it for you (create a “jigoshop” folder inside your currently used theme’s directory and put the modified “shop.php” template there)
starting from line 16, replace the “else:” expression, up to the first “endif;”, with:
<?php else: ?>
<?php if (\Jigoshop\Frontend\Pages::isProductCategory()): ?>
<?php global $wp_query; ?>
<?php $term = get_term_by('slug', $wp_query->query[Jigoshop\Core\Types\ProductCategory::NAME], \Jigoshop\Core\Types\ProductCategory::NAME); ?>
<?= apply_filters('jigoshop\shop\content\title', '<h1 class="page-title">' . $term->name . '</h1>', $term->name); ?>
<p class="category-description"><?php echo $term->description; ?></p>
<?php else: ?>
<?= apply_filters('jigoshop\shop\content\title', '<h1 class="page-title">' . $title . '</h1>', $title); ?>
<?php endif; ?>
<?php endif; ?>
The code worked wonderfully!
Thank you so much for the support!