How To Add Stationary Content To 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.

Disclosure: Some of the links in this article are affiliate links and we may earn a small commission if you make a purchase, which helps us to keep delivering quality content to you. Here is our disclosure policy.

Editorial Staff
Editorial Staff
Editorial Staff at WPArena is a team of WordPress experts led by Jazib Zaman. Page maintained by Jazib Zaman.

LEAVE A REPLY

Please enter your comment!
Please enter your name here
Captcha verification failed!
CAPTCHA user score failed. Please contact us!

spot_img

Related Articles

How to Reduce WordPress Registration Spam

WordPress forms offer a valuable chance for you to connect with your website visitors and potential customers. Those people may...
Read More
Why WordPress is the best CMS? Having a website has become a necessity for both individuals and businesses. Content Management...
When optimizing the speed of your WordPress site, you might come across a performance metric known as Time to First...