Remove the adsense code from the page you dont want adsense showing on?
Just realised that I've a few sites with adsense on the contact pages (as I use a wordpress widget to display the ad).
One site has been like this for months and I've had no issues but I want to fix it to make sure I can't get in trouble over it.
Anyone know an easy way to do this ?
If your theme supports custom sidebars and that is where your code is then you can just set one up for the contact page, leaving your ads to show on the rest of the site. If it doesn't then you could add this plugin - WordPress › Custom sidebars
Dunno about those themes but with studiopress you can set the template for each post individually - so for your issue you could set the full width template which wouldn't show the sidebar. Have you got anything like that in your theme?
If not, there will be some sort of plug-in that allows you to customise what widgets are used per post but I'm not really a fan of adding plug-ins for every little issue that comes along - soon enough you'll have issues with one plug in or another that causes more problems than it solves.
The creative way to do it would be to add some content like some common questions and answers - it wouldn't need to much to qualify as content?
All of the above accepted this isn't something you need to worry about - I've had this sort of issue for at least 3 years and haven't been banned yet
Yeah maybe it's nothing to worry about but I'd like to be 100% sure that my account is safe.
It's a pity there isn't a way of just adding a line of code somewhere to disable a widget from a page or two.
Hope G would ask me to sort out the problem before banning or whatever.
If you really want to:
WordPress › Custom widgets
Try WordPress › Conditional Widgets
Should do what you're after.
Spoke too soon!
Have this on 3 websites now, and 2 are perfect.
However, it wasn't really getting any clicks anyway, but I'd like to have it sorted.
edit - on the same site it's showing on only some category pages when it's set to all of them don't know what's wrong, must be the theme :S
WordPress › Conditional Widgets
Ta Dah.....! This is what ya need.....
Wondering if you can do this at a database level? Maybe create a new type of post/page - could take quite a bit of work though considering the small change it would make and the possible other things you could "nudge" out of place.
There is another quick and dirty solution though...
You could always create the page manually and host it outside the wordpress install...
eg: If your contact us page is www.domain.com/contact-us/
Just create a folder in public_html or root called contact-us and drop a complete html copy of the contact us page as index.php
Then delete the page within wordpress and upon visiting the page you should get the static page, not the dynamic wordpress one.
If that works of course you can chop the page about as you wish - its basically a static html/php file. Just hack the wordpress guff out of it and leave it as a nicely formatted html/php page with all the same css calls (And maybe even php include calls) so your visitors have no idea they are actually outside of the wordpress install.
Hope that makes sense, i'm 99% sure i'v done this on a website before - infact i'm almost certain i once created a wordpress install at root with a custom cms of my own dovetailed in at root also - one cms took care of blog posts and the other was a shop front with a single admin login for adding new products. This was years before buddypress and networks so it was a novel (If over the top complicated) way of getting a site within a site plus slightly different layouts.
If i remember right the only thing to consider is keeping your url's neat ie: Choosing to format a url as /contact-us/ or contact-us.php etc etc - I think i ended up formatting my permalinks with a .php end so i got.
Btw sorry about the "site within a site reference" - Inception is on the TV downstairs lmao!
There are currently 1 users browsing this thread. (0 members and 1 guests)