如何在wordpress图像中添加alt,title标签 [英] how do you add alt , title tag in wordpress images

查看:125
本文介绍了如何在wordpress图像中添加alt,title标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在对某些网站进行网页优化。这就是我现在正在做的事情



1)Raven seo工具给我的网址和代码没有

alt和标题标签。喜欢logo1.png。



2)我查看页面的源代码,检查logo1.png的位置。然后,我猜测它是在页眉,页脚还是其他地方。



3)现在,有时我会去外观>>编辑并检查所有页面。 Logo1.png根本没有出现。相反,我在那里看到PHP代码。 (我不知道php)。但是,我看到< img标签,我只是把alt和标题放在那里。





所以,我的问题是,是否有一些简单的方法来查看页面的源代码并推断我应该去哪里编辑具体的代码?



我很确定必须有更好的方法来做到这一点。



另外,我的另一个问题是,在编辑器中有页眉,页脚页面。整页代码在哪里?



任何wordpress插件让我的生活变得轻松?



谢谢

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

推荐答案

不同的WordPress主题处理包含PHP代码以及从该代码生成的HTML内容,具体取决于主题作者。经常和错误地,主题作者不应该包括alt或标题标签,因为它们应该用于与徽标等主题相关的图像。



要纠正那些你通常拥有的识别处理图像插入的PHP块并修改它们以包含alt标记和描述。



但是,出于搜索引擎优化的目的,特色图像和内容图像已经内置了alt标签支持,它们比标识或使用的一些无关图像更重要用于布局目的。如果你在这里和那里缺少一个图像的alt,我就不会出汗太多,但通常所有图像都应该有它们。
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.


这篇关于如何在wordpress图像中添加alt,title标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