Left margin after disable date

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Jul 17, 2014 2:57 am
Reply with quote
Report this post
Hi,

Is there a way to adjust the left margin of content to align to the title of a K2 item after disable the date, author, ... only on certain k2 categories?

In another post someone sugested to use css override, but this way i can´t show the date on other categories of the site.

Thanks in advance.

Semedo
--
Jommla 3.x
http://www.asterisco.com.pt/infancoop/
User avatar
Junior Boarder

GK User
Thu Jul 17, 2014 6:51 am
Reply with quote
Report this post
Doing it on certain categories might be impossible as you need to somehow find out which category that is, and from what I know Joomla doesn't tag with id or classes current category.
User avatar
Moderator

GK User
Thu Jul 17, 2014 4:18 pm
Reply with quote
Report this post
Cyberek wrote:Doing it on certain categories might be impossible as you need to somehow find out which category that is, and from what I know Joomla doesn't tag with id or classes current category.


You are right, maybe one possible solution is turning the DIV´s expandable or collapsed, because setting the display to none and margin left to 0 (like sugested in https://www.gavick.com/forums/startup-j ... 20761.html) will disable the date in all k2 itens and articles.

Another possible solution is to enclose the DIV in an IF statemant in ../templates/gk_startup/html/com_k2/templates/default/item.php
but i'm not confortable doing it because i don't have solid template programming skills.
User avatar
Junior Boarder

GK User
Thu Jul 17, 2014 8:44 pm
Reply with quote
Report this post
Thanks to your suggestion (https://www.gavick.com/forums/startup-j ... 37783.html) i found a solution, creating a new class (noticias) via joomla menu and addind the following code in overrride.css

Code: Select all
article.noticias aside {display: block !important; }
article.noticias aside + .k2box { margin-left: 168px !important; }

article aside {display: none; }
aside + .k2box { margin-left: 0px; }


Thanks for your help.

Semedo
User avatar
Junior Boarder

GK User
Fri Jul 18, 2014 9:17 am
Reply with quote
Report this post
Where did you add this class in Joomla admin?
User avatar
Moderator

GK User
Fri Jul 18, 2014 10:15 pm
Reply with quote
Report this post
Cyberek wrote:Where did you add this class in Joomla admin?


Yes, i added a page class in the menu item linked to the k2 categorie that i want to show date, author ...
User avatar
Junior Boarder

GK User
Mon Jul 21, 2014 10:01 am
Reply with quote
Report this post
Oh, clever idea :). I haven't thought it is even possible ;).
User avatar
Moderator


cron