WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Social icons not showing (3 posts)

  1. Crispian
    Member
    Posted 1 year ago #

    Hi there guys!

    I am having an issue with social icons I am coding into the webpage but cannot see them once I load the page after saving. All it does is show a small icon that looks like a file

    My code:

    <div id="icons">
    
                <ul class="icons">
                <li><a href="https://www.facebook.com/RoxyBBeauty"><img src="<?php echo '../images/fb_icon.png" width="41" height="41"';?>" /></a></li>
                <li><a href="mailto:info@roxybbeauty.co.za"><img src="<?php echo '../images/email_icon.png" width="41" height="41"'; ?>" /></a></li>
                <li><a href="https://www.twitter.com/RoxyBBeauty"><img src="<?php echo '../images/twitter_icon.png" width="41" height="41"';?>" /></a></li>
                </ul>
    
                </div>
  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Try using a more absolute path, like;

    /wp-content/themes/yourTHeme/images/fb_icon.png
  3. Crispian
    Member
    Posted 1 year ago #

    Thanks much. It worked instantly

Topic Closed

This topic has been closed to new replies.

About this Topic