WordPress.org

Ready to get started?Download WordPress

Forums

Adding icons to external links (3 posts)

  1. interactive-ninja
    Member
    Posted 5 years ago #

    I am pretty new to WordPress. I am looking to add some icons to my sidebar that will link to my other pages (i.e. Twitter, FaceBook, LinkedIn, etc.). Which do you recommend?

  2. stvwlf
    Member
    Posted 5 years ago #

    If you can write a few lines of code, you can add them into your theme's sidebar.php file

    <ul>
    <li><a href="http://facebook.com/whatever...><img src="<?php bloginfo('template_directory'); ?>/images/facebookicon.jpg alt="" />See me on Facebook</a></li>
    <li><a href="http://twitter.com/whatever...><img src="<?php bloginfo('template_directory'); ?>/images/twittericon.jpg alt="" />Follow me on Twitter</a></li>
    </ul>
  3. dvwp
    Member
    Posted 4 years ago #

    this may work better for you. paste into a text widget. replace the paths with your info.

    <ul>
    
    <li><a href="http://facebook.com/yourname"<?php bloginfo('template_directory'); ?><img src="http://path.to.your.jpg" alt="See me on Facebook"></a></li>
    
    <li><a href="http://twitter.com/yourname"<?php bloginfo('template_directory'); ?><img src="http://path.to.your.jpg" alt="Follow me on Twitter"></a></li>
    
    </ul>

Topic Closed

This topic has been closed to new replies.

About this Topic