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
Post a Comment