"."/> ".">
search
HomeCMS TutorialDEDECMSHow to add anchor text to DEDECMS links

How to add anchor text to DEDECMS links

Nov 16, 2019 am 09:57 AM
dream weaving

How to add anchor text to DEDECMS links

How to add anchor text to DEDECMS links?

How to modify anchor text to DEDECMS friendly links

Basic introduction to anchor text:

Or called anchor text link , hypertext link, the English name is anchor text. Anchor text actually establishes the relationship between text keywords and URL links. The code of the anchor text: Text keywords> ;. Anchor text can be used as an evaluation of the content of the page where the anchor text is located.

Normally speaking, the links added to the page will have a certain relationship with the content of the page itself.

Clothing industry websites will add links to some peer websites or links to some well-known clothing companies; on the other hand, the anchor text can be used as an evaluation of the page it points to.

Anchor text can accurately describe the content of the page pointed to. Links added to personal websites and links added to "search engine" pages with anchor text should generally be directly related to the page. Search The engine can determine the content attributes of a web page based on the anchor text description of the link pointing to the web page. Anchor text also plays a role in search engines by collecting some files that cannot be indexed by search engines.

Recommended learning: dedecms tutorial

The role of anchor text in optimization:

Anchor text is a very important web page Optimization method, adding appropriate anchor text to the web page will increase the importance of the keywords of the web page and the web page it points to, thus affecting the keyword ranking. The effect of anchor text on optimization is mainly reflected in the following aspects:

1. The effect on the page where the anchor text is located

Normally speaking, the link anchor text added to the page is the same as the page There is a certain relationship in itself, so the anchor text can be used as an evaluation of the content of the page where the anchor text is located. For example: this article contains a link to "optimization", then it means that this article has a certain relationship with optimization.

2. The effect of the anchor text on the page pointed to

The anchor text can accurately describe the content of the pointed page. Therefore, the anchor text can be used as an evaluation of the content of the pointed page.

3. The impact of anchor text on keyword ranking

Generally speaking, the anchor text links added to the page should be relevant to the page, which can improve the ranking of the page and the page it refers to. Anchor text keyword ranking in search engines.

4. Collect some files that cannot be indexed by search engines

For some files or web pages that cannot be indexed by search engines, anchor text just acts as a bridge. Search engine spiders link through the anchor text of the page. Address, crawl to another web page, so that search engines can index the web content and files of the pointed page.

DEDE friendly link anchor text link, how to modify the anchor text to the DEDE link:

Getting to the point, DEDECMS friendly links originally do not have anchor text. A simple summary of the effect of anchor text links:

means that when you move the mouse to a hyperlink and stay there, some words will be displayed after a while, which is the anchor text effect.

You can check whether the friendly links in the default template of DEDECMS will not display another line of text when you move the mouse to the hyperlink. Now you will understand the effect of the friendly links on the homepage.

The modification method of this effect is as follows:

Find the file and find the following code:

while($dbrow=$dsql->GetObject()) 
 { 
  if($type=='text'||$type=='textall') 
  { 
   $link = "<a href=&#39;".$dbrow->url."&#39; target=&#39;_blank&#39;>".cn_substr($dbrow->webname,$titlelen)."</a> "; 
  } 
  else if($type==&#39;image&#39;) 
  { 
   $link = "<a href=&#39;".$dbrow->url."&#39; target=&#39;_blank&#39;><img  src=&#39;".$dbrow- alt="How to add anchor text to DEDECMS links" >logo."&#39; width=&#39;88&#39; height=
&#39;31&#39; border=&#39;0&#39;></a> "; 
  } 
  else 
  { 
   if($dbrow->logo==&#39;&#39;) 
   { 
    $link = "<a href=&#39;".$dbrow->url."&#39; target=&#39;_blank&#39;>".cn_substr($dbrow->webname,$titlelen)."</a> "; 
   } 
   else 
   { 
    $link = "<a href=&#39;".$dbrow->url."&#39; target=&#39;_blank&#39;><img  src=&#39;".$dbrow- alt="How to add anchor text to DEDECMS links" >logo."&#39; width=&#39;88&#39; height=&#39;31&#39;
 border=&#39;0&#39;></a> "; 
   } 
  }

Replace with the following code:

while($dbrow=$dsql->GetObject()) 
 { 
  if($type==&#39;text&#39;||$type==&#39;textall&#39;) 
  { 
   $link = "<a href=&#39;".$dbrow->url."&#39; target=&#39;_blank&#39; title=&#39;".cn_substr($dbrow->webname,$titlelen)."&#39;>
".cn_substr($dbrow->webname,$titlelen)."</a> "; 
  } 
  else if($type==&#39;image&#39;) 
  { 
   $link = "<a href=&#39;".$dbrow->url."&#39; target=&#39;_blank&#39;><img  src=&#39;".$dbrow- alt="How to add anchor text to DEDECMS links" >logo."&#39; width=&#39;88&#39; height=
&#39;31&#39; border=&#39;0&#39;></a> "; 
  } 
  else 
  { 
   if($dbrow->logo==&#39;&#39;) 
   { 
    $link = "<a href=&#39;".$dbrow->url."&#39; target=&#39;_blank&#39; title=&#39;".cn_substr($dbrow->webname,$titlelen)."&#39;>
".cn_substr($dbrow->webname,$titlelen)."</a> "; 
   } 
   else 
   { 
    $link = "<a href=&#39;".$dbrow->url."&#39; target=&#39;_blank&#39;><img  src=&#39;".$dbrow- alt="How to add anchor text to DEDECMS links" >logo."&#39; width=&#39;88&#39; height=
&#39;31&#39; border=&#39;0&#39;></a> "; 
   } 
  }

The above is the detailed content of How to add anchor text to DEDECMS links. 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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

EditPlus Chinese cracked version

EditPlus Chinese cracked version

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

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.