Ensuring Content on Homepage only
-
Hi,
I am not so good with PHP, so needed some help.
I have a blog say myblog.com , I need to place an advertisement on the homepage of the blog and not on each page, that means that it should only appear on www,myblog.com and myblog.com and not on any of the inside links. But the only file I have to do this is sidebar.php
Can anyone help me with the code snippet to ensure this, something like :
if currenturl = url1 or url2
<display this html code>
else
<dont do anything>This code will be in my global sidebar.php
Thanks in advance
-
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
-
Sorry, this is about self hosted blog, please delete the topic, I would goto the other forums :)
- The topic ‘Ensuring Content on Homepage only’ is closed to new replies.