{"id":2376,"date":"2013-05-18T15:53:16","date_gmt":"2013-05-18T14:53:16","guid":{"rendered":"http:\/\/t-machine.org\/?p=2376"},"modified":"2013-05-18T15:53:35","modified_gmt":"2013-05-18T14:53:35","slug":"wordpress-add-logo-top-right-in-twenty-twelve-theme","status":"publish","type":"post","link":"http:\/\/new.t-machine.org\/index.php\/2013\/05\/18\/wordpress-add-logo-top-right-in-twenty-twelve-theme\/","title":{"rendered":"WordPress: Add logo top right in Twenty-Twelve theme"},"content":{"rendered":"<p>I&#8217;m not sure why, but out-of-the-box, WordPress&#8217;s excellent TwentyTwelve theme prevents you from putting anything in the (empty!) top-right area of the page. It&#8217;s a great place for a &#8220;contact&#8221; link or similar (and check out the Suffusion theme to see how many widget areas a good WP theme ought to have&#8230;).<br \/>\n<!--more--><\/p>\n<h2>What&#8217;s preventing it?<\/h2>\n<p>After a little exploration, I found that the H1 tag is inheriting a:<\/p>\n<p>[css]<br \/>\nclear:both;<br \/>\n[\/css]<\/p>\n<p>although this didn&#8217;t show up in Chrome&#8217;s CSS inspector (hmm&#8230;). Anyway, the fix was quite simple:<\/p>\n<ol>\n<li>From WP dashboard, go: Appearance -%gt; Editor\n<li>Select the &#8220;<strong>Header<\/strong>(header.php)&#8221; file\n<li>near the top, find the &#8220;&lt;hgroup&gt;    &lt;h1&gt;&#8221; part\n<li>in the h1 tag, append an override to get rid of the clear:\n<ul>\n<li>&#8220;&lt;h1 [&#8230;whatever was there already&#8230;] <strong>style=&#8221;clear:none;&#8221;<\/strong>&gt;&#8221;\n<\/ul>\n<li>above the h1 tag, but inside the hgroup tag, add your logo:\n<ul>\n<li>an image: &#8220;&lt;img src=&#8221;&#8230;your image&#8230;&#8221;\/&gt;\n<li>some php \/ a widget: &#8220;[copy paste whatever you wanted]&#8221;\n<\/ul>\n<li>Don&#8217;t forget: click &#8220;Update file&#8221; button on that page, or you&#8217;ll lose your changes ;)\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m not sure why, but out-of-the-box, WordPress&#8217;s excellent TwentyTwelve theme prevents you from putting anything in the (empty!) top-right area of the page. It&#8217;s a great place for a &#8220;contact&#8221; link or similar (and check out the Suffusion theme to see how many widget areas a good WP theme ought to have&#8230;).<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,45],"tags":[],"_links":{"self":[{"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/posts\/2376"}],"collection":[{"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/comments?post=2376"}],"version-history":[{"count":2,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/posts\/2376\/revisions"}],"predecessor-version":[{"id":2378,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/posts\/2376\/revisions\/2378"}],"wp:attachment":[{"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/media?parent=2376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/categories?post=2376"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/tags?post=2376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}