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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-29-2013, 02:33 PM   #1
nexcom28
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
nexcom28 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-29-2013, 02:57 PM   #2
mikesouth
Confirmed User
 
mikesouth's Avatar
 
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.
mikesouth is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-29-2013, 03:49 PM   #3
OneHungLo
So Fucking Banned
 
Industry Role:
Join Date: May 2001
Location: Your mom's front hole
Posts: 40,910
http://wordpress.org/plugins/widget-context/
OneHungLo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-29-2013, 03:54 PM   #4
gracesfall
Confirmed User
 
gracesfall's Avatar
 
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 } ?>
For category.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 } ?>
For index.php (if you have Latest Posts as your home page):

Code:
<?php if ( is_home() ) {?>
<a href="SPONSOR URL" target="_blank"><img src="PATH TO IMAGE" border="0"></a>
<?php } ?>
If you're looking for a full on ad management plugin though, I recommend Simple Ads Manager. It's a freebie, fairly light weight, and very full featured.

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

Last edited by gracesfall; 09-29-2013 at 03:55 PM..
gracesfall is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-29-2013, 11:46 PM   #5
nexcom28
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.
nexcom28 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-30-2013, 07:50 AM   #6
Manfap
Confirmed User
 
Manfap's Avatar
 
Industry Role:
Join Date: Jan 2013
Posts: 2,617
Quote:
Originally Posted by nexcom28 View Post
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.
The code you were given above does that.

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
Manfap is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.