cssのみでFacebookシェアボタン、twitterツイートボタンをカスタマイズする方法
最新更新日:2017年4月10日(月曜日)
公開日:2014年2月14日(金曜日)
公式のシェアボタン・ツイートボタンを設置してみたけど、もうちょっと良い感じにしたい。
そんなあなたのためにコピペでカスタマイズできるコードをご紹介します。
PHP(htmlに直書きだとダメです。)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <a class="facebook-iine" href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>" onClick="window.open(encodeURI(decodeURI(this.href)), 'sharewindow', 'width=550, height=450, personalbar=0, toolbar=0, scrollbars=1, resizable=!' ); return false;"> Facebookでシェア </a> <a class="twitter-tweet" href="http://twitter.com/intent/tweet?text=【<?php the_title(); ?> | <?php the_permalink(); ?>】" onClick="window.open(encodeURI(decodeURI(this.href)), 'tweetwindow', 'width=550, height=450, personalbar=0, toolbar=0, scrollbars=1, resizable=!' ); return false;"> twitterでツイート </a> |
CSS
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | a.facebook-iine{ width : 50% ; padding : 20px 0 ; color : #fff ; text-align : center ; background-color : #3b5998 ; height : 30px ; display : block ; text-decoration : none ; font-size : 20px ; float : left ; margin-bottom : 10px ; } a.facebook-iine:hover{ background-color : #6277a1 ; } a.twitter-tweet{ width : 50% ; padding : 20px 0 ; color : #fff ; text-align : center ; background-color : #00acee ; height : 30px ; display : block ; text-decoration : none ; font-size : 20px ; float : left ; margin-bottom : 10px ; } a.twitter-tweet:hover{ background-color : #6aafca ; } |
地方で集客するために知っておくべき27の集客方法
色んな広告を試したけど、さんざんな結果だった。どうやって集客していいか分からないという方のために書きました。
実は業態・業種によって集客方法は全然違います。例えば以下の法則を知って居ましたか?
- LINE@の運用次第で反応率◯%以上になる
- FAXDMという古典的な方法が通用する業界がある
- 集客におけるホームページの役割って?
本書では、全業種の集客経験を元に実際の反応率を公開しています。
是非無料でダウンロードして、今後の集客にご活用ください。