Support » Plugin: Post and Page Builder by BoldGrid - Visual Drag and Drop Editor » BoldGrid is overriding my template and Bootstrap CSS

  • Resolved kpruhs

    (@kpruhs)


    I just setup a new WordPress account and copied over my development site however, BoldGrid is the default page builder but my site was not created with/for BoldGrid and it’s is overriding some of my template css and Bootstrap 4 styles.

    My main question is, how do I keep it from overriding Bootstrap and template styles?

    I tried deleting all the BoldGrid plugins but it broke a bunch of other plugins on the site. I temporarily fixed it with a hack– I renamed the offending BoldGrid css files. But that won’t last and it’s surely not the correct way to deal with this.

    Any help in resolving this issue would be greatly appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Jesse Owens

    (@jessecowens)

    Hi @kpruhs
    First, I’m really sorry to hear about the frustrations, and I am glad to hear that you were able to find a workaround to rename the CSS files.

    Your first idea is probably the best- if you’re using a different builder (or the WordPress “Gutenberg” Editor)- disabling the BoldGrid Post and Page Builder plugin is the long-term fix. Can you clarify what else broke when you disabled it?

    If that’s not an option, a better “hack” might be to use a plugin like Code Snippets to de-queue the offending stylesheets. Let me know which files you had to rename, and I can help you with a code snippet that’ll work long-term.

    kpruhs

    (@kpruhs)

    I’m a programmer. I’ve been working with PHP for more than a decade. I’ve mostly worked on enterprize applications and, actually tried to avoid working with WordPress.

    Now I’ve been ‘forced’ into using WordPress so other team members can add and edit content. I created our theme and templates (very basic) but I’m not really familiar with the functions and structure of WP yet.

    Apparently, we have to have BoldGrid installed on the site. It’s part of a package of plugins that use the BoldGrid registration key. If it’s not there the other plugins revert to the free version and we lose premium features.

    I’m wondering if I can add some code to the template functions.php file to de-queue the style sheets? That looks like the appropriate place (?). Any hints as to where I can get more info about doing this in a proper WordPress way would be helpful.

    • This reply was modified 6 months ago by kpruhs.
    • This reply was modified 6 months ago by kpruhs.
    Plugin Support Jesse Owens

    (@jessecowens)

    Thanks @kpruhs!
    Yes, you can use the wp_dequeue_style function in your functions.php file hooked into the wp_enqueue_scripts hook. If you need help finding the necessary $handle argument, just let us know which files you had to rename.

    That said, you can still use BoldGrid’s other plugins (including their premium versions) as long as the license key in the Settings -> BoldGrid Connect is your premium license key, and only disable the Post and Page Builder plugin (and its premium extension, if installed).

    • This reply was modified 6 months ago by Jesse Owens. Reason: Fixing codex reference
    kpruhs

    (@kpruhs)

    @jessecowens Thanks for the help. You have pointed me in the right direction and now I know what to research. It looks like it will be a simple addition to the functions file.

    Plugin Support Jesse Owens

    (@jessecowens)

    Glad to help! I’d like to point out the code example from Marius on that documentation page, make sure you’re using a priority higher than 10 when you add your action.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘BoldGrid is overriding my template and Bootstrap CSS’ is closed to new replies.