Move display of "Published In" in K2 item

GK User
Thu Jan 17, 2013 10:52 am
Is it possible to change the code so that the "Published in...(category)" text, found at the bottom right of a K2 item page, appears under the item title at the top of the page?

Not sure which css file to look in
User avatar
Senior Boarder

teitbite
Fri Jan 18, 2013 4:53 am
Hi

It is possible, but You need to do this manualy. Please edit /html/com_k2/templates/default/item.php find code for "published in", cut it and paste in a new location You want to have it.
User avatar
Moderator

GK User
Fri Jan 18, 2013 11:57 am
That worked perfectly - many thanks for your speedy help.

I'd now like to remove the wording "PUBLISHED IN" and change the font size of the category name.

If you could let me know which file to edit that would be great. Many thanks - A
User avatar
Senior Boarder

teitbite
Sat Jan 19, 2013 3:13 am
Hi

To help with that I will need to see an example of a page where You have it.
User avatar
Moderator

GK User
Sat Jan 19, 2013 10:41 am
andypepper wrote:That worked perfectly - many thanks for your speedy help.

I'd now like to remove the wording "PUBLISHED IN" and change the font size of the category name.

If you could let me know which file to edit that would be great. Many thanks - A



Attached is a screen grab of the top of a K2 item page.

Category title.jpg


I've used the code you gave me to move the ("Published in" category title) to the top of the page. I'd now like to change/delete the words "Published in" and make the category title (Margaret Benyon) larger.

Best - Andy
User avatar
Senior Boarder

teitbite
Sun Jan 20, 2013 10:38 am
Hi

By example I meant an url to the page You have made changes requested already.

Anyway by looking at demo please try code:

Code: Select all
.itemHeader .itemTitle, .genericItemTitle, .catItemHeader .catItemTitle {
    font-size: 32px;
}

.itemCategory span {
    display: none;
}
User avatar
Moderator

GK User
Tue Jan 22, 2013 10:56 am
teitbite wrote:Hi

Anyway by looking at demo please try code:

Code: Select all
.itemHeader .itemTitle, .genericItemTitle, .catItemHeader .catItemTitle {
    font-size: 32px;
}

.itemCategory span {
    display: none;
}


Many thanks for your help with this. The code worked perfectly to remove the item category display "Published In" text unfortunately the size of the item title did not change. Is there another solution? - A
User avatar
Senior Boarder

teitbite
Wed Jan 23, 2013 2:12 am
Hi

Please show me Your site. I've probably chacked wrong element looking at the demo.
User avatar
Moderator

GK User
Thu Jan 24, 2013 11:59 am
teitbite wrote:Hi

Please show me Your site. I've probably chacked wrong element looking at the demo.



I've sent you a private message with access details to the site as it is not public yet.

Many thanks - Andy
User avatar
Senior Boarder

teitbite
Fri Jan 25, 2013 8:52 pm
Hi

Sorry, I haven't got it. Can You please send it one more time.
User avatar
Moderator

teitbite
Sat Jan 26, 2013 6:57 pm
Hi

I got the access now, but it's keep asking me for password and site is not visible. Can You please lift this restriction for a while so I'll check the link and tell You the exact code ?
User avatar
Moderator

GK User
Sat Jan 26, 2013 8:00 pm
teitbite wrote:Hi

I got the access now, but it's keep asking me for password and site is not visible. Can You please lift this restriction for a while so I'll check the link and tell You the exact code ?



Sorry about that. I did send you the login details in the private message. I have lifted the restrictions on the site so it is now accessible. Thanks again for your help - Andy
User avatar
Senior Boarder

teitbite
Sun Jan 27, 2013 10:24 am
Hi

To hide PUBLISHED IN use this code:

Code: Select all
.itemCategory span { display: none; }


To resize item title please use the below one:

Code: Select all
#k2Container .itemHeader .itemTitle {
    font-size: 20px;
}
User avatar
Moderator

GK User
Sun Jan 27, 2013 7:00 pm
Many thanks for this.

The code worked to remove the wording "Published in" but the font size of the k2 category title does not change. I changed it to 40px using the code you provided but this does not show on the site.

Is there another solution. Best - Andy
User avatar
Senior Boarder

teitbite
Mon Jan 28, 2013 12:19 pm
Hi

Try force using thsi value by adding !important at the end. Like this:

Code: Select all
#k2Container .itemHeader .itemTitle {
    font-size: 50px !important;
}
User avatar
Moderator

GK User
Wed Jan 30, 2013 12:07 pm
Thanks so much! That worked perfectly. All the best - Andy
User avatar
Senior Boarder


cron