• Resolved Sebastian

    (@imcube7)


    Hi!

    I’m having trouble getting the visibility settings to work.
    I played around with the settings, but none of my settings are having an effect.
    For example I tried to set all settings for the Advanced Heading to be editable for admins only (Enabled All Settings For > Minimum User Role Admin). Then I logged out of the site and logged back in with an editor account (User Role Editor). I clicked on an Advanced Heading Block and all settings were still visible and available to edit. As I mentioned, I than tried various combinations of the visibility settings but none of them took effect.

    Did I miss something here, or did I not set the visibility settings correct?
    Of course I made sure the settings were saved. In fact they are still saved, but don’t have any effect if I’m logged in with an editor account.

    My current setup is WordPress 5.3, Gutenberg 6.9.0, Kadence Blocks 1.7.5. But the problem already existed in the previous versions of all the above mentioned components.

    I really hope you can help me with this, because the visibility setting were one of the main reasons I decided to use Kadence Blocks and to buy the Pro version.
    I know I should have tested this before making that decision…

    Thanks for your help in advance!

    Sebastian

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Ben Ritner – Kadence WP

    (@britner)

    Thanks for posting about this, I’ve found the bug, I’ll push a fix live today.

    Ben

    Thread Starter Sebastian

    (@imcube7)

    Hi Ben!

    Thanks for the super fast fix!
    The visibility settings now seem to work as expected!
    This is great!

    Only one thing: Is it possible to add the “Animate On Scroll” Settings (Pro version only) to these visibility settings? Or maybe make them admin only by default? Right now these setting are available to users with editor role too. I didn’t check the other roles.

    Sebastian

    Plugin Author Ben Ritner – Kadence WP

    (@britner)

    Yeah I’m in the process of adding defaults for animate on scroll and visibility settings.

    Ben

    Thread Starter Sebastian

    (@imcube7)

    Perfect! Thank you so much!

    Sebastian

    Thread Starter Sebastian

    (@imcube7)

    Hi Ben!

    I’m afraid I have to come back to this post/issue.
    I now realized that most previously saved visibility settings get “lost”.

    For example I did set the visibility settings for all available blocks to “Enabled All Settings For: Minimum User Role Admin” and saved these settings. Then I double checked if all settings were correct and saved. I closed the post I was on, went to the dashboard and came back to edit another post. When I checked the visibility settings almost all settings were back the default state. The only blocks that kept the previously made settings were:
    * Spacer Divider
    * Advanced Heading
    * Advanced Gallery
    All other settings were set back to default.

    As I mentioned above, the visibility settings are very important to me. I hope this issue can be fixed soon.

    Sebastian

    WP 5.3 / Generatepress 2.4.1 / Gutenberg 7.0.0 / Kadence Blocks 1.7.7 / Kadence Blocks Pro 1.3.5

    P.S. I know you decided to move the Block Defaults Settings into Gutenberg, but I think it makes more sense to have them on a dedicated plugin settings page, available only to admin users to set default colors, default fonts and default block settings including visibility settings. Maybe in a future update it will be possible to choose the settings location?

    Hmm, I’ve not been able to recreate this, Are you in any way editing how the rest API works?

    Ben

    Thread Starter Sebastian

    (@imcube7)

    Hi Ben!

    I’m not editing the REST API. At least not knowingly ??
    I was able to recreate it on a test installation too.
    In the test installation all the set visibility settings get lost as soon as you leave the Kadence Settings. Only the made visibility settings for “Spacer Divider” and “Advanced Gallery” remain saved.
    This is really strange and as I mentioned a crucial feature before handing over a project.

    Thanks for helping me sorting this out in advance.

    Sebastian

    Let me see if I can narrow this down by having you test. Go into a page and only set the visibility for 1 block. Use the advanced heading for example. Then leave and come back, does the same thing happen?

    Ben

    Thread Starter Sebastian

    (@imcube7)

    Hi Ben!

    That did the trick!
    Looks like I have to save the visibility settings for one block only, then leave the Kadence Block Controls (I actually leave the edited page), come back to that page and the block controls, save the visibility settings for the next block, and so on.
    Only with this procedure the settings stay saved.
    As a momentary work-around this is fine. I’m glad I get these settings saved now.

    I guess I’d still prefer to bulk save all these settings on a dedicated Kadence Blocks Settings Page that’s accessible from the Dashboard/Admin Menu.

    Thanks for the tip!

    One more question: If I move a site from a local to live server, all the block settings should stay saved, right? Do they get saved in the database?

    Sebastian

    Thread Starter Sebastian

    (@imcube7)

    Just a quick addition:

    You don’t have to leave the edited page and come back. It’s enough to to save the visibility settings for one block, then switch to the document/block settings, come back to the kadence block controls and save the visibility settings for the next block.

    I am updating how this works to fix the bug where you need to leave the settings area.

    One more question: If I move a site from a local to live server, all the block settings should stay saved, right? Do they get saved in the database?

    Yes they are saved in the database.

    Ben

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Kadence Blocks Controls > Block Defaults > Visibility Controls not working’ is closed to new replies.