Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #12894

    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.

    #77088

    BTW, this is for the Coalition theme.

    Thanks

    #77089

    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'>&copy; ".__('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,

    Mya

    #77090

    Hi Mya,

    I tried entering the code and I got an error message:

    Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’

    Kind regards,

    Colin

    #77091

    Use following code instead:

    ####### SOCKET CONTAINER #######
    echo "<div id='socket'>";
    echo " <span class='copyright'>&copy; ".__('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>";

    #77092

    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

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Customise Social Stuff’ is closed to new replies.