WordPress.org

Ready to get started?Download WordPress

Forums

Social Media Widget
Icon alignment not rendering correctly (4 posts)

  1. contemporarymasculine
    Member
    Posted 2 years ago #

    I am using the Blaskan WordPress theme for my website Contemporary Masculine.

    You will see that I have custom icons located in the sidebar. The custom icons are 29px X 29px (the standard size for the social media icons as suggested by the plugin).

    In the plugin editor, the social-media-widget/social-widget.php is "active". However, the social-media-widget/social_widget.css is "inactive".

    I currently have the plugin set to show the social media icon with the margin-right set to 10px. For some reason, the social media icons are showing with the margin-right set to 0px.

    I edited the .css for the plugin, but for some reason it will not update (assume because it is inactive).

    See the code below from the plugin .css:

    .socialmedia-buttons img {
    	border: 0;
    	border: 0 !important;
    	display: block;
    	-webkit-transition: all 0.2s ease-in;
    	-moz-transition: all 0.2s ease-in;
    	transition: all 0.2s ease;
    }
    
    .socialmedia-buttons a {
    	display: block !important;
    	float: left !important;
    	margin-right: 10px !important;
    	background: none !important;

    Here is what is rendering on the site (taken from Google Chrome "inspect element"):

    <section id="social-widget-2" class="widget Social_Widget">
    <h3 class="title">Follow Us!</h3>
    <div class="socialmedia-buttons smw_left">
    <a href="http://www.facebook.com/contemporarymasculine" target="_blank">
    <img src="http://contemporarymasculine.com/wp-content/icons/facebook.png" alt="Follow Us on Facebook" title="Follow Us on Facebook" style="opacity: 0.8; -moz-opacity: 0.8;" class="fade">
    </a>
    <a href="http://twitter.com/#!/BeContemporary" target="_blank">
    <img src="http://contemporarymasculine.com/wp-content/icons/twitter.png" alt="Follow Us on Twitter" title="Follow Us on Twitter" style="opacity: 0.8; -moz-opacity: 0.8;" class="fade">
    </a>
    <a href="http://feeds.feedburner.com/contemporarymasculine" target="_blank">
    <img src="http://contemporarymasculine.com/wp-content/icons/rss.png" alt="Follow Us on RSS" title="Follow Us on RSS" style="opacity: 0.8; -moz-opacity: 0.8;" class="fade">
    </a>
    </div>
    </section>

    http://wordpress.org/extend/plugins/social-media-widget/

  2. contemporarymasculine
    Member
    Posted 2 years ago #

    I should also add that this bug appear after incorporating adsense to my site. I am not sure if these two items are related ( I doubt they are ), however the point is that the bug appear without messing with the code. I'm not sure what the issue is.

  3. Macky
    Member
    Posted 2 years ago #

    Hi!

    I was having the exact same problem with Social Media Widget plugin. I was moving the widget around testing different locations, and I noticed that the margins I had set in the CSS file started taking affect.

    You may want to try to move the widget up and back to see if it might work for you.

    Good luck!

    Macky

  4. brianfreytag
    Member
    Posted 2 years ago #

    32x32 is the suggested size, not 29x29.

    Also make sure if you're using any caching plugins, to clear out all caches after activating the widget.

    I've never seen or heard of an issue with my CSS not being activated. Most issues like this that I've seen have to do with caching plugins.

    I went to your site and it looks like things look ok now. Did you get it fixed?

    Sorry about the long delay with replying to this message, btw. I've been extra busy these past few months with work and my personal life, so I've admittedly been neglecting the crap out of my widget and it's end users. For that I apologize.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic