<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WpFunc &#187; style.css</title>
	<atom:link href="http://wpfunc.com/tag/style-css/feed" rel="self" type="application/rss+xml" />
	<link>http://wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Thu, 01 Dec 2011 01:17:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to Add Numbers Into Comments</title>
		<link>http://wpfunc.com/wordpress/how-to-add-numbers-into-comments.html</link>
		<comments>http://wpfunc.com/wordpress/how-to-add-numbers-into-comments.html#comments</comments>
		<pubDate>Fri, 02 Apr 2010 19:14:53 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[comment editing]]></category>
		<category><![CDATA[comment list]]></category>
		<category><![CDATA[comment number]]></category>
		<category><![CDATA[comments.php]]></category>
		<category><![CDATA[comments.php hacks]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[style.css]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=412</guid>
		<description><![CDATA[Hello! I know i&#8217;m late. But im working hard. I had a tow weeks of a travel for works. I was away from computer. Than i&#8217;m here now :) This trick is a comments.php hack :) Let&#8217;s begin&#8230;
Here is the code;

We will edit comments.php and we add some code into this file. First, look at [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Hello! I know i&#8217;m late. But im working hard. I had a tow weeks of a travel for works. I was away from computer. Than i&#8217;m here now :) This trick is a comments.php hack :) Let&#8217;s begin&#8230;<span id="more-412"></span></p>
<h3 style="text-align: justify;">Here is the code;</h3>
<p style="text-align: justify;"><span class="attention">We will edit your WordPress&#8217; theme. You should make a backup of <strong>comments.php</strong>. If you make a backup, continue&#8230;</span></p>
<p style="text-align: justify;">We will edit <span style="color: #ff0000;"><em><strong>comments.php</strong></em></span> and we add some code into this file. First, look at the code;</p>
<pre class="brush: php; title: ; notranslate">&lt;ol id=&quot;commentlist&quot;&gt;

&lt;?php $i = 1; ?&gt;
&lt;?php foreach ($comments as $comment) : ?&gt;
&lt;li &lt;?php comment_class(); ?&gt; id=&quot;comment-&lt;?php comment_ID() ?&gt;&quot;&gt;
&lt;?php echo get_avatar( $comment, 32 ); ?&gt;
&lt;?php comment_text() ?&gt;

&lt;p&gt;&lt;cite&gt;&lt;?php comment_type(_c('Comment|noun'), __('Trackback'), __('Pingback')); ?&gt; &lt;?php _e('by'); ?&gt; &lt;?php comment_author_link() ?&gt; &amp;#8212; &lt;?php comment_date() ?&gt; @ &lt;a href=&quot;#comment-&lt;?php comment_ID() ?&gt;&quot;&gt;&lt;?php comment_time() ?&gt;&lt;/a&gt;&lt;/cite&gt; &lt;?php edit_comment_link(__(&quot;Edit This&quot;), ' |'); ?&gt;&lt;/p&gt;
&lt;div class=&quot;commentnumber&quot;&gt;#&lt;?php echo $i; ?&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;?php $i++; ?&gt;

&lt;?php endforeach; ?&gt;</pre>
<p style="text-align: justify;">Do you see the added code? If you don&#8217;t i will write them here. Add this codes into your <strong><em><span style="color: #ff0000;">comments.php</span></em></strong> like me;</p>
<pre class="brush: php; title: ; notranslate">&lt;?php $i = 1; ?&gt;
&lt;div class=&quot;commentnumber&quot;&gt;#&lt;?php echo $i; ?&gt;&lt;/div&gt;
&lt;?php $i++; ?&gt;</pre>
<p style="text-align: justify;">If you want to add link to reply. Just change  #&lt;?php echo $i; ?&gt; with this code;</p>
<pre class="brush: php; title: ; notranslate">&lt;a href=&quot;#comment-&lt;?php comment_ID() ?&gt;&quot; title=&quot;&quot;&gt;#&lt;?php echo $i; ?&gt;&lt;/a&gt;</pre>
<p style="text-align: justify;">Finally, The CSS. Add this css into your <em><strong><span style="color: #ff0000;">style.css</span></strong></em>;</p>
<pre class="brush: css; title: ; notranslate">/* Comment Numbers */
.commentnumber {
position: absolute;
right: 5px;
top: 5px;
font-size: 18px;
color: #454545;
}
.commentlist li {
position: relative;
}
/* Comment Numbers */</pre>
<p style="text-align: justify;">That&#8217;s All. This is the screenshot :)</p>
<p style="text-align: justify;"><a class="highslide img_2" href="http://www.wpfunc.com/wp-content/uploads/2010/04/comment-number.png" onclick="return hs.expand(this)"><img class="alignnone size-full wp-image-415" title="Comment Numbers" src="http://www.wpfunc.com/wp-content/uploads/2010/04/comment-number.png" alt="" width="167" height="165" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/how-to-add-numbers-into-comments.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Build a Top Sliding Login Panel</title>
		<link>http://wpfunc.com/wordpress/build-a-top-sliding-login-panel.html</link>
		<comments>http://wpfunc.com/wordpress/build-a-top-sliding-login-panel.html#comments</comments>
		<pubDate>Sat, 21 Nov 2009 16:51:48 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[login panel]]></category>
		<category><![CDATA[style.css]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=303</guid>
		<description><![CDATA[This trick comes from Blog-Oh-Blog. You can create a login panel with simple jQuery and Html. We will edit header.php and style.css. Let&#8217;s begin&#8230;
Firstly, make a backup of header.php and style.css. After that you can add this codes.
In header.php;
Before &#60;/head&#62; tag;
Add this javascript code to your header.php before &#60;/head&#62; tag.
After &#60;body&#62; tag;
Add this HTML code [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This trick comes from Blog-Oh-Blog. You can create a login panel with simple jQuery and Html. We will edit header.php and style.css. Let&#8217;s begin&#8230;<span id="more-303"></span></p>
<p style="text-align: justify;">Firstly, make a backup of header.php and style.css. After that you can add this codes.</p>
<h2>In header.php;</h2>
<h3>Before &lt;/head&gt; tag;</h3>
<p style="text-align: justify;">Add this javascript code to your header.php before<strong><span style="color: #ff9900;"> &lt;/head&gt;</span></strong> tag.</p>
<pre class="brush: jscript; title: ; notranslate">&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function(){
$(&quot;.btn-slide&quot;).click(function(){
$(&quot;#slide-panel&quot;).slideToggle(&quot;slow&quot;);
});
});
&lt;/script&gt;</pre>
<h3>After &lt;body&gt; tag;</h3>
<p style="text-align: justify;">Add this HTML code after <strong><span style="color: #993366;">&lt;body&gt;</span></strong> tag where you want.</p>
<pre class="brush: xml; title: ; notranslate">&lt;div id=&quot;slide-panel&quot;&gt;&lt;!--SLIDE PANEL STARTS--&gt;
&lt;?php if ( ! is_user_logged_in() ){ ?&gt;
&lt;h2&gt;Login&lt;/h2&gt;
&lt;div class=&quot;loginform&quot;&gt;
&lt;div class=&quot;formdetails&quot;&gt;
&lt;form action=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-login.php&quot; method=&quot;post&quot;&gt;
&lt;label for=&quot;log&quot;&gt;Username : &lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;log&quot; id=&quot;log&quot; value=&quot;&lt;?php echo wp_specialchars(stripslashes($user_login), 1) ?&gt;&quot; size=&quot;20&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;label for=&quot;pwd&quot;&gt;Password : &lt;/label&gt;&lt;input type=&quot;password&quot; name=&quot;pwd&quot; id=&quot;pwd&quot; size=&quot;20&quot; /&gt;
&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Login&quot; class=&quot;button&quot; /&gt;
&lt;label for=&quot;rememberme&quot;&gt;&lt;input name=&quot;rememberme&quot; id=&quot;rememberme&quot; type=&quot;checkbox&quot; checked=&quot;checked&quot; value=&quot;forever&quot; /&gt; Remember me&lt;/label&gt;&lt;input type=&quot;hidden&quot; name=&quot;redirect_to&quot; value=&quot;&lt;?php echo $_SERVER['REQUEST_URI']; ?&gt;&quot; /&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;div class=&quot;loginregister&quot;&gt;
&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-register.php&quot;&gt;Register&lt;/a&gt; |
&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-login.php?action=lostpassword&quot;&gt;Recover password&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;!--loginform ends--&gt;
&lt;?php } else { ?&gt;
&lt;div class=&quot;loginform&quot;&gt;
&lt;h2&gt;Control Panel&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-admin/&quot;&gt;Dashboard&lt;/a&gt;&lt;/li&gt; |
&lt;li&gt;&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-admin/post-new.php&quot;&gt;Write new Post&lt;/a&gt;&lt;/li&gt; |
&lt;li&gt;&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-admin/page-new.php&quot;&gt;Write new Page&lt;/a&gt;&lt;/li&gt; |
&lt;li&gt;&lt;a href=&quot;&lt;?php echo wp_logout_url( get_bloginfo('url') ); ?&gt;&quot; title=&quot;Logout&quot;&gt;Logout&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;&lt;!--loginform ends--&gt;
&lt;?php }?&gt;
&lt;/div&gt;&lt;!--SLIDE PANEL ENDS--&gt;
&lt;div class=&quot;slide&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;btn-slide&quot;&gt;&lt;?php if ( ! is_user_logged_in() ){ ?&gt;Login&lt;?php } else { ?&gt;Logout&lt;?php }?&gt;&lt;/a&gt;&lt;/div&gt;&lt;!--LOGIN BUTTON TEXT--&gt;</pre>
<p style="text-align: justify;">Save and send your <strong><span style="color: #ff0000;">header.php</span></strong> to your server.</p>
<h3>And Style&#8230;</h3>
<p style="text-align: justify;">Open your <span style="color: #ff0000;"><strong>style.css</strong></span> and add this lines to end of file.</p>
<pre class="brush: css; title: ; notranslate">* {margin:0; padding:0; outline:0;}
#slide-panel{ background-color:#000;border-bottom-style:solid;border-bottom-width:2px;display:none;height:100px;margin:auto;}
.slide {width:950px; margin:auto;}
.btn-slide:link, .btn-slide:visited{color:#fff; float:right; display:block;font-size:14px; text-transform:uppercase; font-weight:bold;height:26px; padding:3px 0 3px 0;line-height:22px;text-align:center;text-decoration:none;width:100px; background-color:#000; font-family:Arial;}
.loginform {width:950px; margin:auto; color:#999; font-family:Arial, Helvetica, sans-serif;}
.formdetails {color:#FFF; font-size:12px;padding:5px;}
.formdetails input{border:none; padding:2px 5px 2px 5px; background-color:#EFEFEF;}
.loginregister {color:#999; padding:5px;}
.loginregister a:link, .loginregister a:visited {color:#FFF; font-size:11px; text-decoration:underline;}
.loginform h2 {padding:10px 10px 10px 0; font-size:18px; font-weight:normal; text-transform:uppercase;}
.loginform ul li {display:inline;}
.loginform ul li a:link, .loginform ul li a:visited {color:#FFF; font-size:12px; text-decoration:underline;}</pre>
<p>That&#8217;s All. Look at <strong><a href="http://www.blogohblog.com/labs/sliding_login_panel.html" target="_blank">DEMO!</a></strong> and the<strong> <a href="http://www.blogohblog.com/how-to-build-a-top-sliding-login-panel/" target="_blank">original post!</a></strong></p>
<p>Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/build-a-top-sliding-login-panel.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Highlight the Author Comments!</title>
		<link>http://wpfunc.com/wordpress/highlight-the-author-comments.html</link>
		<comments>http://wpfunc.com/wordpress/highlight-the-author-comments.html#comments</comments>
		<pubDate>Thu, 01 Oct 2009 18:34:55 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[comments.php]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[highliht]]></category>
		<category><![CDATA[style.css]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/wordpress/highlight-the-author-comments.html</guid>
		<description><![CDATA[You can seperate the author comment from the reader comments. That&#8217;s needed some change in your css file and comments.php file. After that author comments shown in a different background color. Let&#8217;s begin&#8230;
Here is the code;
First one in comments.php file. Find this code;
And change with this one;
After that open your style.css file and add this [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">You can seperate the author comment from the reader comments. That&#8217;s needed some change in your css file and comments.php file. After that author comments shown in a different background color. Let&#8217;s begin&#8230;<span id="more-234"></span></p>
<h3>Here is the code;</h3>
<p style="text-align: justify;">First one in <span style="color: #ff0000;"><strong>comments.php</strong></span> file. Find this code;</p>
<pre class="brush: plain; title: ; notranslate">&lt;li &lt;?php echo $oddcomment; ?&gt;id=&quot;comment-&lt;?php comment_ID() ?&gt;&quot;&gt;</pre>
<p style="text-align: justify;"><strong><em>And change with this one;</em></strong></p>
<pre class="brush: plain; title: ; notranslate">&lt;li class=&quot;&lt;?php if ($comment-&gt;user_id == 1) $oddcomment = &quot;authorstyle&quot;; echo $oddcomment; ?&gt;&quot;</pre>
<p style="text-align: justify;">After that open your<strong> <span style="color: #ff0000;">style.css</span></strong> file and add this lines in to it;</p>
<pre class="brush: css; title: ; notranslate">.authorstyle {
background-color: #B3FFCC !important;
} </pre>
<p style="text-align: justify;">That&#8217;s All. Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/highlight-the-author-comments.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make a magazin style wordpress dropdown menu?</title>
		<link>http://wpfunc.com/wordpress/how-to-make-a-magazin-style-wordpress-dropdown-menu.html</link>
		<comments>http://wpfunc.com/wordpress/how-to-make-a-magazin-style-wordpress-dropdown-menu.html#comments</comments>
		<pubDate>Fri, 25 Sep 2009 09:02:49 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[dropdown menu]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[magazin style]]></category>
		<category><![CDATA[style.css]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=220</guid>
		<description><![CDATA[This think and coding coming from Jean-Baptiste Jung. When i read his Ubuntu Theme Colletction  article for choose my new Ubuntu theme i saw an article title Magazin Style Dropdown menu and i clicked that link. I think you can make this easily. Smells good!
1st. Step: Changing Header.php;
Just add this code to your theme&#8217;s header.php. You [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This think and coding coming from Jean-Baptiste Jung. When i read his Ubuntu Theme Colletction  article for choose my new Ubuntu theme i saw an article title Magazin Style Dropdown menu and i clicked that link. I think you can make this easily. Smells good!<span id="more-220"></span></p>
<h3 style="text-align: justify;">1st. Step: Changing Header.php;</h3>
<p style="text-align: justify;">Just add this code to your <strong><span style="color: #ff0000;">theme&#8217;s header.php</span></strong>. You can show your categories/sub-categories or pages/sub-pages.</p>
<pre class="brush: plain; title: ; notranslate">&lt;ul id=&quot;nav2&quot; class=&quot;clearfloat&quot;&gt;
&lt;li&gt;&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/&quot; class=&quot;on&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
 	&lt;?php wp_list_categories('orderby=name&amp;exlude=181&amp;title_li=');
 	$this_category = get_category($cat);
 	if (get_category_children($this_category-&gt;cat_ID) != &quot;&quot;) {
 		echo &quot;&lt;ul&gt;&quot;;
wp_list_categories('orderby=id&amp;show_count=0&amp;title_li=&amp;use_desc_for_title=1&amp;child_of='.$this_category-&gt;cat_ID);
 		echo &quot;&lt;/ul&gt;&quot;;
 	}
?&gt;
&lt;/ul&gt;
</pre>
<h3 style="text-align: justify;">2nd. Step: The CSS;</h3>
<p style="text-align: justify;">You will change your <strong><span style="color: #ff0000;">theme&#8217;s style.css</span> </strong>file for this menu&#8217;s style. Just copy this codes below.</p>
<pre class="brush: css; title: ; notranslate">#nav2{
        background-color: #202020;
        display: block;
        font-size:1.1em;
        height:50px;
        width:100%;
}

#nav2, #nav2 ul {
line-height: 1;
list-style: none;
}

#nav2 a ,#nav2 a:hover{
border:none;
display: block;
text-decoration: none;
}

#nav2 li {
float: left;
list-style:none;
}

#nav2 a,#nav2 a:visited {
color:#109dd0;
display:block;
font-weight:bold;
padding:6px 12px;
}

#nav2 a:hover, #nav2 a:active {
color:#fff;
text-decoration:none
}

#nav2 li ul {
border-bottom: 1px solid #a9a9a9;
height: auto;
left: -999em;
position: absolute;
width: 900px;
z-index:999;
}

#nav2 li li {
width: auto;
}

#nav2 li li a,#nav2 li li a:visited {
        color:#109dd0;
font-weight:normal;
font-size:0.9em;
}

#nav2 li li a:hover,#nav2 li li a:active {
color:#fff;
}

#nav2 li:hover ul, #nav2 li li:hover ul, #nav2 li li li:hover ul, #nav2 li.sfhover ul, #nav2 li li.sfhover ul, #nav2 li li li.sfhover ul {
left: 30px;
}
</pre>
<p style="text-align: justify;">If you <strong><span style="color: #ff0000;">ensure</span></strong> about <strong><span style="color: #ff0000;">IE6</span></strong> add this java code below;</p>
<pre class="brush: jscript; title: ; notranslate">&lt;!--//--&gt;&lt;![CDATA[//&gt;&lt;!--

sfHover = function() {
var sfEls = document.getElementById(&quot;nav2&quot;).getElementsByTagName(&quot;LI&quot;);
for (var i=0; i&lt;sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=&quot; sfhover&quot;;
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(&quot; sfhover\\b&quot;), &quot;&quot;);
}
}
}
if (window.attachEvent) window.attachEvent(&quot;onload&quot;, sfHover);

//--&gt;&lt;!]]&gt;
</pre>
<p style="text-align: justify;">That&#8217;s All. The Original post is <a href="http://www.catswhocode.com/blog/wordpress-magazine-style-horizontal-dropdown-menu" target="_blank">WordPress: “Magazine style” Horizontal dropdown menu</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/how-to-make-a-magazin-style-wordpress-dropdown-menu.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

