Dedecms default Style "Hot search" changed to text ads, picture ads

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Dedecms self-study Tutorial 9: Dream CMS Default Style "popular search" changed to text ads, picture ads. The other section of this series self-study tutorial read address: www.dedecms8.com/dedecms/dedecms-ad/. Dream CMS default style with the "Hot search", automatic extraction of popular tag, and with links, is a good feature. But by contrast, it seems to be more of a taste to advertise here. Today we say, how to change this to advertising.

  

Figure Dedecms Self-study tutorial 9-1

1, backstage-module-auxiliary plug-ins-Advertising management-Add a new ad, in the open AD editing page, do the following processing:

  

Figure Dedecms Self-study tutorial 9-2

2, add the advertising code, click OK to save. Then in the AD management list to find just added "hot tag" ads, click the corresponding "code", generate Ads JS output code.

  

Figure Dedecms Self-study tutorial 9-3

  

Figure Dedecms Self-study tutorial 9-4

3, open templets/default/head.htm, search "<div class=" Tags ">", will find the following code:

  

Figure Dedecms Self-study tutorial 9-5

Modified to:

  

Figure Dedecms Self-study tutorial 9-6

Modify the Save, update the Web site. Note that head2.htm should also make similar changes.

4, how to change to picture ads? Here, we take the picture ad.jpg as an example, the picture is uploaded to the site root directory. Of course, you can also put in other directories, as long as the image path in the advertising code is correct. Replace the advertisement in Figure 2 above with the following image ad code:

  

Figure Dedecms Self-study tutorial 9-7

Then submit, repeat the 2nd step again, update the AD. Next, refresh the homepage of the website can see the effect of the picture advertisement.

  

Figure Dedecms Self-study tutorial 9-8

Reprint please specify the source: Dream of Weaving (DedeCMS8), thank you for your cooperation. Welcome to add 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.