A free wordpress theme I took I dont want the css linked i want it integrated... Basically... The css code as part of the template,.. I tried for a while and I cant do it. code for template: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> Theme Preview</title> <meta name="generator" content="WordPress 2.6.2" /> <!-- leave this for stats --> <link rel="stylesheet" href="http://wp-themes.com/wp-content/themes/publicizer/style.css" type="text/css" media="screen" /> <link rel="alternate" type="application/rss+xml" title="Theme Preview RSS Feed" href="http://wp-themes.com/?feed=rss2" /> <link rel="pingback" href="http://wp-themes.com/wp/xmlrpc.php" /> <meta name='robots' content='noindex,nofollow' /> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://wp-themes.com/wp/xmlrpc.php?rsd" /> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://wp-themes.com/wp/wp-includes/wlwmanifest.xml" /> <meta name="generator" content="WordPress 2.6.2" /> <!--[if IE 6]> <link rel="stylesheet" href="http://wp-themes.com/wp-content/themes/publicizer/ie.css" type="text/css" media="screen" /> <![endif]--> </head> <body> <div class="wrap"> <div class="header"> <div class="blogtitle"> <h1><a href="http://wp-themes.com" title="Theme Preview">Theme Preview <span>Blog</span></a></h1> <span class="desc">Previewing Another WordPress Blog</span> <div class="titleright"></div><div class="clear"></div> </div> <div class="searchbox"> <form method="get" id="searchform" action="http://wp-themes.com/"> <img src="http://wp-themes.com/wp-content/themes/publicizer/images/stl.jpg" align="left" /><img src="http://wp-themes.com/wp-content/themes/publicizer/images/str.jpg" align="right" /><span class="clear"></span> <span class="search"> Search on Theme Preview: <input type="text" class="text" value="" name="s" id="s"></input><input type="image" src="http://wp-themes.com/wp-content/themes/publicizer/images/search.jpg" class="button" id="searchsubmit" value="Search"></input> <span class="clear"></span></span> <img src="http://wp-themes.com/wp-content/themes/publicizer/images/sbl.jpg" align="left" /><img src="http://wp-themes.com/wp-content/themes/publicizer/images/sbr.jpg" align="right" /></span class="clear"></span> </form> </div> <div class="clear"></div> </div> <div class="spacer"></div> <div class="menu"> <ul> <li class="page_item current_page_item"><a href="http://wp-themes.com"> Homepage</a></li> <li class="page_item page-item-2"><a href="http://wp-themes.com/?page_id=2" title="About"> About</a></li> <span class="clear"></span> </ul> <a href="http://wp-themes.com/?feed=rss" class="RSS">Subscribe to RSS</a> <div class="clear"></div> </div><div class="content"> <img src="http://wp-themes.com/wp-content/themes/publicizer/images/st.jpg" align="right" style="margin-bottom: -7px;" /><span class="clear"></span> <div class="leftcontent"><div class="in"> <div class="article"> <span class="date">July 17, 2008</span> <h2 id="title"><a href="http://wp-themes.com/?p=19" title="Worth A Thousand Words"> Worth A Thousand Words</a></h2> <span class="meta">Author: Theme Admin - Categories: <a href="http://wp-themes.com/?cat=1" title="View all posts in Uncategorized" rel="category"> Uncategorized</a> - Tags: <a href="http://wp-themes.com/?tag=tree" rel="tag"> tree</a></span> <div class="postcontent"> <p><img src="http://wpdotorg.wordpress.com/files/2008/07/bark.jpg" alt="Tree Bark" /></p> <p>Tree bark</p> </div> </div> <div class="article"> <span class="date">June 21, 2008</span> <h2 id="title"><a href="http://wp-themes.com/?p=14" title="More Tags"> More Tags</a></h2> <span class="meta">Author: Theme Admin - Categories: <a href="http://wp-themes.com/?cat=1" title="View all posts in Uncategorized" rel="category"> Uncategorized</a> - Tags: <a href="http://wp-themes.com/?tag=wordpress" rel="tag"> wordpress</a></span> <div class="postcontent"> <p>More of these posts need tags.</p> </div> </div> <div class="article"> <span class="date"></span> <h2 id="title"><a href="http://wp-themes.com/?p=8" title="HTML"> HTML</a></h2> <span class="meta">Author: Theme Admin - Categories: <a href="http://wp-themes.com/?cat=1" title="View all posts in Uncategorized" rel="category"> Uncategorized</a> - Tags: <a href="http://wp-themes.com/?tag=html" rel="tag"> html</a>, <a href="http://wp-themes.com/?tag=wordpress" rel="tag"> wordpress</a></span> <div class="postcontent"> <p>What HTML tags would you like to see?</p> <p>Let’s start with an unordered list:</p> <ul> <li>One</li> <li>Two</li> <li>Three</li> <li>Four</li> </ul> <p>And then move on to a more interesting ordered list:</p> <ol> <li>one, two <ol> <li>buckle my shoe</li> </ol> </li> <li>three, four <ol> <li>knock at the door</li> </ol> </li> <li>Five, six <ol> <li>pick up sticks</li> </ol> </li> <li>Seven, eight, lay them straight <ol> <li>Nine, ten, a big fat hen</li> <li>Eleven, twelve, dig and delve</li> <li>Thirteen, fourteen, maids a’courting</li> <li>Fifteen, sixteen, maids in the kitchen</li> <li>Seventeen, eighteen, maids a’waiting</li> <li>Nineteen, twenty, my platter’s empty …</li> </ol> </li> </ol> </div> </div> <div class="article"> <span class="date">June 20, 2008</span> <h2 id="title"><a href="http://wp-themes.com/?p=6" title="Links"> Links</a></h2> <span class="meta">Author: Theme Admin - Categories: <a href="http://wp-themes.com/?cat=1" title="View all posts in Uncategorized" rel="category"> Uncategorized</a></span> <div class="postcontent"> <p>A few well known WordPress links: <a href="http://wordpress.org/"> WordPress.org</a>, <a href="http://codex.wordpress.org/Main_Page"> the Codex</a> and <a href="http://wordpress.org/download/"> the download page</a>.</p> </div> </div> <div class="article"> <span class="date"></span> <h2 id="title"><a href="http://wp-themes.com/?p=4" title="Category Hierarchy"> Category Hierarchy</a></h2> <span class="meta">Author: Theme Admin - Categories: <a href="http://wp-themes.com/?cat=6" title="View all posts in First Child Category" rel="category"> First Child Category</a>, <a href="http://wp-themes.com/?cat=8" title="View all posts in One Grandchild Category" rel="category"> One Grandchild Category</a>, <a href="http://wp-themes.com/?cat=5" title="View all posts in Parent" rel="category"> Parent</a>, <a href="http://wp-themes.com/?cat=7" title="View all posts in Second Child Category" rel="category"> Second Child Category</a></span> <div class="postcontent"> <p>This post has 4 categories, part of a hierarchy that is 3 deep.</p> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce euismod commodo ante. Suspendisse potenti. Nunc pellentesque quam vel pede. Ut a lorem non urna molestie euismod. Fusce consequat tortor eu urna. Pellentesque aliquam, pede eget tincidunt feugiat, nunc massa hendrerit magna, non ultricies neque lectus nec dui. In hac habitasse platea dictumst. Sed feugiat quam eget lectus. Fusce at pede. Morbi sagittis tristique tortor. Sed erat justo, blandit ac, dignissim in, pretium ut, urna.</p> </div> </div> <div class="article"> <span class="date">June 4, 2008</span> <h2 id="title"><a href="http://wp-themes.com/?p=1" title="Hello world!"> Hello world!</a></h2> <span class="meta">Author: Theme Admin - Categories: <a href="http://wp-themes.com/?cat=1" title="View all posts in Uncategorized" rel="category"> Uncategorized</a></span> <div class="postcontent"> <p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p> </div> </div> <div class="navigation"> <div class="alignleft"></div> <div class="alignright"></div> </div> </div></div> <div class="sidebar"> <div class="leftsidebar"><div class="in"> <h2 id="cat">Categories</h2> <ul> <li class="cat-item cat-item-5"><a href="http://wp-themes.com/?cat=5" title="View all posts filed under Parent"> Parent</a> <ul class='children'> <li class="cat-item cat-item-6"><a href="http://wp-themes.com/?cat=6" title="View all posts filed under First Child Category"> First Child Category</a> </li> <li class="cat-item cat-item-7"><a href="http://wp-themes.com/?cat=7" title="View all posts filed under Second Child Category"> Second Child Category</a> <ul class='children'> <li class="cat-item cat-item-8"><a href="http://wp-themes.com/?cat=8" title="View all posts filed under One Grandchild Category"> One Grandchild Category</a> </li> </ul> </li> </ul> </li> <li class="cat-item cat-item-1"><a href="http://wp-themes.com/?cat=1" title="View all posts filed under Uncategorized"> Uncategorized</a> </li> </ul> <h2 id="arh">Monthly Archive</h2> <ul> <li><a href='http://wp-themes.com/?m=200807' title='July 2008'>July 2008</a></li> <li><a href='http://wp-themes.com/?m=200806' title='June 2008'>June 2008</a></li> </ul> </div></div> <div class="rightsidebar"><div class="in"> <h2>BlogRoll</h2> <ul> <li><a href="http://wordpress.org/development/">Development Blog</a></li> <li><a href="http://codex.wordpress.org/">Documentation</a></li> <li><a href="http://wordpress.org/extend/plugins/">Plugins</a></li> <li><a href="http://wordpress.org/extend/ideas/">Suggest Ideas</a></li> <li><a href="http://wordpress.org/support/">Support Forum</a></li> <li><a href="http://wordpress.org/extend/themes/">Themes</a></li> <li><a href="http://planet.wordpress.org/">WordPress Planet</a></li> </ul> </div></div> <div class="clear"></div> </div> <div class="clear"></div> </div><div style="height: 1px;"></div> <div class="footer"> <div class="footer1"> <a href="http://wp-themes.com/?feed=rss2" class="footer_rss"> Entries (RSS)</a> <a href="http://wp-themes.com/?feed=comments-rss2" class="footer_rss_comm"> Comments (RSS)</a> <a href="http://www.wordpress.org/" class="footer_wp" target="_blank"> WordPress</a> <a href="http://wp-themes.com/wp-admin/" class="footer_login"> Log In</a> </div> <div class="footer2"> Theme by: <a href="http://www.sitepronews.com/" target="_blank"> SiteProNews</a> Built for <a href="http://www.wordpress.com"> Wordpress</a> </div> </div> </body> </html> Code (markup): code for css: /* Theme Name: Publicizer Theme URI: http://www.sitepronews.com/2008/08/11/wordpress-themes-publicizer-151/ Description: 3 Column WordPress Theme using Web 2.0 colors and very easy to use for any blog or you can even use it as a normal website and blog combo. Version: 1.6 Author: <a href="http://www.sitepronews.com/">SiteProNews</a> Author URI: http://www.sitepronews.com/ Tags: 3 columns, wordpress themes, publicizer, cool themes, fixed width For the WordPress community (GPL). */ /*** GENERAL TAGS ***/ body { margin: 0px; padding: 0px; background: #7ED3E5 url(images/bg.jpg) repeat-x top; font-family: 'Verdana','Arial','Trebuchet MS',sans-serif; font-size: 12px; color: #576064; } h1,h2,h3,h4,h5 { font-weight: normal; margin: 0px; } a, a:link, a:active { color: #0685BB; text-decoration: none; } .wrap { width: 960px; margin: 0 auto 0 auto; } .clear { display: block; clear: both; } /*** HEADER ***/ .header { } .blogtitle { width: 450px; float: left; background: #ffffff url(images/headerbg.jpg) no-repeat left bottom; padding: 40px 0 0 0; } .titleright { width: 38px; height: 34px; display: block; background: url(images/headerbgr.jpg) no-repeat; float: right; margin-top: -10px;} .blogtitle h1 { font-size: 30px; font-family: 'Georgia','Times New Roman'; text-transform: uppercase; margin: 0px 0px 0px 20px; } .blogtitle h1 a { color: #215561; } .blogtitle h1 a span { color: #C66128; } .blogtitle .desc { background: #EAF9FC url(images/descr.jpg) no-repeat top right; margin: 0px 0px 0px 20px; font-size: 13px; color: #058FAD; width: 380px; display: block; padding: 6px;} .searchbox { width: 480px; float: right; background: #525B64; margin-top: 30px; } .search { padding: 10px; display: block; color: #ffffff; font-size: 14px;} .search .text { width: 305px; border: solid 3px #343645; padding: 6px; margin-top: 10px; float: left; } .search .button { float: right; margin-top: 10px;} /**** MENU ****/ .spacer { height: 12px; } .menu ul { padding: 0px; margin: 0px; list-style: none; width: 790px; float: left;} .menu ul li { display: inline; } .menu ul li a { width: 140px; display: block; float: left; padding: 10px 0 12px 0; font-size: 15px; color: #ffffff; font-weight: bold; text-transform: uppercase; text-align: center; } .menu ul li a:hover { color: #EDFAFF; } .menu ul li.current_page_item a { background: #ffffff url(images/menulinktop.jpg) no-repeat center top; color: #058DAA; } .RSS { text-indent: -9999px; margin-top: 10px; float: right; width: 163px; height: 17px; background: url(images/rss.jpg); display: block; } /*** CONTENT ***/ .content { background: #ffffff url(images/sidebarbg.jpg) repeat-y right; } .leftcontent { width: 530px; float: left; padding-top: 15px; border-right: solid 1px #CEDDE4; } .sidebar { width: 429px; float: right; padding-top: 15px;} .leftsidebar { width: 230px; float: left; } .rightsidebar { width: 188px; float: right; } .in { margin: 15px; } .leftsidebar .in { width: 200px; } .rightsidebar .in { width: 160px; margin: 15px 14px 15px 14px; } .leftcontent .in { width: 500px; } .navigation { display: block; background: #E7F8FF; border-left: solid 2px #CCDDE4; padding: 6px; } /*** ARTICLES ***/ .article { margin-bottom: 50px; } .date { padding-left: 20px; font-size: 15px; font-weight: bold; display: block; font-family: 'Arial','Trebuchet MS','Verdana'; color: #A8B4B9; background: url(images/calendar.jpg) no-repeat center left; } .article h2 {font-size: 24px; font-family: 'Trebuchet MS','Arial','Verdana',sans-serif; } .article h2 a { color: #048BC4; margin: 2px 0 2px 0; } .article .meta { font-size: 11px; display: block; color: #BF835F; } .article .meta a { color: #C66128; } .postcontent { line-height: 18px; margin-top: 15px; border-top: dashed 1px #BFCCD2; } /*** SIDEBAR **/ .sidebar h2 { font-size: 18px; font-family: 'Gerogia','Times New Roman'; text-transform: uppercase; letter-spacing: -1px; color: #244C5D; } .sidebar ul { padding: 0px; margin: 0px; list-style: none; border-top: solid 1px #CEDDE4; margin: 4px 0 20px 0; } .sidebar ul li { padding: 6px 0 6px 0; border-bottom: dashed 1px #CEDAE0; } .sidebar ul li a { font-size: 13px; } .sidebar h2#cat { padding-left: 20px; background: url(images/cat.jpg) no-repeat center left; } .sidebar h2#arh { padding-left: 20px; background: url(images/cal.jpg) no-repeat center left; } /*** Comments h2 ***/ .comments { border-top: solid 1px #CEDDE4; padding-top: 10px; margin-top: -5px;} .comments h2 { margin-bottom: 15px; } .comment { display: block; padding: 10px; } .alt { background: #E7F8FF; } .comment-meta { color: #92A8B1; border-bottom: solid 1px #CCE3EB; padding-bottom: 4px; } .comment-meta span { font-size: 14px; font-weight: bold; } .commentform { background: #E7F8FF; display: block; padding: 10px; margin-top: 10px;} .commentform span { font-size: 16px; display: block; color: #8B8477; margin-bottom: 4px; } .commentform input, .commentform textarea { width: 350px; background: #ffffff; border: #ffffff; padding: 4px; margin-bottom: 10px; } .commentform input.subscribe_button{ width: 153px; height: 33px; background: url(images/comment-off.jpg); display: block; text-indent: -9999px; } .commentform input.subscribe_button:hover { background: url(images/comment-on.jpg); } /*** FOOTER ***/ .footer p { font-size: 13px; color: #014B68; margin: 10px 0px 35px 0px;} .footer span { font-weight: bold; } .footer a { color: #088CBF; background: #A7E8F5; } .footer1, .footer2 { text-align: center; font-size: 11px; } .footer1 a, .footer2 a{ background: none; color: #fff; } .footer1 { margin: 0 auto; width: 500px; padding: 8px 0; border-bottom: 1px #626262 solid; } .footer1 a{ margin: 0 10px; } .footer2 { padding: 8px 0; } a.footer_rss { background: url(images/icons/rss.gif) left center no-repeat; padding-left: 17px; } a.footer_rss_comm { background: url(images/icons/comm.gif) left center no-repeat; padding-left: 15px; } a.footer_wp { background: url(images/icons/w.gif) left center no-repeat; padding-left: 15px; } a.footer_login { background: url(images/icons/user.gif) left center no-repeat; padding-left: 16px; } .aligncenter { display: block; margin-left: auto; margin-right: auto; } .alignleft { float: left; } .alignright { float: right; } img.centered { display: block; margin-left: auto; margin-right: auto; } img.alignright { padding: 4px; margin: 0 0 2px 7px; display: inline; } img.alignleft { padding: 4px; margin: 0 7px 2px 0; display: inline; } Code (markup): I think there is a problem in the css code but I may be wrong.
I think that might confuse Wordpress because it looks in the CSS file for information about the theme. If you want to try it, remove the CSS comments and put the rest between style tags in the head section, and remove the stylesheet links there. <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> Theme Preview</title> <meta name="generator" content="WordPress 2.6.2" /> <!-- leave this for stats --> <link rel="alternate" type="application/rss+xml" title="Theme Preview RSS Feed" href="http://wp-themes.com/?feed=rss2" /> <link rel="pingback" href="http://wp-themes.com/wp/xmlrpc.php" /> <meta name='robots' content='noindex,nofollow' /> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://wp-themes.com/wp/xmlrpc.php?rsd" /> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://wp-themes.com/wp/wp-includes/wlwmanifest.xml" /> <meta name="generator" content="WordPress 2.6.2" /> <style type="text/css"> CSS CONTENTS (without comments) </style> </head> Code (markup):