Support » Plugin: WPSocialite » CSS and perfomance issues

  • Resolved RA_NPL


    Hi Tom,

    thank you for your great work on this plugin. I am very happy with the recent speed increase of my site Still I have three little issues.

    1. When checking page’s speed on, it shows two minor performance problems with relation to wpsocialite. You may be wanting to use the server in the netherlands, as my site is located in germany. Here are the logs:

    – Serve the following static resources from a domain that doesn’t set cookies:

    – Resources with a “?” in the URL are not cached by some proxy caching servers. Remove the query string and encode the parameters into the URL for the following resources:

    Do you any suggestions on how to solve this?

    2. I would like to shift all styles from /wp-content/plugins/wpsocialite/lib/wpsocialite.css to my main style.css due to performance best practise. But if I simply copy & paste all code to my style.css, returns a 404 error. What do you recommend, especially keeping in mind future plugin updates?

    3. On the Facebook plugin is not displayed in line with the other plugins when active after hovering. Is it an error on my site or is something wrong with the code?

    Cheers Nick

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tom Morton



    Appreciate your feedback. Here are my answers:

    1. The first issue with the “custom-default.png” file isn’t clear. What error is giving you for this file? Can you possibly link me to the log you are talking about? I ran the test myself but did not find the same errors you did.

    2. In order to remove the ? version number when calling CSS/JS files, you can use the following script in your functions.php:

    add_filter( 'script_loader_src', 'remove_src_version' );
    	add_filter( 'style_loader_src', 'remove_src_version' );
    	function remove_src_version ( $src ) {
    	  global $wp_version;
    	  $version_str = '?ver='.$wp_version;
    	  $version_str_offset = strlen( $src ) - strlen( $version_str );
    	  if( substr( $src, $version_str_offset ) == $version_str )
    		return substr( $src, 0, $version_str_offset );
    		return $src;

    3. You can incorporate wpsocialite.css into your main CSS file, and there should be no reason for you to get a 404 if you change your CSS. Are you deactivating the style in WPSocialite by adding the following to your wp-config.php (preferably at the top)?

    define( 'WPSOCIALITE_LOADSTYLES', false);

    4. Regarding the facebook like button not being inline with everything else, I believe this is because of the button being translated. If you drill down into the HTML/CSS in a source browser (Chrome Dev Tools or Firebug) you’ll find a <span> tag that has a height of 20px. This is automatically being set by facebook. I would target the facebook button on its own and add your own CSS to offset this.

    Hope this helps and be sure to let me know if you are still experiencing any issues.

    Hello Tom,

    thanks for your quick support.

    1. After reviewing I think the custom-default.png issue is rather a general problem of my file keeping and not something specific about WPSocialite. Google Page Speed advises to serve static content from a cookieless domain. My server is setting cookies for static content like custom-default.png, so right now I am working on setting up a CDN or a cookieless subdomain (

    2. The version code snippet workes great, same as the CSS switch to my main style.css.

    3. Still I am having trouble with the CSS of the FB Button on my webbrowser (firefox) same as on mobile/ipad, where it looks totally screwed both in portrait and landscape mode :/

    Plugin Author Tom Morton



    This reply is way to late! So sorry for that.

    Is the facebook box still giving you issues? A number of fixes will be released today, be sure to update and let me know what the results are.

    Hi Tom, I got some help in the meantime. Works brilliant now. Thanks for aksing!

    Plugin Author Tom Morton


    Not a problem, don’t hesitate to follow up with any other issues/feature requests.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CSS and perfomance issues’ is closed to new replies.