Ecshop Ad Invocation Method

Source: Internet
Author: User

In a simple summary of Ecshop ads Call this method, which has been posted on the blog, here we summarize the following

Method 1 : Just is the official default method. Add the ad bit first, then add the ad area to the template, and then put the two in the appropriate place.
1, backstage "AD management" ad location, click on the "Add AD bit" button.

Add to AD location: what you see


2. Join the advertising content

Then go to the "Ad list" and click on the "Join AD" button. Note that the ad Location drop-down box selects the ad bit that was added to the 1th step.

Note: The ad location must choose the name that you just added: Home banner ad (960x60). Otherwise, it cannot be displayed

3. Change the homepage template

Opens the index.dwt file, adding:

        <!--templatebegineditable Name= "A1"-            <!--templateendeditable-   

pay special attention here. A1 name cannot contain special characters, I have included an asterisk before. A long time to find out why, remember to remember

4, change the background "template management" set up templates, select the homepage template.
Find the "ad bit" below. Click "+" to expand,

in the first drop-down box, select "Home header banner ad bit (w: 960x100) "
In the second drop-down box, select "Home header banner [960x100]"

When you are sure of saving, the effect can be achieved.

 Method Two:
First step, from the background to join the ad location first. Then select this ad location to add a picture.
The second step, need to adjust the ads, PHP file add the following code, get the ads to be displayed


Central first ad bit  $ads = array (  ' num ' = ' 1 ',//number of ads  ' id ' = ' 1 '//AD location ID This ID you open the background ad location list mouse over each bar can see the coat.    );  $banner =insert_ads ($ads);  

The third step opens the template file assuming that there is just one ad {$banner} OK, assuming multiple, to loop the array {$banner}, displaying the ad content.

Welcome reprint, This article is provided by the program Ape Life NET, www.wfuyu.com

Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.

Ecshop Ad Invocation Method

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.