• hozefasmile

    (@hozefasmile)


    Hi,

    How I can use this filter cbb_theme_json_data_default_settings to diable default wordpress settings that enabled by your plugin. For example default color. As I am seeing when I enable “settings”: { “color”: { “defaultPalette”: false , in theme.json file it not behave as it should, I mean it still shows default color, because of your default theme json settings. I want to use only my custom color. So how I can use your cbb_theme_json_data_default_settings filter to do so?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Phi Phan

    (@mr2p)

    Hi @hozefasmile,

    Here is the code to disable this setting:

    add_filter( 'cbb_theme_json_data_default_settings', '__return_false' );

    Phi.

    Thread Starter hozefasmile

    (@hozefasmile)

    Hi @mr2p

    I added the code to function.php file but, default color is still showing.

    Plugin Author Phi Phan

    (@mr2p)

    Please ensure the code is executing prior to the filter. If that is ok, please attempt to deactivate CBB. If the issue seems to be caused by CBB, please provide me with access to your test site. I need to see it to avoid any potential misunderstandings.

    Plugin Author Phi Phan

    (@mr2p)

    Hi?@hozefasmile, any update on this issue? If you need further assistance, please reach out to me.

    Best, Phi.

    Thread Starter hozefasmile

    (@hozefasmile)

    Hi @mr2p , I have even tried it with default wordpress block theme, but its not working. So for your testing purpose I have created a temporary site. https://defiantjellyfish.s3-tastewp.com/ , this site is active for 7 days.

    In this site I have added cbb plugin and my custom block theme. your filter added in the theme functions.php file. but if you go to edit any page and look into the colors, you will see that default wordpress colors are also showing there.

    Login detail of above site, I have send you separately in the email. Please check that.

    Plugin Author Phi Phan

    (@mr2p)

    @hozefasmile, Thank you for the details. I will look into it soon.

    Phi.

    Plugin Author Phi Phan

    (@mr2p)

    @hozefasmile, I deactivated CBB, and the default color pallete is still there, so it’s from your theme. You can disable it in the theme.json file.

    Best, Phi.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.