Keyword

Remove Children Categories text from showing under a category

  • Christina Cherry
  • Christina Cherry's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 4 months ago #76645 by Christina Cherry
Hi

I'd like to remove the text that says "Children's Categories" from the page. So far I can't see how to do it, can anyone assist?

The page in question is mvfdc.narromine.nsw.au where I have the parent category empty and two children's categories. It would be good to be able to hide all the stuff above the images.

Thanks in advance

Christina
Attachments:

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

More
15 years 4 months ago #76646 by Simon Wells
Hi Christina,

Yes you can remove this code or change it.

You might also want to consider copying the default K2 theme to create your own sub theme for different categories.

Anyway, you need to modify the category.php file which is found in components/com_k2/templates/default.

For the Page Title, look around line 22:
params->get('pageclass_sfx')?>">

Remove/modify the second line.

For the Children Categories, remove/modify this line .
{h3} div class="itemListSubCategories">{/h3}

The code you need to modify is between the H3 tags.

Simon

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

More
15 years 4 months ago #76647 by Bryan Smith
Edit the file: ../components/com_k2/templates/default/Category.php.
remove the line 78:

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

More
15 years 3 months ago #76648 by PrissiDe
I have done this and the Children Cat is not going away. Can you please help me?

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

More
15 years 3 months ago #76649 by that library
It worked for me! If you have a custom template for any category or sub-category(ies), then you need to change that line in every instance of category.php

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

More
15 years 2 months ago #76650 by Elieluen
Brittani DeArmond said:I have done this and the Children Cat is not going away. Can you please help me?


Hi,

I too found that the above fix didn't work but after much sniffing around found that if you have a template for the site (not a k2 template; for instance i am using a rocketthemes template) then you will find another copy of this file inside that template folder at -

'templates/"yourtemplate"/html/com_k2/templates/default/category.php'

Hope that helps you :)
Eli

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

  • Christina Cherry
  • Christina Cherry's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 2 months ago #76651 by Christina Cherry
Thanks guys - except now I am confused! Creating a new template should it be placed here
'templates/"yourtemplate"/html/com_k2/templates/default/category.php'

OR

/public_html/components/com_k2/templates

? thanks

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

More
15 years 2 months ago #76652 by Morten Bonde
Hi Christina

The com_K2 folder and files should automatically be created if you install K2 after your main template. It is in this folder you can change the category.php file ('templates/"yourtemplate"/html/com_k2/templates/default/category.php')

Cheers,
Morten

Christina Cherry said:Thanks guys - except now I am confused! Creating a new template should it be placed here'templates/"yourtemplate"/html/com_k2/templates/default/category.php'OR/public_html/components/com_k2/templates? thanks

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

  • Brandon G. Little
  • Brandon G. Little's Avatar
  • Offline
  • Junior Member
More
15 years 2 months ago #76653 by Brandon G. Little
I had the same problem, and I just figured it out.........

My template (a RocketTheme template) has its own files for K2. Editing the file in .../components/com_k2/templates/default/ won't do anything. You need to go into your templates folder and make the same edit in .../templates/*your template*/html/com_k2/templates/default/category.php

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

More
15 years 2 months ago #76654 by Simon Wells
There is a guide on K2Joom that covers this, click here.

Regards,

Simon
K2Joom.com

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

More
15 years 2 weeks ago #76655 by Deborah Nix
Some may find it a more simple solution to add the following to your template.css file, or to the k2.css file:

div.itemListSubCategories h3 {
display:none;
visibility:hidden;}

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

  • Christina Cherry
  • Christina Cherry's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 2 weeks ago #76656 by Christina Cherry
Great thanks - simple solution!!!

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

More
14 years 10 months ago #76657 by Nicole Phillips
Thank You So much. I've been looking for days. It worked

Elieluen said:Brittani DeArmond said:I have done this and the Children Cat is not going away. Can you please help me?

Hi,I too found that the above fix didn't work but after much sniffing around found that if you have a template for the site (not a k2 template; for instance i am using a rocketthemes template) then you will find another copy of this file inside that template folder at -'templates/"yourtemplate"/html/com_k2/templates/default/category.php'Hope that helps you :)Eli

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

More
14 years 10 months ago #76658 by rebecca parks
wonderful – worked beautifully. thanks !!!

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

More
14 years 2 months ago #76659 by L. Arnold
 

In Rockettheme Paradox this is controlled under

/components/com_k2/templates/default/category.php

 

Rockettheme did not, in my situation, load its own K2 K2 formatting that I could find.  It would be easiest for K2 to use proper english and say "Child Categories" (IMHO)

___________ Nicole Phillips said:

Thank You So much. I've been looking for days. It worked
Elieluen said:
Brittani DeArmond said:I have done this and the Children Cat is not going away. Can you please help me?

Hi,I too found that the above fix didn't work but after much sniffing around found that if you have a template for the site (not a k2 template; for instance i am using a rocketthemes template) then you will find another copy of this file inside that template folder at -'templates/"yourtemplate"/html/com_k2/templates/default/category.php'Hope that helps you :)Eli

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

More
13 years 9 months ago #76660 by bruce adams
hi is there a way of removing the words ' additionl info ' which heads the extra fields? milesandbarrcashforcharity.co.uk/currys.html

 

cheers

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

More
11 years 9 months ago - 11 years 9 months ago #76661 by grandmasteryoda
having the same issue and 1 question:

in order to resove it that way:

Some may find it a more simple solution to add the following to your template.css file, or to the k2.css file:

div.itemListSubCategories h3 {
display:none;
visibility:hidden;}


is this the correct path? l/templates/rt_graffito/css-compiled/l/templates/rt_graffito/thirdparty-k2.css

and 2nd question: where exactly i have to add the code??

Apreciate!!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • User
More
11 years 9 months ago #76662 by Krikor Boghossian
Hello Yoda,

This is the correct path although you should advise your template's documentation for overrides since some frameworks do not follow the normal overriding procedure.

As for the second question, look for the classes using your editor and apply the values. If these classes are not present simply c/p the entire snippet.

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

More
11 years 8 months ago #76663 by Diomar
Very good. This is the correct answer!!!

Thank you!

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


Powered by Kunena Forum