{"id":1448,"date":"2012-04-07T23:24:40","date_gmt":"2012-04-08T06:24:40","guid":{"rendered":"http:\/\/www.dognmonkey.com\/techs\/?p=1448"},"modified":"2012-04-07T23:24:40","modified_gmt":"2012-04-08T06:24:40","slug":"add-floating-icons-on-wordpress-blog","status":"publish","type":"post","link":"https:\/\/www.dognmonkey.com\/techs\/add-floating-icons-on-wordpress-blog.html","title":{"rendered":"Add Floating Icons On WordPress Blog"},"content":{"rendered":"<p style=\"text-align: center;\"><em>I like floating Icons on the side page, move up\/down with the scroll, cool. There are tons of tutorial about this, I just wrote this up to remind me how to do mine. <\/em><\/p>\n<p style=\"text-align: center;\"><em>Add these lines in our theme style.css.<\/em><\/p>\n<blockquote>\n<p style=\"text-align: left;\"><em><\/em>\/*side column*\/<br \/>\n#return_top a { position:absolute; position:fixed; left:0; bottom:15px;<br \/>\ndisplay:block; height:138px; width:38px; background:url(images\/return-top.png) no-repeat left top; }\/* retun-top.png is in the images folder*\/<br \/>\n#return_top a:hover { background:url(images\/return-top.png) no-repeat right top; text-decoration:none; }<br \/>\n#fixed_icons {<br \/>\nbackground: transparent;<br \/>\npadding:5px 5px 5px 2px;<br \/>\nwidth: 36px; \/*the width of the icon images*\/<br \/>\nposition: fixed;<br \/>\nbottom: 25%; \/*this position from the bottom of the page up*\/<br \/>\nleft: 0.20%;<br \/>\nborder-radius:5px;<br \/>\n-moz-border-radius:5px;<br \/>\n-webkit-border-radius:5px;<br \/>\n}<\/p>\n<p>#fixed_icons a {<br \/>\ndisplay: block;<br \/>\ntext-indent: 24px;<br \/>\nheight: 32px; \/*height of icon max*\/<br \/>\npadding-bottom:3px;<br \/>\ntext-decoration: none;<br \/>\n}<\/p>\n<p>#fixed_icons #twitter { background: url(&#8220;images\/icons\/twitter_32.png&#8221;) no-repeat; }<br \/>\n#fixed_icons #facebook { background: url(&#8220;images\/icons\/facebook_32.png&#8221;) no-repeat; }\/*theme icon images*\/<br \/>\n#fixed_icons #linkedin { background: url(&#8220;images\/icons\/myspace_32.png&#8221;) no-repeat; }<br \/>\n#fixed_icons #rss { background: url(&#8220;images\/icons\/rss_32.png&#8221;) no-repeat; }<br \/>\n\/*end sidecolumn*\/<\/p><\/blockquote>\n<p style=\"text-align: center;\"><em>And these lines in the footer.php<\/em><\/p>\n<blockquote>\n<p style=\"text-align: left;\"><em><\/em>&lt;div id=&#8221;fixed_icons&#8221;&gt;<br \/>\n&lt;a href=&#8221;\/\/www.facebook.com\/sharer.php?u=&lt;?php the_title(); ?&gt;&lt;?php the_permalink(); ?&gt;&#8221; id=&#8221;facebook&#8221; title=&#8221;Share On Facebook&#8221; target=&#8221;_blank&#8221;&gt;&lt;\/a&gt; \/*this icon is from theme*\/<br \/>\n&lt;g:plusone annotation=&#8221;none&#8221;&gt;&lt;\/g:plusone&gt; \/*this icon will be supplied by Google*\/<br \/>\n&lt;span class=&#8217;st_twitter_large&#8217; st_title='&lt;?php the_title(); ?&gt;&#8217; st_url='&lt;?php the_permalink(); ?&gt;&#8217; displayText=&#8217;TWEETTWEET&#8217;&gt;&lt;\/span&gt;\/*these icons are from sharethis plugins*\/<br \/>\n&lt;span class=&#8217;st_linkedin_large&#8217; st_title='&lt;?php the_title(); ?&gt;&#8217; st_url='&lt;?php the_permalink(); ?&gt;&#8217; displayText=&#8217;LINKEDIN&#8217;&gt;&lt;\/span&gt;<br \/>\n&lt;span class=&#8217;st_digg_large&#8217; st_title='&lt;?php the_title(); ?&gt;&#8217; st_url='&lt;?php the_permalink(); ?&gt;&#8217; displayText=&#8217;DIGG&#8217;&gt;&lt;\/span&gt;<br \/>\n&lt;span class=&#8217;st_stumbleupon_large&#8217; st_title='&lt;?php the_title(); ?&gt;&#8217; st_url='&lt;?php the_permalink(); ?&gt;&#8217; displayText=&#8217;share&#8217;&gt;&lt;\/span&gt;<br \/>\n&lt;span class=&#8217;st_email_large&#8217; st_title='&lt;?php the_title(); ?&gt;&#8217; st_url='&lt;?php the_permalink(); ?&gt;&#8217; displayText=&#8217;EMAIL&#8217;&gt;&lt;\/span&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;div id=&#8221;return_top&#8221;&gt; \/*this icon is from theme*\/<br \/>\n&lt;a href=&#8221;#header&#8221;&gt;&amp;nbsp;&lt;\/a&gt;\/*return to header beginning*\/<br \/>\n&lt;\/div&gt;<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><em>We&#8217;re using sharethis plugin to display these icons, but we have to NOT display them on each page and select big icons to display with the css sizes.<\/em><\/p>\n<p style=\"text-align: center;\"><em><\/em><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"shraethis plugin options\" src=\"\/media\/wpplugins\/sharethis\/sharethis.jpg\" alt=\"sharethis options\" width=\"573\" height=\"364\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" title=\"sharethis plugin options\" src=\"\/media\/wpplugins\/sharethis\/sharethis1.jpg\" alt=\"sharethis options\" width=\"555\" height=\"452\" \/><\/p>\n<p style=\"text-align: center;\"><em>That&#8217;s it.<\/em><\/p>\n<p style=\"text-align: center;\"><em><\/em><ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><\/ul><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I like floating Icons on the side page, move up\/down with the scroll, cool. There are tons of tutorial about this, I just wrote this up to remind me how to do mine. Add these lines in our theme style.css. \/*side column*\/ #return_top a { position:absolute; position:fixed; left:0; bottom:15px; display:block; height:138px; width:38px; background:url(images\/return-top.png) no-repeat left <a href=\"https:\/\/www.dognmonkey.com\/techs\/add-floating-icons-on-wordpress-blog.html\" class=\"more-link\">&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-1448","post","type-post","status-publish","format-standard","hentry","category-plugins"],"views":2100,"_links":{"self":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/1448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/comments?post=1448"}],"version-history":[{"count":0,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/1448\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/media?parent=1448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/categories?post=1448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/tags?post=1448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}