How to delete dedecms 5.7 Dream Weaver Chain?
I just discovered that dedecms 5.7 is the official advertising version of 5.6. It added a junk Dreamweaver link thing to secretly add a black link, causing my site’s inclusion to drop significantly. I’m puzzled. , then I remembered that it was because I changed a theme in the middle and switched back to the official theme. I originally thought that the official theme would be better included due to good SEO optimization, because the previous theme was made by myself, and I didn’t pay much attention to SEO at that time. , the whole article is full of divs and css, without any
Recommended study: 梦Weavercms
There are two ways to remove it. Which one is more convenient? As follows:
1. Modify the php file
Look for the include/taglib/flinktype.lib.php file in the root directory and find the following code:
The code is as follows:
$dedecms = false; $dedecms->id = 999; $dedecms->typename = ‘织梦链’; if($type == ‘dedecms’) $row[] = $dedecms;
Just delete the above text, or change the dedecms in $type == 'dedecms' to a random name, for example, change it to your URL
2. Modify the template
directly Open index.htm in templatesdefault in the root directory, which is the template of the homepage, find {dede:flinktype type="dedecms"}, delete it, or change the dedecms to a random name, haha. There are two places. If you change any of them, the dream chain will appear.
The above is the detailed content of How to delete dedecms 5.7 dream chain. For more information, please follow other related articles on the PHP Chinese website!