How can I have text show above the posts on the homepage only? I found the file to edit but I need the code that's like <?php if home() .... or something. Can someone help?
I dint get you what actually you are asking for.. Can you please be more clear with an example? Then i would be able to help you. Thanks..
On my homepage, I want to have an introduction that says like " welcome... blah blah blah " that will be displayed above the latest post. I know how to have the text displayed there. But the problem is, is that I only want that welcome text displayed when you are on index.php page. If you click on a sub-page or on a post, I don't want the welcome text shown.
Yeah, just go to your home.php file in your template and add whatever you want. It will only show on the homepage. I would probably include it above the content/post tag.
Found what I needed. Here's how I did it: I added the following to header.php file within my theme: <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> TEXT TO SHOW <br><br> <?php } ?>