WordPress.org

Ready to get started?Download WordPress

Forums

raindrops
Too much stuff in the header (2 posts)

  1. rawalex
    Member
    Posted 4 months ago #

    For the theme raindrops, I am seeing an absolute ton of data in the headers, like:

    "<!--/*<! [CDATA[*/
    .gallery { margin: auto; overflow: hidden; width: 100%; }

    It goes on and on, and seems to be generated in the wp_head section. If this is CSS code, is there not some more simple way to include a file rather than write all this stuff out? I am actually getting complaints from Google webmaster tools that there is too much stuff in the headers.

    Any ideas?

  2. nobita
    Member
    Theme Author

    Posted 4 months ago #

    Hi rawalex

    If your design finished.

    copy from header embed css and paste style.css last line.

    next Remove header embed css

    add to functions.php first line(<?php before)

    <?php
    add_filter( 'raindrops_wp-head-callback','remove_raindrops_embed_meta' );
    
    function remove_raindrops_embed_meta( $function ) {
    	return 'dummy';
    }
    function dummy(){
    
    }
    ?>

    Thank you.

Reply

You must log in to post.

About this Theme

About this Topic