add category name in category layout of virtuemart

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Dec 14, 2016 12:41 pm
Reply with quote
Report this post
How can i add the category name in category layout?
User avatar
Fresh Boarder

teitbite
Mon Dec 19, 2016 12:23 pm
Reply with quote
Report this post
Hi

I can see a code to show category name is there already. Please try to force it without condition. Edit file /html/com_virtuemart/category/default.php and change code:

Code: Select all
      <?php if(!empty($this->category->category_name)) : ?>
      <h1><?php echo $this->category->category_name; ?></h1>
      <?php endif; ?>


into

Code: Select all
      <h1><?php echo $this->category->category_name; ?></h1>
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.