This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Index header image help

8 years ago · Last reply by Alex S 8 years ago

Hello, I have the wordpress theme simple article v 1.08 with page builder and I have a question:
How to edit the index code to put and image in header?

If put the image in index php dont wok happening.
If put the image in header php the image shows in all the pages
I need only in the index page. What is the index code of page builder?

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 8 years, 11 months ago

    Hi Acresmedia777,

    Please do not directly edit core WordPress files like the index.php. Instead, try making changes via WordPress directory wherever possible.

    Based on your theme, you should be able to add the widget to your header by navigating to WP AdminAppearanceWidgets and adding it to your header widget area (this may or may not be present – it definitely looks like there is one however). You can get it to display for a specific page by using a plugin like WooSidebars.

    If there isn’t a header widget area, you’ll need to edit your themes header.php. Be sure to use a child theme to ensure your changes aren’t lost on theme update. Open your header.php and then add the following code:

    <?php if( is_front_page() ): ?>
    	Add your image here
    <?php endif; ?>

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread