search
HomeCMS TutorialDEDECMSHow to add alt attribute to article thumbnail on DreamWeaver cms list page

How to add alt attribute to article thumbnail on DreamWeaver cms list page

How to add the alt attribute to the article thumbnail on the DreamWeaver cms list page?

How to add alt attributes to the article thumbnails on the list page of Dreamweaver cms

Recommended learning: Dreamweaver cms

This method, It can better improve the related settings of on-site optimization, just like the automatic ALT annotation plug-in for article pictures we developed, which is also conducive to image optimization to bring traffic.

Existence of problems

The thumbnail image of the default DedeCms default list page lacks the ALT attribute, which is poor for search engines to recognize the image.

Solution

Find How to add alt attribute to article thumbnail on DreamWeaver cms list page in the list_article.htm list page template and add it ALT attribute.

After modification: {@me[

Note: By the way, the width and height attributes are added to the image.

After the modification, a new problem appeared. That is, when an article is recommended, the code has an additional tag.

Solution:

Modify the /include/arc.listview.class.php file and find the following code (v5.6 is line 745)

$row[&#39;title&#39;] = "<b>".$row[&#39;title&#39;]."</b>";

Modify to:

$row[&#39;title&#39;] = $row[&#39;title&#39;];

The above is the detailed content of How to add alt attribute to article thumbnail on DreamWeaver cms list page. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.