Forums

Want featured image to replace header image on blog index (4 posts)

  1. orangjul
    Member
    Posted 1 year ago #

    I have featured images replacing my header images on most of my pages and posts. I'd also like to have a featured image on my blog homepage (index.php). I changing this:

    if ( is_singular()

    to:

    if ( (is_singular() || is_home())

    But that did not work. What can I do to make this work properly?

    Thanks.

  2. orangjul
    Member
    Posted 1 year ago #

    Oops I mean:

    if ( (is_singular() || (is_home()))

  3. alchymyth
    The Sweeper
    Posted 1 year ago #

    are you using the default theme Twenty Ten?

    if not, then please post the name of your theme;

    if yes:

    the image on index.php is the default one that you set in 'admin' 'appearance' 'header' 'upload image' (or choose one from the list);
    imho, there is no easy possibility to choose a 'featured image' for index.php (primary question would be: how do you define a 'featured image' on the home page?).

  4. orangjul
    Member
    Posted 1 year ago #

    I started with Twenty Ten and modified it.

    I don't want the blog homepage to use the default header image. I want it to use the featured image I choose for that page. It works for all regular pages, but since this particular page is set to display posts instead of regular content, it's not cooperating and it still shows the default header image.

    I know I could probably hard code this to work properly but I'd rather do it with a conditional tag if possible.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.