Showing / Hiding a class

Support help forum dedicated to free and commerical templates for Joomla 3 and 2.5 version.
GK User
Wed Jul 18, 2012 9:22 pm
I want to show / hide a class depending on if the view is the Item View or the Category List view. I think I can do that with php, but which php file and does anyone have an example for me? I'm not an expert in css/php but I know enough. Thanks in advance.

Al

template: MyFolio
version: Joomla 2.5
User avatar
Fresh Boarder

Konrad M
Fri Jul 20, 2012 10:29 am
Hi,
You are talking about item and category view for k2 items or joomla articles ?
User avatar

GK User
Fri Jul 27, 2012 6:01 pm
K2 items, sorry.

By posting on some other forums, I'm seeing that something like

Code: Select all
#catItemBody .vimeoclass {display:hidden;}
#ItemBody .vimeoclass {display:visible;}


might work. But this is for an ID selector. I want to say "whenever the class vimeoclass is found within catItemBody (or catIntroText, I imagine) then hide it."

putting this in my override.css didn't work either:
Code: Select all
.catItemBody.vimeoclass {display:hidden;}


Thanks in advance for your help!

Al
User avatar
Fresh Boarder

GK User
Fri Jul 27, 2012 6:48 pm
Figured it out. I added this to my override.css:

Code: Select all
div.catItemIntroText .VideoEmbeddedCustom {display:none;}
div.ItemBody .VideoEmbeddedCustom {display:visible;}


Woohoo!

Al
User avatar
Fresh Boarder


cron