Where to disable the "subcategory" in k2

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Fri Apr 18, 2014 8:54 am
Reply with quote
Report this post
hi,

where can i disable the subcategory title?
User avatar
Gold Boarder

GK User
Fri Apr 18, 2014 6:25 pm
Reply with quote
Report this post
Hello,

You can do it in the category settings or in the category menu item settings.
User avatar
Administrator

GK User
Fri Apr 18, 2014 10:06 pm
Reply with quote
Report this post
of course i tried it before but didnt find the right parameter. where can i find it exactly?
User avatar
Gold Boarder

GK User
Sat Apr 19, 2014 1:47 pm
Reply with quote
Report this post
In the category edit screen there are a right sidebar with options - here is a section "Category view" then "Subcategory - handling" - there is an option "Sub category blocks".
User avatar
Administrator

GK User
Sat Apr 19, 2014 3:11 pm
Reply with quote
Report this post
i dont want to disable the whole subcategory layout. i only want to remove the term "Unterkategorien".
but as you can see in the pic, the template is not correct set. if the categories plus the term is set right, i would be happy.
where can i edit the layout of the subcategories? or do you have an update of the template?
User avatar
Gold Boarder

GK User
Mon Apr 21, 2014 8:39 pm
Reply with quote
Report this post
?
User avatar
Gold Boarder

GK User
Tue Apr 22, 2014 8:07 am
Reply with quote
Report this post
In the category view are there is also an option to disable the category title - it is one of the first options in this area. Regarding the problem with styling - could you provide an URL to your website?
User avatar
Administrator

GK User
Tue Apr 22, 2014 9:57 pm
Reply with quote
Report this post
Ok, Now I see a reason of your problems - you have to open html/com_k2/templates/default/category.php file and remove the following line:

Code: Select all
<h2><?php echo JText::_('K2_CHILDREN_CATEGORIES'); ?></h2>


In the css/k2.css please change code:

Code: Select all
.itemListSubCategories {
overflow: hidden;
}


to:

Code: Select all
.itemListSubCategories {
overflow: hidden;
padding: 32px 32px 0 32px;
}
User avatar
Administrator

GK User
Wed Apr 23, 2014 6:43 am
Reply with quote
Report this post
ok, now could set the margin in the css template override. the only problem now is, that the term "unterkategorien" has no margin to the subcategories.
how can i set?
User avatar
Gold Boarder

GK User
Wed Apr 23, 2014 4:35 pm
Reply with quote
Report this post
Did you tried the modification from my last post?

Code: Select all
.itemListSubCategories {
overflow: hidden;
padding: 32px 32px 0 32px;
}
User avatar
Administrator

GK User
Wed Apr 23, 2014 4:44 pm
Reply with quote
Report this post
yes,

i took the css to the css override in the template setting:

.itemListSubCategories {
overflow: hidden;
padding: 32px 32px 0 32px;
}


but my problem with the margin of the subcategory title is still existing
User avatar
Gold Boarder

GK User
Wed Apr 23, 2014 4:46 pm
Reply with quote
Report this post
Did you refreshed your browser cache? As I see for me the margins are now correct in your website.
User avatar
Administrator

GK User
Wed Apr 23, 2014 5:25 pm
Reply with quote
Report this post
yes, but also on my other computer there is not enough margin between "unterkategorien" (subcategory) and the subcategory items, see pic
User avatar
Gold Boarder

GK User
Wed Apr 23, 2014 9:28 pm
Reply with quote
Report this post
In this case please add also the following code:

Code: Select all
.itemListSubCategories h2 {
margin-bottom; 20px;
}
User avatar
Administrator

GK User
Wed Apr 23, 2014 9:51 pm
Reply with quote
Report this post
dziudek wrote:In this case please add also the following code:

Code: Select all
.itemListSubCategories h2 {
margin-bottom; 20px;
}



this code has no effect on the margin...
User avatar
Gold Boarder

GK User
Wed Apr 23, 2014 9:56 pm
Reply with quote
Report this post
Sorry - there was a small typo:

Code: Select all
.itemListSubCategories h2 {
margin-bottom: 20px;
}
User avatar
Administrator

GK User
Wed Apr 23, 2014 10:24 pm
Reply with quote
Report this post
now it works, thanks!
User avatar
Gold Boarder


cron