All my header code seems to be displaying inline, including CSS!
-
I’ve just finished developing a bespoke theme for http://www.homestogether.net/ and have noticed that ALL CSS and a lot of coding is visible from the source code:
Here is the <head> section of the header.php file in the theme:
<?php /** * Header template for our theme * * Displays all of the <head> section and everything up till <div id="main">. * * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" /> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <meta name="p:domain_verify" content="2128589c6e637dceaefa30d42a6690b7"/> <title><?php /* * Print the <title> tag based on what is being viewed. */ global $page, $paged; wp_title( '|', true, 'right' ); // Add the blog name. bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description"; // Add a page number if necessary: if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ); ?></title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> <link href="http://fonts.googleapis.com/css?family=Cabin:400,500,700" rel="stylesheet" type="text/css"> <?php /* * We add some JavaScript to pages with the comment form * to support sites with threaded comments (when in use). */ if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); /* * Always have wp_head() just before the closing </head> * tag of your theme, or you will break many plugins, which * generally use this hook to add elements to <head> such * as styles, scripts, and meta tags. */ wp_head(); ?> </head>I cannot for the life of me work out what is causing this. I have deactivated all plugins and reactivated them, and none of them seem to be making a difference. The plugins being used are:
Black Studio TinyMCE Widget
Version 2.2.5Contact Form 7
Version 4.2.2Custom Facebook Feed Pro
Version 2.1.1Enhanced Text Widget
Version 1.4.5EWWW Image Optimizer
Version 2.5.0Exec-PHP
Version 4.9NextGEN Gallery by Photocrati
Version 2.1.2Page-list
Version 5.1Page Builder by SiteOrigin
Version 2.1.4Regenerate Thumbnails
Version 2.2.4Responsive Menu
Version 2.8.1Share Buttons by AddToAny
Version 1.6.2SiteOrigin Widgets Bundle
Version 1.4Types – Complete Solution for Custom Fields and Types
Version 1.6.6.2WP Accessibility
Version 1.4.2WP Migrate DB
Version 0.7.1WP Subtitle
Version 2.4.1
The topic ‘All my header code seems to be displaying inline, including CSS!’ is closed to new replies.