Page 1 of 2

How to hide the number of images in a category?

Posted: 16 Aug 2010, 03:46
by bonger
Hi,

I wanted to hide the number of images that are in my category.
Currently I am displaying the thumbnail, the category name and then the total number if images in brackets e.g. (5). Is there any way of hiding the number and the number and the brackets?

Many thanks in advance!

Re: How to hide the number of images in a category?

Posted: 16 Aug 2010, 04:28
by imperialWicket
I think this post might describe your update. Let me know if you are using a different view or have questions.

Re: How to hide the number of images in a category?

Posted: 16 Aug 2010, 22:18
by bonger
Hi, thanks for you reply! That code change helped remove the numbers from the category view, but I am also using the article plugin code "{phocagallery view=categories|categoryid=2|imagecategoriessize=5}" but this still displays the number.

Is there any way of removing this?

Many thanks again!

Re: How to hide the number of images in a category?

Posted: 17 Aug 2010, 02:39
by imperialWicket
That part is rendered by the Phoca Gallery Content Plugin. The file is /plugins/content/phocagallery.php. Just search for "$category->numlinks" and delete it, or comment it out. Make sure to avoid displaying the surrounding parentheses as well. It occurs twice in the file, both around line 800.

Re: How to hide the number of images in a category?

Posted: 24 Aug 2010, 17:33
by bonger
Thanks for your help on this ImperialWicket! That worked for me! :)

Re: How to hide the number of images in a category?

Posted: 28 Mar 2012, 14:19
by Dimi2012
I realize this is an old post but for 3.15 go to your template's main CSS and find

Code: Select all

.small, .createdate, .modifydate, .createby {
    color: #888888;
    font-size: 10px;
    text-transform: uppercase;
}
Then add

Code: Select all

display: none!important;
the

Code: Select all

!important;
is optional. That's it.

Re: How to hide the number of images in a category?

Posted: 02 Apr 2012, 21:31
by Jan
Ok, thank you for the guide.

Jan

Re: How to hide the number of images in a category?

Posted: 14 Aug 2012, 07:10
by vtjoanne
I'm running version 3.2.1 and have not been able to remove the (18) number of images after my category name eg:
Italy (34) - Any help would be appreciated.
thanks,

Re: How to hide the number of images in a category?

Posted: 14 Aug 2012, 15:45
by Jan

Re: How to hide the number of images in a category?

Posted: 12 Sep 2012, 01:28
by vtjoanne
I'm having no luck removing the number of images in parentheses in the "categories" view.
The code snippets that are shown as examples in the forum threads are not found in the files I have namely:
components/com_phocagallery/assets/phocagallery.css
My code is different and i'm having trouble knowing which part to comment out.
I'm displaying style "categories without images"

I'm also unable to find the file /plugins/content/phocagallery.css in order to change/comment out the categories view.

I've tried altering the css code as suggested at this link:
https://www.phoca.cz/documents/2-phoca-g ... ca-gallery
but nothing happens.
I'm running version 3.2.1
Any clarification would be appreciated.