• Resolved Umbrovskis.com

    (@rolandinsh)


    Just suggestion for next release:
    instead of
    add_action('wp_head', 'mfbfw_init');
    put it in footer
    add_action('wp_footer', 'mfbfw_init');

    Good practice to put all javascript in footer ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • There’s a setting for this in the options page but i’ve tried now on my blog and didn’t work, so i’ll check this method instead.

    Changed it on my own. <head> looks a lot better now.

    Would be great if the code

    <style type="text/css">
    	div#fancy_inner {border-color:#BBBBBB}
    	div#fancy_close {right:-15px;top:-12px}
    	div#fancy_bg {background-color:#FFFFFF}
    </style>

    would be in the css-file, too.

    In addition: Is it possible to put the whole JS-code in a file like with
    <script type='text/javascript' src='???/plugins/fancybox-for-wordpress/js/jquery.fancybox-1.2.6.min.js?ver=1.3.2'></script>
    ?

    Hi, a fix for the footer option will be in next update.

    The code that’s appended to the html source is because it is generated by the plugin depending on the settings, that why it’s not stored in the same css/js files.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: FancyBox for WordPress] Suggestion: put mfbfw_init in footer’ is closed to new replies.