Home  >  Article  >  CMS Tutorial  >  How to modify the font color of links in Empire CMS

How to modify the font color of links in Empire CMS

尚
Original
2019-07-30 15:04:002777browse

How to modify the font color of links in Empire CMS

Adding anchor text to the article will help readers immediately get explanations for words they don’t understand. In addition, many novice webmasters use online templates. When using the automatic anchor text adding function, the color of the anchored linked words is the same as other text, making it difficult to find and losing the "explanatory" effect it should have. . So here, we solve these problems for empire cms.

Log in to the Empire Backstage, click "Others" - "News Model Related" - "Manage Content Keywords" as shown below:

How to modify the font color of links in Empire CMS

on the right In the side area, start adding keywords. In the "Keywords" column, fill in the words you want to explain. For example, if the word "Baidu Experience" appears in the published article, and you want to explain it, then fill in the word in this column. Then, fill in the link address, or URL, of your article explaining the word "Baidu Experience" in the "Link Address" column. Finally, click the "Add" button. As shown in the picture:

How to modify the font color of links in Empire CMS

# At this point, the function of automatically adding anchor text to the article has been implemented. When you publish an article, if the article contains this word, the link will be automatically anchored. However, if you look at this article and find that the color of the word is the same as other words, it is not easy to find. The reader does not know that the word can be clicked to enter another page to get the explanation of the word. As shown in the picture:

How to modify the font color of links in Empire CMS

How to modify the font color of links in Empire CMS

##The method to modify the color of the connection text is as follows:

To solve this problem, we need to start with the code. First, find the code that controls the article page, "right-click" on the article page, and select "View web page source code" in the pop-up box to enter the code page. From the code page, we know that the style.css file controls the style of the entire article page and needs to be modified.

How to modify the font color of links in Empire CMS

According to the path /skin/default/css/style.css, we found the style.css file among the system files and opened it with Macromedia Dreamweaver8.0, such as Picture:

How to modify the font color of links in Empire CMS

Just add this code to the style.css file: a:link {color: #000000;text-decoration: underline;}. As shown in the picture:

How to modify the font color of links in Empire CMS

Okay, all the work has been completed. Now all we need to do is test to see if the word "Baidu Experience" displays a color. ok, successful, as shown in the picture:

How to modify the font color of links in Empire CMS

Recommended:

Empire cms website building tutorial

The above is the detailed content of How to modify the font color of links in Empire CMS. 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