Keyword

[SOLVED] H1 in items Category

  • cyfcaloryfrio
  • cyfcaloryfrio's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 10 months ago #120790 by cyfcaloryfrio
[SOLVED] H1 in items Category was created by cyfcaloryfrio
Hi.....I have the following code on my website for the categories´s style:

<div id="k2Container" class="itemListView">
<div class="itemListCategoriesBlock">
<div class="itemsCategory">
<h2>Hello</h2>
</div>
</div>


The question is whether there is some way from the panel to modify h2 tag without having to edit the source code in the web.

Thanks...

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 10 months ago #120791 by Yiota
Replied by Yiota on topic Re: H1 in items Category
I'm afraid not. You need to create a K2 template override, read here how overrides work getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates, and modify it there.

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

  • cyfcaloryfrio
  • cyfcaloryfrio's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 10 months ago #120792 by cyfcaloryfrio
Replied by cyfcaloryfrio on topic Re: H1 in items Category
Ok.....Thanks!!!

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

  • Alejandro Herrera Styles
  • Alejandro Herrera Styles's Avatar
  • Offline
  • New Member
More
10 years 10 months ago - 10 years 10 months ago #120793 by Alejandro Herrera Styles
Replied by Alejandro Herrera Styles on topic Re: [SOLVED] H1 in items Category
Hello:

A problem here!!
I have a dentist website with one category (specialities) and sub-categories (the actual specialities). The items inside subcategories are the dentist's names
I created a template override for a category (category.php, in my template html folder)
I created a menu link to the main category (specialities), to show the subcategory blocks, not the items and it worked fine.
Then, I created a menu link to the subcategories inside that categry, to show the list of dentists, by selecting all these subcategories. Then, the template override stopped to work. but it works if i choose just one subcategory.
The sub categories inherit the parameters from the first subcategory.

Is it a bug or I'm doing something wrong?

Thanks

www.matiza.cl/j25
Joomla 2-5-16
K2 2.6.7

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 10 months ago #120794 by Yiota
Replied by Yiota on topic Re: [SOLVED] H1 in items Category
Check the parameters through the menu item you have created for the multiple categories.

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

  • Alejandro Herrera Styles
  • Alejandro Herrera Styles's Avatar
  • Offline
  • New Member
More
10 years 10 months ago #120795 by Alejandro Herrera Styles
Replied by Alejandro Herrera Styles on topic Re: [SOLVED] H1 in items Category
Thanks!!

But, which parameter to check?

If I choose one subcategoy, the template override works (on category_item.php). But if I choose 2 or more subcategories, it stops working.

A.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 10 months ago #120796 by Yiota
Replied by Yiota on topic Re: [SOLVED] H1 in items Category
If you choose multiple categories in your menu item the parameters below are editable and you will have to select again through there the settings you have in the one category.

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

  • Alejandro Herrera Styles
  • Alejandro Herrera Styles's Avatar
  • Offline
  • New Member
More
10 years 10 months ago #120797 by Alejandro Herrera Styles
Replied by Alejandro Herrera Styles on topic Re: [SOLVED] H1 in items Category
Thanks!

But I need to edit things in the override template like h1 styles, the order of elements and thinks like that, not configurable thru menu item parameters, but in the template code. I´ve already done that, and it works when I choose just one category, not 2 or more. that´s the problem!

A.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 10 months ago #120798 by Yiota
Replied by Yiota on topic Re: [SOLVED] H1 in items Category
Just choose to load the correct template through the menu item.

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

  • Alejandro Herrera Styles
  • Alejandro Herrera Styles's Avatar
  • Offline
  • New Member
More
10 years 10 months ago #120799 by Alejandro Herrera Styles
Replied by Alejandro Herrera Styles on topic Re: [SOLVED] H1 in items Category
It worked! Thanks!

the category_item.php file must be inside a folder (especialidades in my site). Being directly in the html folder (inside template folder) it did´nt work. But it only happened if i choose multiple categories. Choosing just one it worked being the php file in the html folder.

Can´t understand the logic of it, but it works.

Thanks again.
A

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


Powered by Kunena Forum