Hi,
Is it possible to add custom Social Stuff links? I like the simplicity of the RSS, Facebook and Twitter links but would like to have a link to SoundCloud and LinkedIn.
Customise Social Stuff
6 posts from 4 voices-
Posted 11 months ago #
-
BTW, this is for the Coalition theme.
Thanks
Posted 11 months ago # -
Hi,
Open sidebar.php in your theme folder or by using Appearance > Editor then scroll to the bottom until you see this code.
####### SOCKET CONTAINER ####### echo "<div id='socket'>"; echo " <span class='copyright'>© ".__('Copyright','avia_framework')." - <a href='".home_url('/')."'>".get_bloginfo('name')."</a> - <a href='http://www.kriesi.at'>Wordpress Theme by Kriesi.at</a></span>"; echo " <ul class='social_bookmarks'>"; echo " <li class='rss'><a href='".avia_get_option('feedburner',get_bloginfo('rss2_url'))."'>RSS</a></li>"; if($facebook = avia_get_option('facebook')) echo "<li class='text-sep'>/</li><li class='facebook'><a href='".$facebook."'>Facebook</a></li>"; if($twitter = avia_get_option('twitter')) echo "<li class='text-sep'>/</li><li class='twitter'><a href='http://twitter.com/".$twitter."'>Twitter</a></li>"; echo " </ul><!-- end social_bookmarks-->"; echo "</div>"; ####### END SOCKET CONTAINER ####### echo "</div>";After the Twitter link you'll want to add this:
<li class='text-sep'>/</li><li class='twitter'><a href="http://your-link-url-to-soundcloud">SoundCloud</a></li> <li class='text-sep'>/</li><li class='twitter'><a href='http://your-link-url-to-LinkedIn">LinkedIn</a></li>So final results would be:
####### SOCKET CONTAINER ####### echo "<div id='socket'>"; echo " <span class='copyright'>© ".__('Copyright','avia_framework')." - <a href='".home_url('/')."'>".get_bloginfo('name')."</a> - <a href='http://www.kriesi.at'>Wordpress Theme by Kriesi.at</a></span>"; echo " <ul class='social_bookmarks'>"; echo " <li class='rss'><a href='".avia_get_option('feedburner',get_bloginfo('rss2_url'))."'>RSS</a></li>"; if($facebook = avia_get_option('facebook')) echo "<li class='text-sep'>/</li><li class='facebook'><a href='".$facebook."'>Facebook</a></li>"; if($twitter = avia_get_option('twitter')) echo "<li class='text-sep'>/</li><li class='twitter'><a href='http://twitter.com/".$twitter."'>Twitter</a></li><li class='text-sep'>/</li><li class='twitter'><a href='http://your-link-url-to-soundcloud'>SoundCloud</a></li> <li class='text-sep'>/</li><li class='twitter'><a href='http://your-link-url-to-LinkedIn'>LinkedIn</a></li>"; echo " </ul><!-- end social_bookmarks-->"; echo "</div>"; ####### END SOCKET CONTAINER ####### echo "</div>";Regards,
MyaPosted 11 months ago # -
Hi Mya,
I tried entering the code and I got an error message:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'
Kind regards,
ColinPosted 11 months ago # -
Use following code instead:
####### SOCKET CONTAINER ####### echo "<div id='socket'>"; echo " <span class='copyright'>© ".__('Copyright','avia_framework')." - <a href='".home_url('/')."'>".get_bloginfo('name')."</a> - <a href='http://www.kriesi.at'>Wordpress Theme by Kriesi.at</a></span>"; echo " <ul class='social_bookmarks'>"; echo " <li class='rss'><a href='".avia_get_option('feedburner',get_bloginfo('rss2_url'))."'>RSS</a></li>"; if($facebook = avia_get_option('facebook')) echo "<li class='text-sep'>/</li><li class='facebook'><a href='".$facebook."'>Facebook</a></li>"; if($twitter = avia_get_option('twitter')) echo "<li class='text-sep'>/</li><li class='twitter'><a href='http://twitter.com/".$twitter."'>Twitter</a></li><li class='text-sep'>/</li><li class='twitter'><a href='http://your-link-url-to-soundcloud'>SoundCloud</a></li> <li class='text-sep'>/</li><li class='twitter'><a href='http://your-link-url-to-LinkedIn'>LinkedIn</a></li>"; echo " </ul><!-- end social_bookmarks-->"; echo "</div>"; ####### END SOCKET CONTAINER ####### echo "</div>";Posted 11 months ago # -
Dude's suggestion worked fine for me. By the way I wouldn't worry to much for using the twitter class as its not really defined in the css
Posted 9 months ago #
Topic Closed
This topic has been closed to new replies.














