• Resolved vforastar

    (@vforastar)


    Hi, Can you please guide on how to have a consistent header image. The featured images of single blog post becomes the header image. I tried using these codes in custom css in customizer:

    1. hfg_header .header-top-inner.light-mode .background-image{display: none;}

    2. .hfg_header .header-top-inner.light-mode { background-image: url("https://comment.local/wp-content/uploads/2020/05/consistent-header-image.jpeg"); background-size: cover; background-position: 75% 0%; }

    None of these two works , the featured image stays the header image. Will really appreciate your inputs here.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @vforastar,

    You can do this easily from the customizer, using the header row settings.

    You can find more details here https://docs.themeisle.com/article/1245-header-rows-settings by going to the Row Background Color or Image section.

    I hope this helps!

    Thread Starter vforastar

    (@vforastar)

    Hello @optimole , thank you for replying mate. I used the customizer settings to place the header image. But as soon as I place a featured image in a blog post, it becomes the header image for that post. This is what I’ve found so far, on line 827 0f Abstract_builder.php, code for featured image:

    $css_setup['background-image'] = 'url("' . esc_url( $featured_image ) . '")';

    I tried to copy paste this file in my child theme and tried to edit but it doesn’t work , it only works when I change the theme file. Don’t want to do that, so now am trying to figure out the issue with child theme.

    Hello @vforastar,

    If you are using the header/page header builder available in the Customizer you can check that the featured image of each page isn’t used as the background image of the row within the builder – example here.

    Thread Starter vforastar

    (@vforastar)

    Thank you ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to stop featured image from becoming header image on single blog post’ is closed to new replies.