• Hello,

    I am doing some testing to see if Kadence will work for my company. I’ve set up an “Advanced Button” with default styles but not all of the default settings are being used.
    Here are two issues.
    1.
    The custom class I added is not being generated, it is not in the page source.

    2.
    The hover background color, border color and font color are not using my defaults. My default styles are not being overwritten, they aren’t there at all. Below is what I see when inspecting in chrome. Both background and border color should be #d08328 per my defaults. Font color should be #eeeeee.

    .kt-btns_72711d-01 .kt-btn-wrap-0 .kt-button:hover, .kt-btns_72711d-01 .kt-btn-wrap-0 .kt-button:focus {
    background: rgba(68, 68, 68, 1);

    .kt-btns_72711d-01 .kt-btn-wrap-0 .kt-button:hover, .kt-btns_72711d-01 .kt-btn-wrap-0 .kt-button:focus {
    color: #ffffff;
    border-color: rgba(68, 68, 68, 1);

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey,
    Defaults are different from Global styles. Defaults just define what your settings will be when you create a new block, they are not going to override previously created and designed blocks. Does that make sense?

    In terms of adding a class, where are you adding? In the advanced section or in the individual button settings?

    Ben

    Thread Starter jtonge

    (@jtonge)

    Ok, as soon as I created a new button it behaved as expected. I set this up via the Kadence “Block Defaults” settings under Gutenberg. Are global defaults only available in the pro version?
    This documentation
    http://docs.kadencethemes.com/kadence-blocks/installing-kadence-blocks/
    seems to be using Settings->Kadence Blocks:
    In my setup, when I go to Settings->Kadence Blocks and click on one of the block edit icons I’m given a pop-up “Setting defaults has moved into Gutenberg……”

    Hey,
    Those are “global defaults”, meaning that for every block you create the default setting will be applied. They are not global styles or settings that would in any way apply to previously created content they only define the default when a new block is created.

    A global style would in some way link your block to some global setting that when updated would force updates on all blocks. That currently isn’t an option, Gutenberg makes such a thing very ticky to even consider because the content is rendered static on save. Perhaps one day either the Gutenberg team will make a way for this or I”ll create something but as of now if you want to style something then change that style from one central place you need to use custom CSS classes and style the whole thing with your own custom CSS applying to that class.

    I hope that makes sense.

    The docs are just a bit outdated the settings were moved to Gutenebg and that just needs to be updated.

    Ben

    Thread Starter jtonge

    (@jtonge)

    Thanks, I will try using the customizor api to force things.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Advanced Button Default settings’ is closed to new replies.