Include Bootstrap in a Wordpress plugin : the right way? -


i include bootstrap in wordpress plugin (to use css+js features on front end). problem not "how include it", how include the right way.

i mean :

  • if other plugin's developers included bootstrap, every bootstrap files loaded twice (or more). bad perf, , can generate conflicts.
  • what if user using old version of bootstrap theme or plugin?

is there way include bootstrap right way? answer looks pretty interesting : wrapp twitter bootstrap in custom wordpress plugin it's part.

thanks!

call wp_enqueue_style() , wp_enqueue_script() per wordpress codex docs, in general use theme functions.php


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -