Home > Article > CMS Tutorial > 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:
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:
# 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:
##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. 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: Just add this code to the style.css file: a:link {color: #000000;text-decoration: underline;}. As shown in the picture: 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: 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!