SPECIAL OFFER: Only $69 for access to everything in OSTraining for 1 year! You save $75! 
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

How can I find the <h1> tag

5 years 6 months ago #123644 by photofixations
How can I find the <h1> tag was created by photofixations
I am using a joomlage template and unfortunately the support is kind of spotty. I have too many <h1> tags per page and one reason is that the company title is inheriting the <h1> tag. By using Firebug I see that it is in:

<div id="container_sidebar" class="sidebar">
<div id="sidebar">
<div id="logo">
<div class="logo_container">
<h1 class="logo-text">
<a title="" href="/index.php">
<span> Atlanta Internet Design </span>
</a>
</h1>

<p class="site-slogan">Complete Solutions For Small Businesses</p>
</div>
</div>
</div>
But I have not been able to find this in the file structure.

Also as far as SEO is concerned I was thinking that the title of my company should use something like:

<div itemscope>
<p class="site-name">Atlanta Internet Design</p>
</div>

Would that be the way to go??

Thanks

Please Log in to join the conversation.

5 years 6 months ago #123648 by Valentin
Replied by Valentin on topic How can I find the <h1> tag
Hi Bob,

The <h1> can be in many places like a module, from template settings, from the template files (see index.php as example).

Looking forward to help you

Kind regards,
Valentín

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

5 years 6 months ago #123653 by photofixations
Replied by photofixations on topic How can I find the <h1> tag
Hi Valentin,

After some digging (man I love Firebug) I found the following in: /home/atlan131/public_html/templates/joomlage0097-scene/php/layouts/sidebar.php

<div id ="sidebar">

<div id="logo">
<div class="logo_container">
<?php if($this->params->get('logoImage') == '1') : ?>
<div class="logoimage"> <a href="index.php" title="<?php echo $siteName; ?>"><span>
<?php echo $siteName; ?>
</span></a> </div>
<?php else : ?>

<h1 class="logo-text"> <a href="index.php" title="<?php echo $this->params->get('siteName'); ?>"><span>
<?php echo $this->params->get('logoText'); ?>
</span></a> </h1>

<p class="site-slogan"><?php echo $this->params->get('sloganText'); ?></p>
<?php endif; ?>
</div>
</div>

So I think what I want to is change it to something google will recognize as the company name.

<span itemprop="name">Atlanta Internet Design</span>

Would that be a proper solution or is there a better way such as making it an <h2>. I am using each page title as the <h1>

Thank you

Please Log in to join the conversation.

5 years 6 months ago - 5 years 6 months ago #123662 by Valentin
Replied by Valentin on topic How can I find the <h1> tag
Good find, Bob!

I would suggest to just switch to <h2> tag.

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!