Keyword

Category title display in item component! HELP!

More
13 years 1 month ago #99269 by Fone
Just wondering if anyone knows how to make the category title, the default title in item component heading!

The title is ok in category items but once you click in one item the title changes to the page title. I've seen in teh PHP code that it's set to "page_title", and I want to display category title in every page!

 

Thank you very much!!!

Please Log in or Create an account to join the conversation.

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
13 years 1 month ago #99270 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Category title display in item component! HELP!
You can add this line at your item.php page and style it accordingly.

 

Place the text below, on where you want the category name to appear.

 

<h2><?php echo $this->item->category->name; ?></h2>

 

 

K2 Rocks \m/

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #99271 by Fone
Thank you very much!!!! Works like a charm :)

I just removed the h2 tags so it adopts the "componentheading" general style.

Thanks again!

Please Log in or Create an account to join the conversation.

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
13 years 1 month ago #99272 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Category title display in item component! HELP!
You're welcome :D

K2 Rocks \m/

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum