Feznizzle:
Hello,
I have some very long Category description pages. Normally, a category page will a short paragraph above a list of products. If there are a lot of products, then the category will provide links to Page 1, 2, and so on. The little paragraph appears at the top again on each subpage.
This is fine, except when a Cat desc is super long, containing charts, diagrams, and so on.
Is there a way to tell my ZC only to display Category description on page 1 of the category?
And if there is no built in switch, is there a simple way to tweak it into happening? For instance, could I add a css no display somewhere? Or would this be a code thing?
Thanks!
Code way would be the route to go... if includes/templates/YOUR_TEMPLATE/templates/tpl_index_categories.php doesn't exist then copy the tpl_index_categories.php file from includes/templates/template_default/templates/tpl_index_categories.php to that directory before making the changes provided/described below:
Find
<?php
// categories_description
if ($current_categories_description != '') {
?>
and change to:
<?php
// categories_description
if ($current_categories_description != '' && (!isset($_GET['page']) || (isset($_GET['page']) && $_GET['page'] == '1'))) {
?>
What this does is if there is a description, then provide the description but only if there is no page=X statement in the URI or if there is a page=X statement, then X must be 1 (first page)... The first condition occurs when first landing on the category from an outside link, the second condition exists if you have navigated away from the first page using the page numbers and then navigated back to the first page using the same "Page 1" option (or previous if it is displayed).
If the file already exists in your overridden template, then the statement to find above may already be a little different, but should be readily identifiable.