Trying to add social media icons to text widget

  • Unknown's avatar

    Hi,

    I’m trying to add social media icons to my sidebar using HTML. I followed wordpress’s guide for this. The wordpress base HTML code includes a space for facebook, twitter, pinterest, RSS, and email.

    But I need Bloglovin’ as well. The problem is that every time I try to add in the extra code to my text widget, it disappears after i click save.

    This is the html I have tried entering, let me know if something is wrong with it (ignore the added spaces – I just put those so that the code would be visible):

    < a href = “http://www.bloglovin.com/blogs/peyton-mckee-13604065
    ” >< img title = “Bloglovin” src = “https://peytonmckee.files.wordpress.com/2015/02/bloglovin.png
    ” alt = “Bloglovin” width = “35” height = “35” / >< /a >

    Does anyone know what the problem is? I’m really baffled as to why this isn’t working.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    I think the problem might be the spaces added before and after the start and end tags and the equal signs in the code. I’m going to try to give the code with the spaces removed below. Don’t know if it’ll display, or get partially stripped.

    <img title = “Bloglovin” src=”https://peytonmckee.files.wordpress.com/2015/02/bloglovin.png” alt=”Bloglovin” width=”35″ height=”35″ />

  • Unknown's avatar

    I missed a couple of spaces. You get the idea?

    (start tag)a href=”http://www.bloglovin.com/blogs/peyton-mckee-13604065″><img title=“Bloglovin” src=”https://peytonmckee.files.wordpress.com/2015/02/bloglovin.png” alt=”Bloglovin” width=”35″ height=”35″ />(end tag)

  • Unknown's avatar

    Nah that wasn’t it (I only added those spaces in for this forum so it wouldn’t get stripped).

    I figured it out though. The code that wordpress gives you doesn’t have
    this at the end of it:
    < /img>

    So if you add more code straight onto the end of the code wordpress gives, doesn’t display it….That’s what I’m guessing anyway, cause when I added the < /img> at the end of the wordpress sampel code it suddenly started working perfectly

  • The topic ‘Trying to add social media icons to text widget’ is closed to new replies.