Hide 'subcategories'

Need help with the Administration of your Joomla! 2.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Gonzalop
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Mon Mar 16, 2009 12:51 am

Hide 'subcategories'

Post by Gonzalop » Tue May 17, 2011 5:15 pm

Hello I am using Beez 20, I set in a menu item to show the category in a blog format in order to see the content of the category. The thing is that i have sub-categories in this category and appear the title : 'Sub-categories' I cannot find how to hide this, someone know?

Thank you very much

xurxinho
Joomla! Apprentice
Joomla! Apprentice
Posts: 40
Joined: Mon Apr 04, 2011 9:45 am

Re: Hide 'subcategories'

Post by xurxinho » Wed May 18, 2011 7:31 am

i've got the same problem

AbdRahim
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Thu Aug 12, 2010 1:52 am

Re: Hide 'subcategories'

Post by AbdRahim » Sun Jul 17, 2011 5:46 am

me too. I Just want to see a list of categories and no subcategories until I click in the category. This way I can view a short list of subcategories in one category. Right now the page is filled with all of the categories and their subcategories.

cmsj
Joomla! Explorer
Joomla! Explorer
Posts: 311
Joined: Wed Jun 29, 2011 11:22 am

Re: Hide 'subcategories'

Post by cmsj » Sun Jul 17, 2011 10:01 am

You can set the number of levels that show:
Menu item > Category options > Subcategory levels (select desired outcome, i.e none)

xurxinho
Joomla! Apprentice
Joomla! Apprentice
Posts: 40
Joined: Mon Apr 04, 2011 9:45 am

Re: Hide 'subcategories'

Post by xurxinho » Sun Jul 17, 2011 10:41 am

thanks

Dasmonstrum2
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Wed May 11, 2011 6:04 pm

Re: Hide 'subcategories'

Post by Dasmonstrum2 » Sat Aug 27, 2011 12:32 pm

Hi There,

Please how can I remove that Subcatogories Title in the Category List Menu?

Code: Select all

<h3>
			Sub-categorias		</h3>
Please check the screen shot.

Thank you
You do not have the required permissions to view the files attached to this post.

cmsj
Joomla! Explorer
Joomla! Explorer
Posts: 311
Joined: Wed Jun 29, 2011 11:22 am

Re: Hide 'subcategories'

Post by cmsj » Sun Aug 28, 2011 2:47 pm

Dasmonstrum2 wrote:Please how can I remove that Subcatogories Title in the Category List Menu?
Category manager> Options> Category> Subcategory Levels (set this to 0).

Dasmonstrum2
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Wed May 11, 2011 6:04 pm

Re: Hide 'subcategories'

Post by Dasmonstrum2 » Sun Aug 28, 2011 3:03 pm

cmsj wrote:
Dasmonstrum2 wrote:Please how can I remove that Subcatogories Title in the Category List Menu?
Category manager> Options> Category> Subcategory Levels (set this to 0).
Thanks. But that will also stop showing the subgategories.

I would like to remove just the Title: Subgategories.

technoboyuk
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sat Oct 04, 2008 4:41 pm

Re: Hide 'subcategories'

Post by technoboyuk » Fri Sep 16, 2011 5:43 pm

Have the same problem, want to get rid of subcategory title not the subcategory list.

In the options there is no setting to remove subcategory title, there is however a setting to remove category title. And also there is no way to input 0 as someone has suggested, you only have None, All, 1,2,3,4,5.

A little bit annoying, should be easy to solve, but it is not.

technoboyuk
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sat Oct 04, 2008 4:41 pm

Re: Hide 'subcategories'

Post by technoboyuk » Fri Sep 16, 2011 10:24 pm

Found a solution elsewhere, might help others until a better solution comes along.

How to hide Subcategory Title

Edit language/en-GB/en-GB.ini

find on line 195

JGLOBAL_SUBCATEGORIES=”Subcategories”

replace with

JGLOBAL_SUBCATEGORIES=””

Another way to achieve same result is to edit language\overrides\en-GB.override.ini

and add this line

JGLOBAL_SUBCATEGORIES=””


Worked for me

Cheers

fez
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Nov 06, 2009 7:57 pm

Re: Hide 'subcategories'

Post by fez » Sun Oct 30, 2011 7:50 am

