Jump to content


Photo
- - - - -

Wpsocialite - Like Techcrunch


  • Please log in to reply
8 replies to this topic

#1 tsalstrand

tsalstrand

    Super Member

  • Members

  • 249 posts
  • Framework Version:latest
  • Country: Country Flag

Posted 22 October 2012 - 09:19 PM

I've found a very nice social sharing plugin (WPSocialite) for WordPress that does soft loading of images... on another website that we tested it on we found that soft loading of images for social networks decreased the page load time by 30%+.

However, what we'd like to do is implement it the same way that TechCrunch.com does on their blog home page... off to the left of the post. It looks like they've set it up with divs, but I'm honestly not sure.

The plugin provides a "manual" method to place the social links where ever you want as follows:

Please Login or Register to see this Hidden Content


Where should I put this on my pages so that it shows to the left of the post on the main blog page?

#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 23 October 2012 - 04:24 AM

Adding php scripts to a page can cause problems, however, there's another plugin called Shortcode Exec PHP which converts your PHP tag to a shortcode that you name. Then, all you need to do is embed the shortcode, as you would with other plugins.

Here's the link:

Please Login or Register to see this Hidden Content



#3 tsalstrand

tsalstrand

    Super Member

  • Members

  • 249 posts
  • Framework Version:latest
  • Country: Country Flag

Posted 23 October 2012 - 02:02 PM

Hi Rob,

I had seen that short code and thought about using it for this very issue. However, I still can only get it to display on the blog post itself, not the excerpt and not to the left but only to the right of featured image.

If you had to guess, where exactly would you put it on the page?

#4 tsalstrand

tsalstrand

    Super Member

  • Members

  • 249 posts
  • Framework Version:latest
  • Country: Country Flag

Posted 23 October 2012 - 02:06 PM

Also, when I use the Shortcode Exec PHP plugin, I get the following error on the page:

Please Login or Register to see this Hidden Content



#5 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 23 October 2012 - 02:32 PM

Just guessing but you probably don't need the php open/close tags with that plugin

#6 tsalstrand

tsalstrand

    Super Member

  • Members

  • 249 posts
  • Framework Version:latest
  • Country: Country Flag

Posted 23 October 2012 - 04:36 PM

I tried that as well... still a parse error. But thanks for the suggestion Simon.

I wonder if I could solve this with CSS? I've added this to it but it doesn't seem to work:

Please Login or Register to see this Hidden Content


The site is

Please Login or Register to see this Hidden Content

that I'm testing it on.

#7 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 23 October 2012 - 04:38 PM

What code are you trying to put into the plugin?

#8 tsalstrand

tsalstrand

    Super Member

  • Members

  • 249 posts
  • Framework Version:latest
  • Country: Country Flag

Posted 23 October 2012 - 04:53 PM

I'm putting

Please Login or Register to see this Hidden Content


I don't have it in there now, but did before.

#9 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 23 October 2012 - 04:54 PM

Well there is no < in that??