Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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?

thanks
Posted
Comments
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

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900