[resolved] How do I prevent featured images to be used as header? (4 posts)

  1. larryni
    Posted 3 years ago #

    I am using a dkret3 child theme with the Nivo Slider plugin to feature posts in a slideshow on the front page. To include a new slide I need to add a featured image to the post. Unfortunately this also changes the header to the featured image when the post is viewed. How can I prevent this?


  2. kretzschmar
    Theme Author

    Posted 3 years ago #

    The function which adds the featured image to the header is located inside core.php.

    As this function is filtered you can write your own funtion and overwrite the one inside core.php in a child themes function.php.

    An easy hack is, to change the function inside core.php:

    Remove line 217-222 and line 224.
    So you end up with only:

    $header_image = get_header_image();

  3. larryni
    Posted 3 years ago #

    Thanks kretzschmar

    I didn't want to edit core.php in case of theme updates, using the modified function in the child theme works perfectly.

  4. kretzschmar
    Theme Author

    Posted 3 years ago #

    Would be nice if you could explain in detail how you achieved it now.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic