Click here to Skip to main content
14,110,039 members
Rate this:
Please Sign up or sign in to vote.
See more:
Ii am doing onpage optimization of some websites.Here's how i am doing it right now

1) Raven seo tool gives me url and code which doesnt have
alt and title tag. Like logo1.png .

2) I check source code of page, check where logo1.png is located. Than, i make wild guess whether it is in header, footer or somewhere else.

3) Now, sometime i go to appearance>>editor and check all the pages. Logo1.png doesnt appear at all. Instead, i see php codes there. (I dont know php). But, i see <img tag and i just put alt and title there.

So, my question is , is there some simple way to look at source code of page and deduce where should i go to edit that specific code?

I am pretty sure there must be better way to do it.

Also, my other question is, in editor there are headers, footers pages. Where is code for full page located?

Any wordpress plugin to make my life easy?

Sinisa Hajnal 16-Oct-14 9:06am
You probably have one page named default or something, but all you will see there is call to various parts of the page...there is no single page that holds all of the page code. That's PHP for you :)

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Different WordPress themes handle the inclusion of PHP code, and the generated HTML content from that code, differently depending on the theme author. Quite often, and wrongly, theme authors do not include alt or title tags when they should for images related to themes like logos, etc.

To correct those you usually have to identify the PHP blocks that handle the image insertion and modify them to include the alt tag and descriptions.

However, for SEO purposes, featured images and in-content images already have alt tag support built in, and they are more important then a logo or some extraneous image used for layout purposes. I wouldn't sweat it too much if you are missing alt for an image here and there, but generally all images should have them.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.190518.1 | Last Updated 10 Dec 2014
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100