Home  >  Article  >  CMS Tutorial  >  How to add alt anchor text information to the thumbnail of the Dreamweaver list

How to add alt anchor text information to the thumbnail of the Dreamweaver list

王林
王林Original
2019-11-15 11:12:432158browse

How to add alt anchor text information to the thumbnail of the Dreamweaver list

Add steps:

Open the file list_article.htm and find the following code:

<img src=&#39;{@me[&#39;litpic&#39;]}&#39; />

Modify to the following code :

<img src=&#39;{@me[&#39;litpic&#39;]}&#39; alt=&#39;{@me[&#39;title&#39;]}&#39;/>

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

Solution:

Open the file include/arc.listview.class.php and find the following code

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

Change the above code to the following code:

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

In this way, the alt anchor text information is added to the dedecms list thumbnail and it is completed.

Recommended tutorial: dedecms tutorial

The above is the detailed content of How to add alt anchor text information to the thumbnail of the Dreamweaver list. 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