How to hide the number of images in a category?
-
bonger
- Phoca Newbie

- Posts: 3
- Joined: 16 Aug 2010, 03:42
How to hide the number of images in a category?
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!
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

- Posts: 78
- Joined: 28 Feb 2010, 15:39
Re: How to hide the number of images in a category?
I think this post might describe your update. Let me know if you are using a different view or have questions.
-
bonger
- Phoca Newbie

- Posts: 3
- Joined: 16 Aug 2010, 03:42
Re: How to hide the number of images in a category?
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!
Is there any way of removing this?
Many thanks again!
-
imperialWicket
- Phoca Enthusiast

- Posts: 78
- Joined: 28 Feb 2010, 15:39
Re: How to hide the number of images in a category?
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

- Posts: 3
- Joined: 16 Aug 2010, 03:42
Re: How to hide the number of images in a category?
Thanks for your help on this ImperialWicket! That worked for me! 
-
Dimi2012
- Phoca Member

- Posts: 11
- Joined: 28 Jan 2012, 01:09
Re: How to hide the number of images in a category?
I realize this is an old post but for 3.15 go to your template's main CSS and find
Then add the is optional. That's it.
Code: Select all
.small, .createdate, .modifydate, .createby {
color: #888888;
font-size: 10px;
text-transform: uppercase;
}Code: Select all
display: none!important;Code: Select all
!important;- Jan
- 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?
Ok, thank you for the guide.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
vtjoanne
- Phoca Member

- Posts: 22
- Joined: 28 Jul 2012, 22:58
Re: How to hide the number of images in a category?
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,
Italy (34) - Any help would be appreciated.
thanks,
- Jan
- 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?
If you find Phoca extensions useful, please support the project
-
vtjoanne
- Phoca Member

- Posts: 22
- Joined: 28 Jul 2012, 22:58
Re: How to hide the number of images in a category?
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.
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.