| | |||||||
| Technology & Technical Skills Computer skills, hardware, software, internet topics, gadgets, programming |
|
Welcome to the Personal Development for Smart People Forums, the place for lively, intelligent discussion of all personal growth issues -- physical, mental, financial, social, emotional, spiritual, and more. You're currently viewing as a guest, which gives you limited read-only access. By joining our free community, you'll be able to post your own messages, access many members-only features, see the new messages posted since your last visit, and of course remove this header message. Registration is fast, simple, and free, so please join today. If you arrived here from a search engine, you may want to explore the main site first, which includes hundreds of deep and insightful articles on a variety of personal development topics. |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Senior Member Join Date: Nov 2006 Location: New York
Posts: 212
|
An advertiser approached me to throw a text link up in my sidebar at Broke-Ass Student. I put the link into a sidebar widget, but he emailed me yesterday requesting that the link appear only on the homepage instead of site wide. I have no idea how to do this and dug around online to see if I could find a code; <?php if(is_home() && $post==$posts[0] && !is_paged()) { ?> AD CODE HERE <?php } ?> I tried the above code in my sidebar widget (didn't work) and also tried inserting the code into my sidebar.php in the theme editor, which also didn't work. The ad is still displaying site wide in my sidebar. I'm not sure if I have the right code and might just be inserting it in the wrong area. Can anyone advise? |
| | |
| | #2 (permalink) |
| Member Join Date: Jun 2008
Posts: 73
|
It seems you're using Wordpress so you can use the IsHome function to test if the page is the home page in your script, and put that in your sidebar page in your theme. Google IsHome for more details!
__________________ Simon Stapleton, Recession Survival Guru Develop a Kick-Ass Attitude | ACE Your Performance Review | RSS feed | Newsletter |
| | |
| Bookmarks |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Blog at homepage or in .com/blog/ folder? Your thoughts? | Holistic Star | Technology & Technical Skills | 6 | 11-06-2007 07:55 PM |
| Grr, my wordpress sidebar menu dropped down | Cassie | Technology & Technical Skills | 4 | 02-19-2007 11:43 PM |
| What's your homepage? | Athena | Technology & Technical Skills | 41 | 02-15-2007 06:49 AM |
| HOW TO: Remove the annoying sidebar on the forums | TechnoGuyRob | General & Introductions | 13 | 11-07-2006 03:41 AM |
All times are GMT. The time now is 04:23 AM.






