-
AuthorPosts
-
June 12, 2010 at 9:32 pm #151756
Hi, I have template, and my template index.php has this code:
<!-- BEGIN: HEADER -->
<div id="ja-header" class="clearfix">
<h1>
<a href="index.php">
<script type="text/javascript">
od_displayImage('sitelogo', '<?php echo $tmpTools->templateurl();?>/images/logo-bellatrix', 247, 50, '', '<?php echo $tmpTools->sitename();?>');
</script>
</a>
</h1>This is shown in my site source code (I’m concerned that is has H1 tags).
I have made my own H1 head modication as told in this guide:
http://www.newworlddesigns.co.uk/blog/joomla-contentheading-h1-with-no-core-hack/My article is shown as :
<td class="contentheading" width="100%"><h1 style="font-size: 1em; ">
<a href="/section_name/category_name/48-My-article-title-here.html" class="contentpagetitle"> My-article-title-here</a> </td>Since there can be only 1 H1 tag can I remove the http://www.joomlart.com code? I mean how do I need to change it?
June 22, 2010 at 2:24 pm #347729Not sure i understand your question can you rephrase it?
Regards
NikJune 22, 2010 at 11:04 pm #347760Why would joomaart put H1 for logo image when it should be left for article headings??
See my solutions here http://forum.joomla.org/viewtopic.php?f=544&t=524841
I’m using is as H6, Can anyone tell me if I can use it like H10 or how many header types are there?
Also this this means that Google will find first H6 then H1 on my page doesn’t the order matter?nefar Friendnefar
- Join date:
- December 2007
- Posts:
- 434
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 78
- Thanked:
- 42 times in 1 posts
June 24, 2010 at 3:26 pm #347981Far as I know only up to h6 as for the order you should be o.k.
As far as joomlart using h1 for a logo image that is kind of odd but they don’t advertise SEO friendly templates. H1 is normally used for title or article head and then h2+ for sub headings and so forth. That being said, just having some H tags in a non optimal order won’t you since there are many factors that contribute to your overall ranking,October 27, 2010 at 9:37 am #360744I belive there are only six of them: H1 .. H6. There is no restriction on how many H1 tags can be on a single page, but sure it is better that you use only one for a SEO reason.
If it is a logo image than simply delete <h1> and </h1> tags.
You can leave h1 tag and put a main keyword for a Logo if you use text instead of image.
thatcomputerdude Friendthatcomputerdude
- Join date:
- December 2008
- Posts:
- 280
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 67
- Thanked:
- 32 times in 1 posts
November 2, 2010 at 2:14 pm #361416This should be set as a DIV ID tag and not a H tag.
November 25, 2010 at 3:43 am #364198I don’t understand why you use H1 tag for logo image ?. it’s better use h1 for titile article or you can remove logo and put a main keyword in this.
April 28, 2011 at 7:37 am #388740There is no need of adding H1 tag on the logo image. H1 represents the main heading of the webpage so i suggest you to add h1 tag on your main heading not on the website logo.
shriyakaif Friendshriyakaif
- Join date:
- May 2011
- Posts:
- 5
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 1 times in 2 posts
May 17, 2011 at 8:26 pm #391686There is no rule anywhere under Google guidelines it says thay you can use only 1 h1 tag. Even Matt Cutts, the head of web spam team of Google had a question answered on Google webmasters official channel on youtube that there can be no harm on having more than 1 h1 tags. The point that he noted out was that it can only affect the look of your site.
July 22, 2011 at 1:39 pm #402548H1/H2… tag is use for tell to Google about your keywords priority. It is not use for logo or images. For images you will use div, alt.. etc tags. If you H1/H2.. with image, then remove it and then use right tags for it.
jamboo Friendjamboo
- Join date:
- March 2011
- Posts:
- 10
- Downloads:
- 53
- Uploads:
- 0
- Thanks:
- 2
- Thanked:
- 2 times in 2 posts
July 31, 2011 at 4:10 pm #403800Just fix it yourself see here http://www.joomlart.com/forums/topic/why-is-joomlart-placing-site-title-and-slogan-in-h1-tags/
Solution by Dat Hoang 🙂
All of joomlart templates are placing the logo,site name and slogan in H1-tags, regarding the article titles I am afraid that they are render by the content component of the joomla core and you can change it in the template override as below
Go to templates/your_template/html/com_content/default.php file,Looking for the H2 Tag and change it to H1 as you want.
Tip from Jamboo
I changed also in the: templane name/layouts/blocks/header.php the H1 Tag from the logo to H2.
Now you also need to change this in CSS. Go to your template.css and find the logo style:
I changed it into this ( just replace h1 by h2)
h2.logo, div.logo-text h2 { font-size: 250%; line-height: 1; margin: 15px 0 0; }
h2.logo, div.logo-text { float: left; }
/* Logo Image —*/
h2.logo { height: 0px; width: 0px; }
h2.logo a {
background: url(../images/logo.jpg) no-repeat left center;
display: block;
height: 0px;
width: 0px;
}
h2.logo a span { position: absolute; top: -1000px; }
Good luck
Jamboo
October 15, 2011 at 7:29 pm #419547H1 tag is use for optimization of website in search engine like google, yahoo etc.
November 5, 2011 at 5:53 pm #423346<em>@jamboo 256657 wrote:</em><blockquote>Just fix it yourself see here http://www.joomlart.com/forums/topic/why-is-joomlart-placing-site-title-and-slogan-in-h1-tags/
Solution by Dat Hoang 🙂
All of joomlart templates are placing the logo,site name and slogan in H1-tags, regarding the article titles I am afraid that they are render by the content component of the joomla core and you can change it in the template override as below
Go to templates/your_template/html/com_content/default.php file,Looking for the H2 Tag and change it to H1 as you want.
Tip from Jamboo
I changed also in the: templane name/layouts/blocks/header.php the H1 Tag from the logo to H2.
Now you also need to change this in CSS. Go to your template.css and find the logo style:
I changed it into this ( just replace h1 by h2)
h2.logo, div.logo-text h2 { font-size: 250%; line-height: 1; margin: 15px 0 0; }
h2.logo, div.logo-text { float: left; }
/* Logo Image —*/
h2.logo { height: 0px; width: 0px; }
h2.logo a {
background: url(../images/logo.jpg) no-repeat left center;
display: block;
height: 0px;
width: 0px;
}
h2.logo a span { position: absolute; top: -1000px; }
Good luck
Jamboo</blockquote>
Thanks for information……….
November 16, 2011 at 6:31 am #424831I noticed that you are using Javascript on the H1 tag, that is a dynamic script is running to echo (output) the value. I would say you avoid the Javascript and use simlpy html to place the image or a text on behalf.
April 19, 2012 at 12:27 pm #449115I agree with hotelogix’s reply, no need to add h1 in the anchor text use h1 only for your main heading and only once in a page.
<em>@hotelogix 237157 wrote:</em><blockquote>There is no need of adding H1 tag on the logo image. H1 represents the main heading of the webpage so i suggest you to add h1 tag on your main heading not on the website logo.</blockquote>
-
AuthorPosts
This topic contains 17 replies, has 15 voices, and was last updated by jamboo 12 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum