How to change K2 item Title (mainbody) to H3

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
Sun May 05, 2013 11:07 am
Reply with quote
Report this post
Hey,

subj.

here is a link: http://nasledstvo.biz.ua/final/

I would like to change the title to H3.

Can you please give me some hints.

Thanks
User avatar
Fresh Boarder

GK User
Sun May 05, 2013 11:58 am
Reply with quote
Report this post
Hi, you should edit one on more files, depends in how many views k2 template you want changes.
For single item
gk_magazine\html\com_k2\templates\default\item.php
line: 92-96
Code: Select all
<h1> <?php echo $this->item->title; ?>
<?php if($params->get('itemFeaturedNotice') && $this->item->featured): ?>
<sup><?php echo JText::_('K2_FEATURED'); ?></sup>
<?php endif; ?>
</h1>


For category item
gk_magazine\html\com_k2\templates\default\category_item.php
User avatar
Platinum Boarder

GK User
Sun May 05, 2013 12:00 pm
Reply with quote
Report this post
p.s.
But I suggest to change size of font by css, h1 for titles are good for SEO
User avatar
Platinum Boarder

GK User
Sun May 05, 2013 12:51 pm
Reply with quote
Report this post
Pawel F wrote:p.s.
But I suggest to change size of font by css, h1 for titles are good for SEO


Front page article's title is h2 by default... I managed to change it to h3 by editing "latest_item.php".

I'd happily change it to h1 and adjust font size, but I've tried changing fonts in both template.css and k2.css and it didn't help. Maybe it has something to do with article being a part of mainbody.
User avatar
Fresh Boarder

GK User
Sun May 05, 2013 12:55 pm
Reply with quote
Report this post
oh it actually worked. I changed it to h1 in "latest_item.php" and then edited template.css

thank you
User avatar
Fresh Boarder


cron