Add Stationary Content To Main WordPress Front Page
Adding static or stationary content to the front page of your blog can be done two different ways. One is to use the static front page option. Another is to just add your text or HTML code to the index file. This WordPress guide will address the latter.
First your themes files permissions will need to be writable in your hosting account to make any changes to them. To see if yours are writable in the WordPress dashboard go to Design or Presentation, Theme Editor. scroll down and see if you have an “Update File” button under the themes template file. If so you are ready to go. If you see “If this file were writable you could edit it.” then you need to change the file permissions on the theme to 666 or 777. If you don’t know how to do it check your particular hosting account for more information.
Once in the Theme Editor, click the Main Index Template also known as the index.php file. Find the following code and simply place your text or HTML code in the area just above the code where the posts start as shown below:
Place your text, AdSense, banner ad code, or HTML code here.
<?php if (have_posts())
>
Be careful to make sure all HTML tags are properly closed in here, and then check your site to see how your newly edited front blog page looks.
Similar Posts:
- How To Add AdSense Ads To A WordPress Blog
- Adding AdSense Code Into A WordPress Theme
- Add Sidebar To WordPress Default Theme Pages
- WordPress 404 Redirect And 404 Custom Message
- Removing The Title of WordPress Pages
If you liked this post, feel free to leave a comment that is relevant to the post or subscribe to the feed and get future articles delivered to your feed reader.
Sorry but due to the spamming of a few all comments are moderated and will appear when approved and all drive-by comments will be deleted!











Comments
This is what i was looking for.
Thanks for the information
Reply
and thus the added stationary content will go at the top of the page?
Reply
Just as the post states ” place your text or HTML code in the area just above the code where the posts start” that would be the area just above the post.
Reply
thank you Jeff… took me a few seconds to realize where exactly to put the stationary text, I’m not a techie.
I figured it out on the second try… the new text goes between the two existing codes like this…
this is where I write…
and it worked…really really good….I appreciate your post for all of us
Reply
Thanks for the awesome tip there. Appreciate it. I’ll check this out tonight. Cheers
Reply
Thanks for the post Jeff. Had quite a number of issues to get this to work at first. Managed to set it straight now, thanks again, it came in very handy to me!
Reply
Great article. I had some trouble with the change. It didn’t work initially and I thought your method didn’t work out. But I checked it fully and found some tag issues. Now it works like a charm. Thanks a bunch for the tutorial. Cheers
Reply
very nice and informative post for WP starters …
Reply
Leave a comment
Drive-By comments will be deleted! Like "Thanks for sharing", "Nice post", or any other text that doesn't contribute to the discussion. If you ask a very specific question about your particular WordPress theme, it will probably be deleted. I can fix your WordPress site but for a price. If you ask a question like "Why don't my blog work right", it will be deleted. If you ask a question about your WordPress site without a leaving a link to it, it will be deleted. The point is to ask questions and or comment on the the actual content of the post, and to please use some common sense. All comments are moderated and will appear when approved. Thank you.