• meiermller

    (@meiermller)


    hi!

    i want to remove this css code in the head, because it makes no sense to put it in the header. it belongs to the css file!:

    how to remove this code:

    <link rel="stylesheet" href="/wp-content/plugins/fancybox-for-wordpress/css/fancybox.css" type="text/css" media="screen" />
    	<style type="text/css">
    		div#fancy_inner {border-color:#333333}
    		div#fancy_close {right:-15px;top:-12px}
    		div#fancy_bg {background-color:#000000; border:1px solid #3f3f3f}
    		div#fancy_title table {display:none}
    	</style>

    i tried

    remove_action( 'wp_head', 'mfbfw_init' );

    and this:

    do_action('wpp_init', 'remove_fancybox_from_wpp');
    
    function remove_fancybox_from_wpp() {
      wp_deregister_script('jquery-fancybox');
      wp_deregister_style('jquery-fancybox-css');
    }

    but BOTH do not work … i use fancybox v2.7.5

    thanks in advance for your help!

The topic ‘[Plugin: FancyBox for WordPress] how to remove css in header?’ is closed to new replies.