Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Theme Customizer › Appearance › Remove header colour layout
- This topic has 7 replies, 2 voices, and was last updated 6 years, 5 months ago by
Themosaurus.
-
AuthorPosts
-
HermanParticipant@herman
- 1 Topics
- 4 Posts
Dear Themosaurus,
I’ve just bought your theme and installed. It gave me the desired results, but i have one thing i would like to change. I’ve tried a couple of things but i couldn’t figure it out. Can you help me?
I want to delete (or change) the coloured header. The H1 tag need to show on the default grey of the body. How can i accomplish that?
Ive attatched images to show what i mean.
October 21, 2018 at 13:29 #2980@themosaurus- 1 Topics
- 1675 Posts
Hi @herman,
We’re sorry for the late reply. We usually try to give a response in one business day. So, we really thank for your patience! ?
You can remove the header from all pages with the following bits of PHP code:
/** * Hide the Custom Header for all pages. * * @param array $args The array of arguments passed for the Custom Header. * * @return array The updated array of arguments passed for the Custom Header. */ function gwangi_custom_hide_custom_header( $args ) { $args['displayed'] = false; return $args; } add_filter( 'grimlock_custom_header_args', 'gwangi_custom_hide_custom_header', 1000, 1 ); /** * Remove the CSS classes to the body for the Custom Header for all pages. * * @param array $classes The array of CSS classes to the body for the Custom Header on minimal templates. * * @return array The updated array of CSS classes to the body for the Custom Header on minimal templates. */ function gwangi_custom_remove_body_classes( $classes ) { unset( $classes[ array_search( 'grimlock--custom_header-displayed', $classes, true ) ] ); unset( $classes[ array_search( 'grimlock--custom_header-title-displayed', $classes, true ) ] ); unset( $classes[ array_search( 'grimlock--custom_header-subtitle-displayed', $classes, true ) ] ); return $classes; } add_filter( 'body_class', 'gwangi_custom_remove_body_classes', 1000, 1 );
To add this code snippet to your site, we recommend that you use a the Code Snippets plugin (https://wordpress.org/plugins/code-snippets/). If you have never activated this plugin, please read the following post:
We hope that it will solve your issue. ?
Best,
October 25, 2018 at 19:35 #3115@themosaurus- 1 Topics
- 1675 Posts
You’re welcome. ?
Best regards,
November 5, 2018 at 16:24 #3306 -
AuthorPosts
The topic ‘Remove header colour layout’ is closed to new replies.