<?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>WP Garage &#187; CSS</title>
	<atom:link href="http://wpgarage.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpgarage.com</link>
	<description>wordpress tricks, hacks, and tips</description>
	<lastBuildDate>Tue, 15 May 2012 11:49:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to add images and styles to the WordPress custom menu</title>
		<link>http://wpgarage.com/css/how-to-add-images-and-styles-to-the-wordpress-custom-menu/</link>
		<comments>http://wpgarage.com/css/how-to-add-images-and-styles-to-the-wordpress-custom-menu/#comments</comments>
		<pubDate>Tue, 24 May 2011 09:59:06 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[css styles]]></category>
		<category><![CDATA[custom menu]]></category>
		<category><![CDATA[icons]]></category>
		<category><![CDATA[Images]]></category>
		<category><![CDATA[screen options]]></category>

		<guid isPermaLink="false">http://?p=978</guid>
		<description><![CDATA[<p>There are lots of good plugins out there for displaying social media profiles on your site, but what if you want to use your own icons? And you want your client to be able to easily manage the links to these social profiles? The solution is to create a custom menu in WordPress with unique [...]</p><p>This post was originally published at <a href="http://wpgarage.com/css/how-to-add-images-and-styles-to-the-wordpress-custom-menu/">How to add images and styles to the WordPress custom menu</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-right"><a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://wpgarage.com/css/how-to-add-images-and-styles-to-the-wordpress-custom-menu/" data-url="http://illum.in/qpZgYo" data-text="How to add images and styles to the WordPress custom menu" data-count="vertical" data-via="wpgarage" data-related="wpgarage"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-right"><iframe src="http://www.facebook.com/plugins/like.php?href=http://wpgarage.com/css/how-to-add-images-and-styles-to-the-wordpress-custom-menu/&amp;layout=box_count&amp;show_faces=true&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://wpgarage.com/css/how-to-add-images-and-styles-to-the-wordpress-custom-menu/"></g:plusone></div></div><p>There are lots of good plugins out there for displaying social media profiles on your site, but what if you want to use your own icons? And you want your client to be able to easily manage the links to these social profiles? The solution is to create a custom menu in WordPress with unique CSS styles assigned to each of those menu items. But how?</p>
<p>Here&#8217;s what we worked on: A custom menu with unique icons for Twitter, YouTube and Facebook:</p>
<p><a href="http://wpgarage.com/wp-content/uploads/2011/05/connecticons.png"><img class="alignnone size-full wp-image-984" title="connecticons" src="http://wpgarage.com/wp-content/uploads/2011/05/connecticons.png" alt="" width="263" height="237" /></a></p>
<p>&nbsp;</p>
<p>After searching the web for how to add images to the WordPress custom menu, we tried the <a href="http://wordpress.org/extend/plugins/custom-menu-images/">Custom Menu Images</a> plugin with no success. We even tried some crazy <a href="http://wpveda.com/how-to-add-images-inside-wordpress-3-0-custom-menu">workarounds</a> like trying to put the image path inside the navigation label! WTW?!  Crazy, but true. And it didn&#8217;t even work in the end. It printed out the  character tag &amp;lt;  reading the HTML instead of rendering it.</p>
<p>And then, we saw the light! In the form of the Screen Options pull down tab right there in the Custom Menu screen in front of our faces! Well, actually the light came from this <a href="http://www.ivorpadilla.net/cuztomizing-wordpress-custom-menu-icons/">post</a> that told us where to look. How did we ever miss it? It was so obvious! Once you know where to look, that is. So here&#8217;s what to do:</p>
<ol>
<li>Go into your Custom Menu (functionality added in WordPress 3.0) under Appearance &gt; Menus</li>
<li>Click on Screen Options in the top right corner of your screen</li>
<li>Check the checkbox next to CSS Styles in the Show Advanced Menu Properties</li>
<li>Create your menu</li>
<li>In your menu item, in the CSS Classes field, enter the name of the CSS style you want to associate with that menu item. Just the name of the class without the period. Ex. &#8220;twitterstyle&#8221;</li>
<li>Go into your CSS file and add the style and add images and/or styles as you see fit.</li>
</ol>
<p>&nbsp;</p>
<p><img class="alignnone size-full wp-image-981" title="wpcssstyles" src="http://wpgarage.com/wp-content/uploads/2011/05/wpcssstyles1-e1305816663856.png" alt="" /></p>
<p>That&#8217;s it. More coolness that Screen Options can do, <a href="news-views/quicktip-show-more-pages-in-your-wordpress-screen/">Show more pages in your WordPress Dashboard</a>.</p>
<p>This post was originally published at <a href="http://wpgarage.com/css/how-to-add-images-and-styles-to-the-wordpress-custom-menu/">How to add images and styles to the WordPress custom menu</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/css/how-to-add-images-and-styles-to-the-wordpress-custom-menu/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>New CSS for aligning images, block elements and captions</title>
		<link>http://wpgarage.com/css/css-classes-align-images-block-captions/</link>
		<comments>http://wpgarage.com/css/css-classes-align-images-block-captions/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 09:19:52 +0000</pubDate>
		<dc:creator>Miriam Schwab</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[captions]]></category>
		<category><![CDATA[Images]]></category>
		<category><![CDATA[upgrades]]></category>

		<guid isPermaLink="false">http://wordpressgarage.com/?p=340</guid>
		<description><![CDATA[<p>I was recently working on a WordPress site, and I just couldn&#8217;t get my images to left-align with the text so that the text would wrap around it. It was wrapping in the text editor in the admin, but on the front end the image stuck out of the top of the text. Rebecca, our [...]</p><p>This post was originally published at <a href="http://wpgarage.com/css/css-classes-align-images-block-captions/">New CSS for aligning images, block elements and captions</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-right"><a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://wpgarage.com/css/css-classes-align-images-block-captions/" data-url="http://illum.in/qC7r9Z" data-text="New CSS for aligning images, block elements and captions" data-count="vertical" data-via="wpgarage" data-related="wpgarage"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-right"><iframe src="http://www.facebook.com/plugins/like.php?href=http://wpgarage.com/css/css-classes-align-images-block-captions/&amp;layout=box_count&amp;show_faces=true&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://wpgarage.com/css/css-classes-align-images-block-captions/"></g:plusone></div></div><p>I was recently working on a WordPress site, and I just couldn&#8217;t get my images to left-align with the text so that the text would wrap around it. It was wrapping in the text editor in the admin, but on the front end the image stuck out of the top of the text.</p>
<p>Rebecca, our genius Web Project Manager at <a title="illuminea marketing &amp; media" href="http://illuminea.com">illuminea</a>, did a search and discovered on the <a title="CSS on the WordPress Codex" href="http://codex.wordpress.org/CSS">WordPress Codex</a> that a bunch of new styles are needed in your style.php file in order to get the images to do what you want from WordPress version 2.5 and up. If you are using an older theme, you may not have these styles in your style sheet. The same classes are used to align images that have a caption (as of WordPress 2.6).</p>
<p>Here are the styles &#8211; you can just copy and paste them into your style.css file or wherever your CSS styles are located:</p>
<pre class="wp-code-highlight prettyprint">.aligncenter,
div.aligncenter {
   display: block;
   margin-left: auto;
   margin-right: auto;
}

.alignleft {
   float: left;
}

.alignright {
   float: right;
}

.wp-caption {
   border: 1px solid #ddd;
   text-align: center;
   background-color: #f3f3f3;
   padding-top: 4px;
   margin: 10px;
   /* optional rounded corners for browsers that support it */
   -moz-border-radius: 3px;
   -khtml-border-radius: 3px;
   -webkit-border-radius: 3px;
   border-radius: 3px;
}

.wp-caption img {
   margin: 0;
   padding: 0;
   border: 0 none;
}

.wp-caption p.wp-caption-text {
   font-size: 11px;
   line-height: 17px;
   padding: 0 4px 5px;
   margin: 0;
}
</pre>
<p>This post was originally published at <a href="http://wpgarage.com/css/css-classes-align-images-block-captions/">New CSS for aligning images, block elements and captions</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/css/css-classes-align-images-block-captions/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

