Site logo

Archived topic

Page header fix no longer working

10 replies · Started by dale on November 9, 2017

Viewing posts 1–11 of 11

Hi Dale,

Very strange - looks like you just need to set your "post" featured image to above the content area. Go to "Customize > Layout > Blog" and you should see the Featured Image options :)

OK. But I don't want that, because that would affect all the featured image on the posts on the site. I only want this to affect the page headers in this category.

Page header is not working well

Hi Benjamin,

Can you open a new topic and explain a bit more what's not working well?

Hmm, unless you had custom PHP to move the featured image in that one category before, it would affected all posts on your site anyways.

Now, you can do this:

add_filter( 'option_generate_blog_settings', 'tu_category_featured_image_position' );
function tu_category_featured_image_position( $options ) {
    if ( in_category( 'chechnya' ) ) {
        $options['single_post_image_position'] = 'above-content';
    }

    return $options;
}

Hi,

I'm sorry I did not read this part "Content is required for the below settings to work."
It would be good if you could place a background without content and allow to change the color of the menu

Thanks!

Oh! I do have PHP. Sorry. I forgot about that part. It's

add_filter( 'option_generate_page_header_settings','tu_dynamic_page_header_position' );
add_filter( 'option_generate_blog_settings','tu_dynamic_page_header_position' );
function tu_dynamic_page_header_position( $options ) {
	
	if ( in_category( 'chechnya' ) ) {
		$options[ 'post_header_position' ] = 'above-content';
	}
	
	return $options;
}

Should I go ahead and try replacing this with what Tom mentioned above?

Yea, replacing that function should fix it :)

Thanks! It is fixed!

You're welcome! :)

This archived topic is closed to new replies.