Home > CMS Tutorial > DEDECMS > body text

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

王林
Release: 2019-11-15 11:12:43
Original
2176 people have browsed it

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; />
Copy after login

Modify to the following code :

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

After modification, a new problem appeared. That is, when an article is recommended, the code has an additional title 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>";
Copy after login

Change the above code to the following code:

$row[&#39;title&#39;] = $row[&#39;title&#39;];
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!