![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
So Fucking Banned
Join Date: Jan 2005
Posts: 3,716
|
How to add a banner ad to specific pages wordpress??
Ok,
So I want to add a banner to a wordpress page like this mysite.com/tag/blue-shoes or mysite.com/category/shoes How can I do this. Add an ad / html to any given page on wordpress? Thanks |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Jun 2003
Location: My High Horse
Posts: 6,346
|
simple ad manager plugin will do it right out of the box and its free
__________________
Mike South It's No wonder I took up drugs and alcohol, it's the only way I could dumb myself down enough to cope with the morons in this biz. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
So Fucking Banned
Industry Role:
Join Date: May 2001
Location: Your mom's front hole
Posts: 40,910
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Sep 2013
Location: Florida
Posts: 252
|
If you want something simple, without needing an ad management plugin, do this:
1. If you want the ad in your sidebar, go to Appearance > Widgets and set up a Text Widget with the appropriate code and save. 2. If you want the ad in spots OTHER than your sidebar: Open up the appropriate template file (e.g. page.php, single.php, etc...) and in the spot you want the banner to be, use code like this: For page.php: Code:
<?php if ( is_page(PAGE ID# GOES HERE) ) {?> <a href="SPONSOR URL" target="_blank"><img src="PATH TO IMAGE" border="0"></a> <?php } ?> Code:
<?php if ( is_category(CATEGORY ID# GOES HERE) ) {?> <a href="SPONSOR URL" target="_blank"><img src="PATH TO IMAGE" border="0"></a> <?php } ?> Code:
<?php if ( is_home() ) {?> <a href="SPONSOR URL" target="_blank"><img src="PATH TO IMAGE" border="0"></a> <?php } ?> Hope this helps! Cyndi
__________________
-= gracesfall =- FreeLesbianPornBlog.com Follow me on Twitter: https://twitter.com/gracesfall Like me on Facebook: Free Lesbian Porn Blog Hit me up on ICQ: 663050376 Domains for Sale: DaddyWhoreBucks.com | YoungAndFuckable.com | KnobGobblers.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
So Fucking Banned
Join Date: Jan 2005
Posts: 3,716
|
Thanks for this code but I am looking for something more advanced. I want to add an ad using iframe or whatever. I want to be able to use a different add on each category / tags page.
I tried using simple ads manager plugin but I can't see anyway to specify which tags / category pages I want to place ads on. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Industry Role:
Join Date: Jan 2013
Posts: 2,617
|
Quote:
replace the a href tags with the flash iframe. put your categoryid number in the code where it says, or page id. need help finding out what your cat id is? http://wordpress.org/support/topic/h...et-category-id |
|
![]() |
![]() ![]() ![]() ![]() ![]() |