Support » Plugin: Bootstrap's Columns Controller » Button referenced using ID instead of Class

  • Hello,

    The button “Add Columns” is referenced by id:

    function bcc_media_button(){
    	echo "<div id='bcc-media-button' class='button'><span class='dashicons dashicons-tagcloud'></span> Add Columns</div>";
    }

    This causes issues with some plugins like ACF – Advanced Custom Fields making Bootstrap’s Columns Controller unable to work. If you try to enable ACF and this plugin the “Add Columns” won’t work.

    I’ve found a solution for this: reference “Add Columns” by a class instead of an ID:

    function bcc_media_button(){
    	echo "<div class='bcc-media-button' class='button'><span class='dashicons dashicons-tagcloud'></span> Add Columns</div>";
    }

    $('.bcc-media-button').click(function(){

    This way it will place nice with other plugins. Is it possible to change this on the repository?

    Thank you.

  • The topic ‘Button referenced using ID instead of Class’ is closed to new replies.