Title: Button Color Issue
Last modified: July 15, 2019

---

# Button Color Issue

 *  Resolved [twgerber](https://wordpress.org/support/users/twgerber/)
 * (@twgerber)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/button-color-issue/)
 * I am using a pretty popular theme – Ocean WP.
 * I built a custom header and it is not showing the color I set explicitly on my
   Kadence buttons. Is there some custom CSS I can add to get it to work?
 * Thanks
 * Staging site: [https://mirrorstaging.wpengine.com/](https://mirrorstaging.wpengine.com/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/button-color-issue/#post-11733880)
 * 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
 *  Plugin Contributor [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/button-color-issue/#post-11734005)
 * I’m going to have to test this, does ocean give you that custom head option or
   are you use another plugin?
 * Ben
 *  Thread Starter [twgerber](https://wordpress.org/support/users/twgerber/)
 * (@twgerber)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/button-color-issue/#post-11736179)
 * 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?
 *  Plugin Contributor [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/button-color-issue/#post-11741371)
 * 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
 *  Thread Starter [twgerber](https://wordpress.org/support/users/twgerber/)
 * (@twgerber)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/button-color-issue/#post-11741387)
 * 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.
 *  Plugin Contributor [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/button-color-issue/#post-11741428)
 * 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
 *  Thread Starter [twgerber](https://wordpress.org/support/users/twgerber/)
 * (@twgerber)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/button-color-issue/#post-11741496)
 * Thank you. I Have added that code and also forwarded to theme developer
 *  Thread Starter [twgerber](https://wordpress.org/support/users/twgerber/)
 * (@twgerber)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/button-color-issue/#post-11743755)
 * Thx

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Button Color Issue’ is closed to new replies.

 * ![](https://ps.w.org/kadence-blocks/assets/icon-256x256.png?rev=3178382)
 * [Kadence Blocks — Page Builder Toolkit for Gutenberg Editor](https://wordpress.org/plugins/kadence-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kadence-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kadence-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/kadence-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kadence-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kadence-blocks/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [twgerber](https://wordpress.org/support/users/twgerber/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/button-color-issue/#post-11743755)
 * Status: resolved