-
AuthorPosts
-
November 2, 2015 at 7:40 pm #721069
Hello,
I just checked a random single article pages on my website which is using T3 bs3 blank template, and I see that my article titles are not in the <H1> tags which is not so good for my SEO..
I then checked the T3 bs3 demo, and can see that it uses <H1> tags for titles, for example here: http://demo.t3-framework.org/joomla30/index.php/en/joomla-pages/sample-page-1/single-articles
How can I change the structure of the H tags (h1, h2, h3, etc..) so that I obtain the same result as the T3 bs3 demo?
Thank you for your help.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 3, 2015 at 4:18 am #721177Hi Larry,
I’m not sure which template are you using but as I can see that most of pages on your site is using K2 while in demo site of T3 BS3 , it’s using Joomla content.
The point is that K2 uses <h2> tag for item title, if you want to change to <h1> tag, you can try this way:
– Open the file: /root/templates/your_default_template/html/com_k2/default/item.php (if template doesn’t override K2 item, you can copy file: /root/components/com_k2/templates/default/item.php into above folder)
– Look for code that generates title:
<?php if($this->item->params->get('itemTitle')): ?>
<!-- Item title -->
<h2 class="itemTitle">
<?php if(isset($this->item->editLink)): ?>
<!-- Item edit link -->
<span class="itemEditLink">
<a class="modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $this->item->editLink; ?>">
<?php echo JText::_('K2_EDIT_ITEM'); ?>
</a>
</span>
<?php endif; ?><?php echo $this->item->title; ?>
<?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?>
<!-- Featured flag -->
<span>
<sup>
<?php echo JText::_('K2_FEATURED'); ?>
</sup>
</span>
<?php endif; ?></h2>
<?php endif; ?>
Then you simply replace <h2> tab by <h1> tag.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 3, 2015 at 4:18 am #753579Hi Larry,
I’m not sure which template are you using but as I can see that most of pages on your site is using K2 while in demo site of T3 BS3 , it’s using Joomla content.
The point is that K2 uses <h2> tag for item title, if you want to change to <h1> tag, you can try this way:
– Open the file: /root/templates/your_default_template/html/com_k2/default/item.php (if template doesn’t override K2 item, you can copy file: /root/components/com_k2/templates/default/item.php into above folder)
– Look for code that generates title:
<?php if($this->item->params->get('itemTitle')): ?>
<!-- Item title -->
<h2 class="itemTitle">
<?php if(isset($this->item->editLink)): ?>
<!-- Item edit link -->
<span class="itemEditLink">
<a class="modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $this->item->editLink; ?>">
<?php echo JText::_('K2_EDIT_ITEM'); ?>
</a>
</span>
<?php endif; ?><?php echo $this->item->title; ?>
<?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?>
<!-- Featured flag -->
<span>
<sup>
<?php echo JText::_('K2_FEATURED'); ?>
</sup>
</span>
<?php endif; ?></h2>
<?php endif; ?>
Then you simply replace <h2> tab by <h1> tag.
-
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by Saguaros 9 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum