search
HomeCMS TutorialEmpire CMSHow to modify the font color of links in Empire CMS

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

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 Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.