Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Social Media Icons Issue

  1. #1
    Join Date
    Oct 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Social Media Icons Issue

    This link below has 5 social media icons on the footer. You will notice there are two Pinterest logos and I need to change the second icon to Instagram. I attached the style.css and logos image files to reference. Please let me know if I need to change the values of the class background positions or is there something else I need to do to fix this issue. Here are the social media class code below which are in the style.css file for reference. Thanks for your help.

    footer nav.social li.pinterest a {background-position:-1px 0px;}
    footer nav.social li.instagram a {background-position:-42px 0px;}
    footer nav.social li.facebook a {background-position:-85px 0px;}
    footer nav.social li.twitter a {background-position:-126px 0px;}
    footer nav.social li.linkedin a {background-position:-168px 0px;}

    http://www.trademarkresidential.com/homepage
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	icons_social2.png 
Views:	157 
Size:	6.1 KB 
ID:	5830  
    Attached Files Attached Files

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You need to change the background-position property of that link to get the sprite (image with several icons on it) to line up differently for that particular link. That's assuming it even has the icon on it that you need for that link, I'm pretty social media unaware. I know what Twits and FB are. Pintrest I can see from your example. I don't know what instagram is supposed to look like - the camera? That would be:

    background-position-x: -42px;

    You can apply that to the element itself, or create an overriding class/id or other selector for it that assigns that positioning to it.
    Last edited by jscheuer1; 02-25-2016 at 09:53 PM. Reason: found coord for the camera part of the sprite.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there eman,

    on lines #400 and #401 of your HTML file you have this...

    Code:
    
    <li id="menu-item-3829" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3829"><a href="https://www.instagram.com/trademarkresidential/" onclick="__gaTracker('send', 'event', 'outbound-widget', 'https://www.instagram.com/trademarkresidential/', 'Instagram');">Instagram</a></li>
    <li id="menu-item-3828" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3828"><a href="https://www.pinterest.com/TMresidential" onclick="__gaTracker('send', 'event', 'outbound-widget', 'https://www.pinterest.com/TMresidential', 'Pinterest');">Pinterest</a></li>
    
    Change it to this...
    Code:
    
    <li id="instagram menu-item-3829" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3829"><a href="https://www.instagram.com/trademarkresidential/" onclick="__gaTracker('send', 'event', 'outbound-widget', 'https://www.instagram.com/trademarkresidential/', 'Instagram');">Instagram</a></li>
    <li id="pinterest menu-item-3828" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3828"><a href="https://www.pinterest.com/TMresidential" onclick="__gaTracker('send', 'event', 'outbound-widget', 'https://www.pinterest.com/TMresidential', 'Pinterest');">Pinterest</a></li>
    
    The CSS should be...

    Code:
    
    footer nav.social li.pinterest a {background-position: 0 0;}
    footer nav.social li.instagram a {background-position: -42px 0;}
    footer nav.social li.facebook a  {background-position: -85px 0;}
    footer nav.social li.twitter a   {background-position: -126px 0;}
    footer nav.social li.linkedin a  {background-position: -168px 0;}

    coothead
    ~ the original bald headed old fart ~

  4. #4
    Join Date
    Oct 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your response. I'm sure this would fix it the only problem is this is a Wordpress site. How can I access the html code to add the instagram and pinterest ids which has been my Dilemma with Wordpress for sometime. The Wordpress dashboard doesn't give you html access. Please advise. Thanks

  5. #5
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Default

    you must have either WordPress.com Premium or WordPress.com Business active on your site to be able to add custom CSS to your site

    https://en.support.wordpress.com/cus...n/editing-css/

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You cannot have a compound id anyway (one with a space in it). Just use the existing id. Add this to the stylesheet:

    Code:
    #menu-item-3829 a {background-position-x: -42px !important;}
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there John,

    I am extremely sorry about that faux-pas.

    Unfortunately, it appears from your post, that I experienced
    another one of my "Senior Moments" whilst composing mine.

    It should, of course, have read...

    Change it to this...
    Code:
    
    <li id="menu-item-3829" class="instagram menu-item menu-item-type-custom menu-item-object-custom menu-item-3829"><a href="https://www.instagram.com/trademarkresidential/" onclick="__gaTracker('send', 'event', 'outbound-widget', 'https://www.instagram.com/trademarkresidential/', 'Instagram');">Instagram</a></li>
    <li id="menu-item-3828" class="pinterest menu-item menu-item-type-custom menu-item-object-custom menu-item-3828"><a href="https://www.pinterest.com/TMresidential" onclick="__gaTracker('send', 'event', 'outbound-widget', 'https://www.pinterest.com/TMresidential', 'Pinterest');">Pinterest</a></li>
    

    This will then match the other icons's code.


    coothead
    ~ the original bald headed old fart ~

  8. #8
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    Quote Originally Posted by mlegg View Post
    you must have either WordPress.com Premium or WordPress.com Business active on your site to be able to add custom CSS to your site
    .
    .
    No, you don't need "Premium" or "Business", any Wordpress site can have custom CSS added by using this plug-in:

    https://en-gb.wordpress.org/plugins/simple-custom-css/

    I've built several Wordpress sites with this plug-in and it works perfectly.

  9. The Following User Says Thank You to styxlawyer For This Useful Post:

    mlegg (02-26-2016)

  10. #9
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Default

    Thanks, I didn't know that. I tried doing Wordpress for a friend.

  11. #10
    Join Date
    Oct 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks John, that corrected it. Have a good one.

Similar Threads

  1. Social Media script on internet site
    By theremotedr in forum Looking for such a script or service
    Replies: 3
    Last Post: 07-05-2015, 12:06 PM
  2. Social media
    By molendijk in forum The lounge
    Replies: 5
    Last Post: 11-11-2013, 05:23 AM
  3. Replies: 0
    Last Post: 06-22-2013, 08:54 AM
  4. How to setup social networking/sharing icons
    By mikster in forum Looking for such a script or service
    Replies: 4
    Last Post: 10-24-2011, 11:14 AM
  5. Resolved Social Icon CSS Issue
    By bbilal in forum CSS
    Replies: 7
    Last Post: 06-14-2011, 08:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •