Jump to content
Sign in to follow this  
kswaters

How to add alt-text to main logo for SEO

Recommended Posts

kswaters

Hi, I'm wondering how to add an alt-text property to the main logo for SEO purposes? Kelly.

Share this post


Link to post
Share on other sites
kswaters

PS I'd also like to wrap post titles in <h1> tags, again for SEO purposes - please could someone let me know how to do this? Many thanks Kelly.

Share this post


Link to post
Share on other sites
Andrew

Hey Kelly, The logo should use your site name as the alt text on the logo. As for the post titles, the experts tell us `h2` tags are appropriate for use as they are generally the lowest order tag on the page. We can look at applying an `h1` tag to them on `single post` pages if you have some literature on it for us :)

Share this post


Link to post
Share on other sites
kswaters

Hi Andrew. I would ideally like to change the alt-text of the logo so it includes my site name and a brief description. Is it possible to do that? Re the h1 and h2 tags, ideally for SEO every page should have a single h1 and then multiple h2's to denote the subheadings on the page. Therefore on a single post page the ideal structure is to have an h1 on the post title. The reason that it's not best to have the h1 on the site name is because the h1 should ideally be unique for every page. Putting it on the post title achieves that very nicely. I can probably find you some documentation, but this is something I do for a living, not just for my personal blog, so I can tell you with some confidence that this is best practice. My day job is Web Technology Director for a large media company running some of the UK's largest consumer web sites. Anyhow, is it something I can change for my blog only if you don't want to change it for everyone? Kelly.

Share this post


Link to post
Share on other sites
Andrew

Kelly, yes you can change it for your blog but it will get technical... We can probably change the h2 tags on the single post pages to h1's in the theme, if that is better practice. As for the logo, you'll need to hack the section which I don't recommend until at least version 1.2.5 coming out it about 1 month. You could also just change your blog name if you aren't using this elsewhere.

Share this post


Link to post
Share on other sites
kswaters

Hi Andrew. Best practice is definitely one unique h1 per page. When you say technical, is it more technical than editing one of the template files and putting an <h1> tag around the bit that returns the title text? I won't change my blog name as it's used in the SEO title of all the pages and it would make it too long. Many thanks for your help... Kelly.

Share this post


Link to post
Share on other sites
Kate

@Kelly - If you're anxious to get things changed as opposed to waiting for 1.2.5 (Andrew's suggestion), you can edit your header file for the logo, and template.postloop.php in order to replace the h1s. I recommend copying these files to your child theme and making the edits there. All the best, Kate

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×