iv followed the above instructions but the change isnt showing on my website :(

technoboyuk
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sat Oct 04, 2008 4:41 pm

Re: Hide 'subcategories'

Post by technoboyuk » Sun Oct 30, 2011 8:46 am

Assuming you have also changed options in article manager regarding subcategories then it might be you need to clear cache.

I did have problems with the last one (override) just use the Edit language/en-GB/en-GB.ini and it should work, that is all I did.

Ensure you don't remove the line completely, only remove the word Subcategories

Cheers

keb1965
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 117
Joined: Mon Dec 15, 2008 7:23 pm

Re: Hide 'subcategories'

Post by keb1965 » Sat Dec 03, 2011 5:56 am

This is an easy fix, although it doesn't remove it from the source code, it does remove it from the display.

In your template css file, add this rule:

Code: Select all

div.cat-children h3 
{
	display:none;
}
The subcategory text will no longer display.

webgirl454
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Dec 09, 2011 4:56 pm

Re: Hide 'subcategories'

Post by webgirl454 » Fri Dec 09, 2011 4:59 pm

keb1965 wrote:This is an easy fix, although it doesn't remove it from the source code, it does remove it from the display.
In your template css file, add this rule:

Code: Select all

div.cat-children h3 
{
	display:none;
}
The subcategory text will no longer display.
THANKS!! This was driving me nuts and this worked!!
:)

keb1965
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 117
Joined: Mon Dec 15, 2008 7:23 pm

Re: Hide 'subcategories'

Post by keb1965 » Fri Dec 09, 2011 5:43 pm

Sometimes we miss the simplest solutions. Glad I could help!

Monica Olsson
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Thu Nov 03, 2011 9:21 am

Re: Hide 'subcategories'

Post by Monica Olsson » Mon Dec 12, 2011 12:11 pm

How to hide Subcategory Title
Edit language/en-GB/en-GB.ini
find on line 195
JGLOBAL_SUBCATEGORIES=”Subcategories”
replace with
JGLOBAL_SUBCATEGORIES=””
Another way to achieve same result is to edit language\overrides\en-GB.override.ini
and add this line
JGLOBAL_SUBCATEGORIES=””


***** Manual signatures are NOT allowed ********** Manual signatures are NOT allowed ********** Manual signatures are NOT allowed ********** Manual signatures are NOT allowed ********** Manual signatures are NOT allowed ********** Manual signatures are NOT allowed *****____

This worked very well for me. Thanks for the help!
Does anyone know how to hid the link list aswell?

/Monica

keb1965
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 117
Joined: Mon Dec 15, 2008 7:23 pm

Re: Hide 'subcategories'

Post by keb1965 » Mon Dec 12, 2011 6:10 pm

The only problem with that is that the attributes of the subcategory div remain on the screen to be seen. By using the CSS fix above, the entire div is rendered invisisble.

User avatar
joomlacorner
Joomla! Explorer
Joomla! Explorer
Posts: 407
Joined: Thu Aug 18, 2005 2:29 am
Contact:

Re: Hide 'subcategories'

Post by joomlacorner » Thu Feb 02, 2012 9:40 am

รับพัฒนาระบบด้วย Joomla http://marvelic.co.th | ทีมพัฒนาภาษาไทย http://www.joomlacorner.com

User avatar
LukeDouglas
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 210
Joined: Sat Dec 08, 2007 8:23 pm

Re: Hide 'subcategories'

Post by LukeDouglas » Fri Mar 30, 2012 4:43 pm

The CSS code is the way to go to resolve this. If you hack any of the underlying Joomla code, it may be overwritten by future updates. I use the Gantry framework and have mycustomstyles.css file so even a template update will not break my changes.

kimwesterling
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Jul 27, 2012 10:35 am

Re: Hide 'subcategories'

Post by kimwesterling » Fri Jul 27, 2012 10:45 am

technoboyuk wrote:Have the same problem, want to get rid of subcategory title not the subcategory list.

In the options there is no setting to remove subcategory title, there is however a setting to remove category title. And also there is no way to input 0 as someone has suggested, you only have None, All, 1,2,3,4,5.

A little bit annoying, should be easy to solve, but it is not.
Is the only way to hide 'subcategories' by making changes to code?

User avatar
LukeDouglas
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 210
Joined: Sat Dec 08, 2007 8:23 pm

Re: Hide 'subcategories'

Post by LukeDouglas » Fri Jul 27, 2012 3:34 pm

kimwesterling wrote:
technoboyuk wrote:Have the same problem, want to get rid of subcategory title not the subcategory list.

In the options there is no setting to remove subcategory title, there is however a setting to remove category title. And also there is no way to input 0 as someone has suggested, you only have None, All, 1,2,3,4,5.

A little bit annoying, should be easy to solve, but it is not.
Is the only way to hide 'subcategories' by making changes to code?
It is bad, very bad to hack code, period. Use CSS to simply 'hide' the container. You can do this in a mycustomstyle.css in the 'css' directory. If you are not familiar with this process, read this forum post as it rocks: http://www.rockettheme.com/forum/index. ... =viewtopic

