How to hide the number of images in a category?

Phoca Gallery - image gallery extension
bonger
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Aug 2010, 03:42

How to hide the number of images in a category?

Post 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!
imperialWicket
Phoca Enthusiast
Phoca Enthusiast
Posts: 78
Joined: 28 Feb 2010, 15:39

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

Post by imperialWicket »

I think this post might describe your update. Let me know if you are using a different view or have questions.
bonger
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Aug 2010, 03:42

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

Post 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!
imperialWicket
Phoca Enthusiast
Phoca Enthusiast
Posts: 78
Joined: 28 Feb 2010, 15:39

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

Post 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.
bonger
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Aug 2010, 03:42

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

Post by bonger »

Thanks for your help on this ImperialWicket! That worked for me! :)
Dimi2012
Phoca Member
Phoca Member
Posts: 11
Joined: 28 Jan 2012, 01:09

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

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Ok, thank you for the guide.

Jan
If you find Phoca extensions useful, please support the project
vtjoanne
Phoca Member
Phoca Member
Posts: 22
Joined: 28 Jul 2012, 22:58

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

Post 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,
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

If you find Phoca extensions useful, please support the project
vtjoanne
Phoca Member
Phoca Member
Posts: 22
Joined: 28 Jul 2012, 22:58

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

Post 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.
Post Reply