Random category name is displayed in header area (storefront)
-
In the header area is displayed random category name – I found some 2 years old forum threads about that and tried to fix according those but my page.php file does not have <h1><?php the_title(); ?></h1> . Probably has something change from that time. How to fix that bug? Where shall I add suggested code or is there new trick to solve the issue?:
<h1 class=”entry-title”>
<?php if (‘wpsc-product’ == get_post_type() && !is_single()){
$category_name= wpsc_category_name(); ?> <?php echo $category_name; ?> <?php
} else { the_title(); ?> <?php
} ?> </h1>
(current solution was provided here)
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Random category name is displayed in header area (storefront)’ is closed to new replies.