Hey,
What color are you setting it to? When you add the advanced button block into a page do you have this same issue? Or is it only in the header?
Hannah
I’m going to have to test this, does ocean give you that custom head option or are you use another plugin?
Ben
OceanWP gives me the option. When I use it within a page the color is fine.
I am told it might be an issue with CoBlocks overriding the Block Styles?
No shouldn’t be an issue with coBlocks. I just tried installing oceanWP and the library templates don’t use rest so the editor is not Gutenberg when you work in them. This also likly means when they are rendered they don’t run through the blocks build code and just output the html.
Did you change code to make gutenber open in those templates or are you talking about something else in the oceanwp settings?
Ben
Yes They took out the gutenberg option for now when using their Ocean Hooks plugin.
I don’t use that add on so they told me to do this:
Okay, open the ocean-extra > includes > panel > library.php file and add the below code after the line number 90, just after the ‘rewrite’.
‘show_in_rest’ => true,
It will enable the Gutenberg for my-library post type.
I can now use it in the custom footer/header. I added some custom CSS to get it working.
I think I have it mostly working now.
ok, that is your issue though, to render Gutenberg content you need to run “do_blocks” on the content you can’t just echo it out.
Looks like ocean has a filter for this, so you would need to add:
add_action( 'ocean_header_template_content', 'do_blocks', 7 );
Ben
Thank you. I Have added that code and also forwarded to theme developer