You will need to determine the container class or ID by inspecting the webpage. I use Firebug with my Firefox. Once you find the class or ID, simply add it to your mycustomstyle.css.

Here's an example. Let's say your DIV container class name is 'subcat'. Then add this to your mycustomstyle.css sheet:

Code: Select all

.subcat > div {
height: 0px;
overflow:hidden;
}
If this doesn't work, then try this:

Code: Select all

.subcat > div {
height: 0px !important;
overflow:hidden !important;
}
Basically, we are setting the height of the container to 0px so that any content causes an overflow and then the overflow will be hidden, thus hiding the content.

When I create a new website with Joomla and Gantry, the first thing I do after installing my Gantry template is to add this custom style setup. I do it for all of my sites and it works just fine.

victord
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Apr 26, 2010 4:12 am

Re: Hide 'subcategories'

Post by victord » Sat Aug 04, 2012 10:11 pm

On j25 Go to Menu Manager»Choose the category Blog Menu you want to change»On the right click on Category Options»on Subcategory Levels choose None

It worked for me.

A Guy
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Tue Feb 23, 2010 1:45 am

Re: Hide 'subcategories'

Post by A Guy » Tue Aug 14, 2012 12:33 am

Code: Select all

div.cat-children h3
{
   display:none;
}
Won't this fix also remove all h3 tag displays from showing? For instance I am pretty certain that some extensions use h3 tags to display certain text.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 25943
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Hide 'subcategories'

Post by Per Yngve Berg » Tue Aug 14, 2012 6:26 pm

No, unless they have the h3 in a div with class cat-children.

jsgdmbnhl
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 156
Joined: Thu Jul 05, 2012 4:32 pm

Re: Hide 'subcategories'

Post by jsgdmbnhl » Tue Aug 14, 2012 7:35 pm

Is there any particular spot that the code should be added (main layout, header, showcase, etc)? I am using the RocketTheme Afterburner template.

jsgdmbnhl
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 156
Joined: Thu Jul 05, 2012 4:32 pm

[SOLVED] Re: Hide 'subcategories'

Post by jsgdmbnhl » Tue Aug 28, 2012 12:37 pm

I am able to hide menus and subcategories.

Archangel Michael
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Fri Dec 28, 2007 5:28 pm

Re: Hide 'subcategories'

Post by Archangel Michael » Fri Aug 31, 2012 4:43 am

The CSS solution is the best here. However I find it only marginally acceptable. Editing a CSS or Core files is not a real solution for THIS issue. The real solution is to have the option to not display "Subcategories" at all. It is a description that the site visitor probably cares little to nothing about and therefore it detracts from the page.

I've edited the CSS to hide it, however the real solution is to give the option from that menu.

Subcategories Description: Hide, Show, Global.

IN my case, we have a Category called "Newsletter" each Subcategory is Month/Year label. I don't want "Subcategory" appearing on the page, just a list of the newsletters available. Changing the setting to 0 shows none of the newsletters, and 1 simply is the "Subcategory" heading followed by the Newsletter Titles. YUCK.

I saw the fix submitted back in Feb to the code, and am wondering why it hasn't yet been reviewed/edited and added to the tree.

User avatar
LukeDouglas
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 210
Joined: Sat Dec 08, 2007 8:23 pm

Re: Hide 'subcategories'

Post by LukeDouglas » Fri Aug 31, 2012 5:19 am

Archangel Michael wrote:I saw the fix submitted back in Feb to the code, and am wondering why it hasn't yet been reviewed/edited and added to the tree.
I suspect these forums are not read very often by the development team. You should probably post a suggestion to https://groups.google.com/forum/?fromgr ... ev-general

dgreenspan52
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri May 25, 2012 8:56 pm

Re: Hide 'subcategories'

Post by dgreenspan52 » Sun Jan 20, 2013 5:29 am

The CSS fix works for display, but does anyone know a way to remove the <h3>Subcategories</h3> from source code?

Thanks!
Daniel

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 25943
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Hide 'subcategories'

Post by Per Yngve Berg » Sun Jan 20, 2013 9:33 am

Archangel Michael wrote:IN my case, we have a Category called "Newsletter" each Subcategory is Month/Year label. I don't want "Subcategory" appearing on the page, just a list of the newsletters available. Changing the setting to 0 shows none of the newsletters, and 1 simply is the "Subcategory" heading followed by the Newsletter Titles. YUCK.
Why do you not use the archive for this?


Locked

Return to “Administration Joomla! 2.5”