Too much stuff in the header (2 posts)

  1. rawalex
    Posted 2 years 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
    Theme Author

    Posted 2 years 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)

    add_filter( 'raindrops_wp-head-callback','remove_raindrops_embed_meta' );
    function remove_raindrops_embed_meta( $function ) {
    	return 'dummy';
    function dummy(){

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic