- This topic has 10 replies, 4 voices, and was last updated 8 years, 5 months ago by
Tom.
-
AuthorPosts
-
November 9, 2017 at 4:56 pm #420172
dale
Not sure if this happened with the latest update or a previous one, but in any case, the solution provided in this discussion for having the page header full width across the page (content area and sidebar) no longer works: https://generatepress.com/forums/topic/category-image-header-broke-with-latest-update/
Alternatives?
November 9, 2017 at 5:08 pm #420181Tom
Lead DeveloperLead DeveloperHi 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 🙂
November 10, 2017 at 7:01 am #420780dale
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.
November 10, 2017 at 7:37 am #420809Benjamin
Page header is not working well
November 10, 2017 at 9:04 am #420888Leo
StaffCustomer SupportHi Benjamin,
Can you open a new topic and explain a bit more what’s not working well?
November 10, 2017 at 9:18 am #420922Tom
Lead DeveloperLead DeveloperHmm, 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; }November 10, 2017 at 9:37 am #420943Benjamin
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 menuThanks!
November 10, 2017 at 9:49 am #420951dale
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?
November 10, 2017 at 9:49 am #420952Tom
Lead DeveloperLead DeveloperYea, replacing that function should fix it 🙂
November 10, 2017 at 9:53 am #420959dale
Thanks! It is fixed!
November 10, 2017 at 9:58 am #420961Tom
Lead DeveloperLead DeveloperYou’re welcome! 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.