Change DedeCMS's default style "popular search" to text ads and image ads

Source: Internet
Author: User

DedeCMS self-study tutorial 9: zhimeng CMS default style "popular search" changed to text ads, image ads. For other tutorials in this series, visit www.dedecms8.com/dedecms/dedecms-ad /. Zhimeng CMS's default style comes with "popular search", which automatically extracts popular tags with links, which is a good function. However, in contrast, it seems that it is more in line with everyone's taste. Today, let's talk about how to change it to advertisement.

  

VcyzzDmjutavw85DTVPErMjPt + e48cjIw8XL0cv3uMSzyc7E19a547jmIM28MQ = "height =" 141 "src =" http://www.bkjia.com/uploads/allimg/131122/042314A06-0.gif "width =" 600 "/>

 

Figure DedeCMS tutorial 9-1

1. Add a new advertisement in the background-module-Auxiliary plug-in-advertisement management. On the open ad editing page, perform the following operations:

  

 

Figure DedeCMS tutorial 9-2

2. After adding the advertisement code, click OK to save. Find the newly added "Popular tag" advertisement in the AD management list, click the corresponding "code", and generate the js output code of the advertisement.

  

 

Figure DedeCMS tutorial 9-3

  

 

Figure DedeCMS tutorial 9-4

3. Open templets/default/head.htm and search for "<div class =" tags ">". The following code is found:

 

  

 

Figure DedeCMS tutorial 9-5

To:

  

 

Figure DedeCMS tutorial 9-6

After modification, save and update the website. Head2.htm also needs to be modified.

4. How can I change it to an image advertisement? Here, we will take the produced image ad.jpg as an example to upload the image to the root directory of the website. Of course, you can also put it in another directory, as long as the image path in the advertisement code is correct. Replace the advertisement in Figure 2 with a Code such as an advertisement:

  

 

Figure DedeCMS tutorial 9-7

Then, submit and repeat Step 1 to update the advertisement. Then, refresh the homepage to see the effect of image ads.

  

 

Figure DedeCMS tutorial 9-8

For more information, see DedeCMS8. Thank you for your cooperation. Welcome to join DedeCMS8-QQ group: 63671447 exchange learning.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.