• Hey all. I had the following code in my footer.php file for social media icons. They all appeared fine on the home page, but appeared as broken images on the inner pages…

    <a href="(Facebook link)"><img src="../images/facebooksm.jpg"></a> <a href="(twitter link)"><img src="../images/twittersm.jpg"></a> <a href="(Google plus link)"><img src="../images/googlesm.jpg"></a> </a> <a href="(YouTube Link)"><img src="../images/youtubesm.jpg"></a>

    Any advice? Plugin maybe? Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Use a full path to the image, e.g:

    /wp-content/themes/themeName/images/facebooksm.jpg

    Thread Starter Draconator

    (@draconator)

    Got it. And working. Thanks!

    Just my two cents because I found this post so helpful. I added
    target="_blank"
    to the end of the link url to have it open in a separate window to prevent the visitor from losing your site.

    I ask enough questions, so hopefully this helps someone else searching as well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Social media icons for Child twenty-twelve theme’ is closed to new replies.