Support » Plugin: Easy Bootstrap Shortcode » Compatibility with a bootstrap theme

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author osCitas Themes

    (@oscitas)

    Hi,

    Thanks for using our plugin. Regarding the bootstrap css/js files, there are two different ways you can include your custom files.

    1. you can use the same handler name(bootstrap-icons,bootstrap) so that yours files will not be overwritten by our plugin files, but you have to make sure that your enqueue script/style will run before EBS plugin enqueue script/style. But please note that our plugin is bootstrap 3.0 based so include bootstrap 3.0 file not bootstrap 2.0.

    2. We are going to launch new version today or max by tomorrow, where we are using the theme option for file settings, so you can set those options in your code to the values you want such as

    EBS_BOOTSTRAP_JS_LOCATION to (‘1’ – for plugin file, ‘2’ – don’t user EBS files but use from other plugin or theme, ‘3’ – to user CDN path)

    EBS_BOOTSTRAP_CSS_LOCATION to (‘1’ – for plugin file, ‘2’ – don’t user EBS files but use from other plugin or theme)

    so you can use the

    update_option( 'EBS_BOOTSTRAP_JS_LOCATION', 2 );
    update_option( 'EBS_BOOTSTRAP_CSS_LOCATION', 2 );

    to set files location to your theme/other plugin.

    And about the custom class for image heading, we will make this change in our future release.

    Best of luck for your theme, let us know, in case you need any other help.

    Thread Starter Swashata Ghosh

    (@swashata)

    Hi,

    Thanks for your response (also I recognize you are from India, so a very happy Durga Puja 🙂 ).

    I understand the options concept and I am using bootstrap 3 only. Also I would need to dequeue the bootstrap-icon CSS file, as the float: left conflicts directly with default bootstrap behavior. About the update_option will it override the default plugin settings, or is it the plugin settings itself? Because, if it is plugin settings itself and some user chooses to host file from CDN then functionality will break. Unless there’s some foolproof way to ensure that no other bootstrap resources are loaded, I guess I need to use wp_deregister_*.

    Thanks for your help.

    Plugin Author osCitas Themes

    (@oscitas)

    Hi,

    Thanks and same to you, we have launched the new version. We have provided few new settings so that anybody can give inbuilt compatibility with our plugin. such as you are creating theme and want to use our plugin to give your users more flexibility to add responsive content, however you like to use your custom css/js files. So now you can do this, and don’t worry, for this you just have to paste the following code to your init hook or install hook of your plugin and it will start working

    After adding this code user will not be able to change the files location for EBS plugin as user can’t see the EBS Settings link of LHS menu in admin panel

    update_option( 'EBS_CUSTOM_OPTION', 1 );
    update_option( 'EBS_BOOTSTRAP_JS_LOCATION', 2 );
    update_option( 'EBS_BOOTSTRAP_CSS_LOCATION', 2 );

    To give use the custom css for icons
    update_option( 'EBS_CUSTOM_BOOTSTRAP_ICON_CSS', 1 );

    And to give use the custom css for admin
    update_option( 'EBS_CUSTOM_BOOTSTRAP_ADMIN_CSS', 1 );

    Thread Starter Swashata Ghosh

    (@swashata)

    Hi,

    Thanks for the clarifications. I will update the theme to use your newer APIs.

    Plugin Author osCitas Themes

    (@oscitas)

    Anytime, and also try our new plugin Easy WordPress Parallax Slider.

    Thread Starter Swashata Ghosh

    (@swashata)

    Looks outstanding. Thanks 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Compatibility with a bootstrap theme’ is closed to new replies.