Home > CMS Tutorial > WordPress > body text

How to add advertising space in WordPress

爱喝马黛茶的安东尼
Release: 2019-07-20 15:24:53
Original
3154 people have browsed it

How to add advertising space in WordPress

1. Add ads in the WordPress sidebar:
Enter the blog backend widgets, drag the Text tool into the sidebar, expand Text, and paste the ad code directly into it and save it. That’s it.

2. Add ads at the top of WordPress article content:
Open "single.php" in the theme directory and find where the "" code is located.
Just add the advertising code above "":

<div style=”padding:0px 10px″>广告代码</div>
Copy after login
Copy after login

Related recommendations: "WordPress Tutorial"

3. Insert advertisements at the bottom of WordPress article content:
The method is similar to inserting advertisements at the top of the article. The difference is that the advertising code must be added below "":

<div style=”padding:0px 10px″>广告代码</div>
Copy after login
Copy after login

4. Insert surrounding ads on the left or right side of the WordPress article:
In the same way, add the ad code above "":

<div style="float:left;width:336px;height:280px;">广告代码</div>
Copy after login

The above is the detailed content of How to add advertising space in WordPress. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!