H1 tag with article's title

Professional Jomal template designed to be easily adaptable to all kinds of business
GK User
Mon Mar 26, 2012 2:21 pm
Hello,

Why your templates do not use the H1 tag for the title of the articles ?

I see you use the h2 tag yet it seems that the quality SEO requires the use of the h1 tag.

Do I have to change it ?

Thank you to inform me.
User avatar
Fresh Boarder

GK User
Mon Mar 26, 2012 2:30 pm
Hi,

I'm not sure if using H1 helps for SEO quality but if you want to change, you can do as following:

- Open file: \templates\gk_corporate2\html\com_content\article\default.php

- Find:
Code: Select all
<?php if ($params->get('show_title')|| $params->get('access-edit')) : ?>
      <h2>
            <?php if ($params->get('link_titles') && !empty($this->item->readmore_link)) : ?>
            <a href="<?php echo $this->item->readmore_link; ?>">
                  <?php echo $this->escape($this->item->title); ?></a>
            <?php else : ?>
                  <?php echo $this->escape($this->item->title); ?>
            <?php endif; ?>
      </h2>
<?php endif; ?>

- Change to:
Code: Select all
<?php if ($params->get('show_title')|| $params->get('access-edit')) : ?>
      <h1>
            <?php if ($params->get('link_titles') && !empty($this->item->readmore_link)) : ?>
            <a href="<?php echo $this->item->readmore_link; ?>">
                  <?php echo $this->escape($this->item->title); ?></a>
            <?php else : ?>
                  <?php echo $this->escape($this->item->title); ?>
            <?php endif; ?>
      </h1>
<?php endif; ?>
User avatar
Platinum Boarder

GK User
Mon Mar 26, 2012 2:38 pm
Thanks.

I have seen on the same file you are using already a h1 tag

<h1>
<?php echo $this->escape($this->params->get('page_heading')); ?>
</h1>

For what is it used ? I don't see that h1 tag in any code source of pages ?

And i have seen that the h1 tag has to be used once only.

Thanks for explanation.

ea
User avatar
Fresh Boarder

GK User
Mon Mar 26, 2012 2:42 pm
Sorry : i found myself the answer.

Good day.

ea
User avatar
Fresh Boarder

GK User
Mon Mar 26, 2012 3:03 pm
No problem at all, just feel free to let me know if you need any other helps.

Cheers,
User avatar
Platinum Boarder


cron