Removing block for date in J 2.5

GK User
Tue Jan 31, 2012 9:38 am
In J1.7 i find the solution, but for J 2.5 it is not working anynore. How do i do this?
User avatar
Platinum Boarder

GK User
Tue Jan 31, 2012 11:16 am
Hi,

Can you please specify your question, which date block you want to remove, can you take a screenshot to show me then I can help you out?

Thanks,
User avatar
Platinum Boarder

GK User
Tue Jan 31, 2012 12:17 pm
Here is the image
Untitled-1.jpg
User avatar
Platinum Boarder

GK User
Tue Jan 31, 2012 1:57 pm
Hi.
Please go to k2.css file and find there the following line:
Code: Select all
 .itemDate {
float: left;
padding: 16px 0 0;
width: 67px;
height: 51px;
line-height: 18px;
text-align: center;
background: url('../images/date.png') no-repeat 0 0;
}

Then edit it to:
Code: Select all
 .itemDate {
display: none;
float: left;
padding: 16px 0 0;
width: 67px;
height: 51px;
line-height: 18px;
text-align: center;
background: url('../images/date.png') no-repeat 0 0;
}
User avatar
Platinum Boarder

GK User
Tue Jan 31, 2012 2:21 pm
Thank you very much! Now thr problem is the text which is aligned on the keft of the template.
I'll send you an image
aaaaaaa.jpg
User avatar
Platinum Boarder

GK User
Tue Jan 31, 2012 4:12 pm
Please edit the same css file and find the following line:
Code: Select all
 .itemHeader .itemTitle, .genericItemTitle {
margin: 0 0 0 98px;  //set last value to 0px if you wat to align text to left side.
padding: 6px 0 0;
color: #333;
font-size: 36px;
line-height: 100%;
text-transform: uppercase;
position: relative;
}
User avatar
Platinum Boarder

GK User
Wed Feb 01, 2012 1:54 pm
Thank you! It works!

Topic Solved
User avatar
Platinum Boarder

GK User
Wed Feb 01, 2012 2:15 pm
I'm glad I could help.
See you around...
User avatar
Platinum Boarder

GK User
Tue Feb 14, 2012 11:17 am
This method did not work for me. I have even gone as far as deleting the date.gif from the images folders but it keeps on showing! Any help?

As you can see the date is still stuck there and it looks kind of ugly!

http://horisont.org/joomla25/index.php/ ... n-horisont

Best regards,
User avatar
Senior Boarder

GK User
Tue Feb 14, 2012 11:43 am
You can add following code in "templates/gk_boutique/css/override.css" file. Make sure override feature is enabled from template settings > Advanced Settings > Css Override " On ".

Code: Select all
/* Hiding Date */
.itemDate { display:none; }
/* Moving Title to left */
.itemHeader .itemTitle, .genericItemTitle { margin-left: 10px; }
/* Moving Print and Email buttons to left */
.itemToolbar ul { margin-left:10px; }


See you around...
User avatar
Platinum Boarder

GK User
Tue Feb 14, 2012 12:01 pm
normanUK wrote:You can add following code in "templates/gk_boutique/css/override.css" file. Make sure override feature is enabled from template settings > Advanced Settings > Css Override " On ".

Code: Select all
/* Hiding Date */
.itemDate { display:none; }
/* Moving Title to left */
.itemHeader .itemTitle, .genericItemTitle { margin-left: 10px; }
/* Moving Print and Email buttons to left */
.itemToolbar ul { margin-left:10px; }


See you around...

Hi normanUK, thanks for your quick reply. Your suggestion did the trick like charm!

Btw, this feature could be much better if it was included in the parameters. Am sure it will save a lot of headache/s:=))

Best regard!
User avatar
Senior Boarder

GK User
Tue Feb 14, 2012 12:14 pm
Hi Horisont,

Such features are already in templates custom styles for components, our custom page styles do check if k2 parameters are on or off then render html for that section however in this case the check was done whether the "Article title" was on or off.

I am not sure if this was a bug or coded that way due to custom style in date section. Regardless glad this worked for you. If you need further help please post in our forums.

See you around...
User avatar
Platinum Boarder


cron