How to keep article title in h1 on home page

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
Sat Oct 18, 2014 7:08 am
Reply with quote
Report this post
Hello,

I would like to keep article title in h1 on home page. How do I do this? When I see my page source code on home page, I don't see any tag for h1.

URL - gagity.com
User avatar
Expert Boarder

GK User
Sat Oct 18, 2014 7:50 am
Reply with quote
Report this post
Currently template uses H2 tags for titles, if you want to use H1 tags you need to edit template file.
Find file: \templates\gk_cloudhost\html\com_k2\templates\default\category_item.php
Lines: 26 & 35
Replace h2 with h1 ( which is first line and last line in below example code )
Code: Select all
                  <h2>
                        <?php if ($this->item->params->get('catItemTitleLinked')): ?>
                        <a href="<?php echo $this->item->link; ?>"><?php echo $this->item->title; ?></a>
                        <?php else: ?>
                        <?php echo $this->item->title; ?>
                        <?php endif; ?>
                        <?php if($this->item->params->get('catItemFeaturedNotice') && $this->item->featured): ?>
                        <sup><?php echo JText::_('K2_FEATURED'); ?></sup>
                        <?php endif; ?>
                  </h2>
User avatar
Platinum Boarder


cron