• Resolved sbeaney

    (@sbeaney)


    Instead of showing the roles and checkboxes inline like in the screenshot, there are vertical toggles with labels for On/Off, but not for which role each toggle applies to.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author wpTerra

    (@wpterra)

    Hi @sbeaney
    thanks for your post.

    Can you tell me the exact version number of wpbakery you are using?

    Also a screenshot could be helpful.

    Thank you!

    Thread Starter sbeaney

    (@sbeaney)

    We’re using version 6.2.0 packaged with the Salient theme (https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266).

    I’m not sure how to attach a screenshot though, so here’s a link to a screenshot I took: https://i.imgur.com/jy5tFyD.png

    Plugin Author wpTerra

    (@wpterra)

    Hi @sbeaney ,

    thanks for the info.
    We′ll look into this as soon as possible.

    Plugin Author wpTerra

    (@wpterra)

    Hi @sbeaney ,

    we′ve tested the plugin with WPBakery 6.2.0 and the latest WordPress version and it still works like before and as seen on our screenshots.

    There is possibly CSS code from your theme or from any other plugin that turns the checkboxes into these toggles.

    You could try switching your theme, you could also try deactivating all other plugins and see if the issue comes from any other plugin.

    Without access to the page we cannot provide more help here.
    If you like to give us access you can send a mail to [email protected] with the needed credentials.

    Thread Starter sbeaney

    (@sbeaney)

    I tried disabling all the other plugins except for WPBakery Page Builder removed all custom CSS but it didn’t have an affect on the toggle labels.

    Digging through the elements viewer it looks like there’s no HTML responsible for displaying the role in the popup, although the input values are set to the specific role they’re responsible for as seen in this screen shot:

    View post on imgur.com

    Since this version of Page Builder is bundled with the theme, I suppose it’s likely they have proprietary code added that’s incompatible with this plugin.

    Thread Starter sbeaney

    (@sbeaney)

    I just disabled the version of Page Builder bundled with the theme and installed/activated the standard version. Doing this enabled your plugin to work as intended and shows the checkboxes inline properly with the labels. The issue appears to be with the way the version bundled with the theme handles checkboxes (overriding to display toggles?).

    I poked around in ~/plugins/hide-content-by-role-for-wpbakery/include/admin.php to see how it was registering the roles and applying them to the contend editor, but there doesn’t seem to be anything I can easily modify to make work with the theme’s version. It’s unfortunate because your plugin is exactly what I’m looking for, but since I’m stuck using the theme’s page builder plugin I’m out of luck.

    Thank you for helping me look into this, and I do appreciate the time spent troubleshooting on your end. I’m sorry it turned out to be a waste. I’ll try reaching out to the theme’s author to see if there’s anything they can do to improve compatibility.

    Plugin Author wpTerra

    (@wpterra)

    If you know CSS, you could try to disable the CSS rules that turn the checkboxes into toggles.
    Maybe also the theme author can help you with this.
    It′s not really best practice to turn ALL checkboxes into toggles ??
    Good luck!

    Thread Starter sbeaney

    (@sbeaney)

    Unfortunately the problem can’t be fixed with CSS since the DOM structure is overridden to display the toggles. I suppose I could write some JS to parse the new DOM nodes and rewrite it to use checkboxes, but I think that would end up taking way too much time ??

    Honestly I can’t believe Salient would override the checkbox value “type” in the attributes array passed to the standard plugin’s vc_add_param() function. That seems so anti-consumer to me when it would be just as easy to extend the functionality to add their own “toggle” type.

    I think I am going to write them a strongly worded support ticket explaining my dissatisfaction lol.

    Thank you again for your time helping me debug this!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Roles not showing up next to toggles’ is closed to new replies.