Thanks so much for this plugin. It is great.
I was going to request a change, but I believe I figured it out myself. I tested the code on my site (and it didn’t blow up, so I think this might work for others.)
IF YOU WANT YOUR “Facebook Post Link Text” TO OPEN IN A NEW WINDOW (so that you don’t send people away from your site) go to wp-content/plugins/simpul-facebook-by-esotech/simpulfacebook.php
‘Save as’ to create a backup to revert to if necessary.
For plugin Version: 2.2.6, Go to line 469 where it says:
self::createElement('a', array('class' => 'simpul-facebook-post-link', 'href' => $entry->alternate),
and replace with this:
self::createElement('a', array('target' => '_blank', 'class' => 'simpul-facebook-post-link', 'href' => $entry->alternate),
ALSO REPLACE LINE 474 THAT SAYS:
self::createElement('a', array('class' => 'simpul-facebook-post-link', 'href' => $entry->alternate),
And replace with:
self::createElement('a', array('target' => '_blank', 'class' => 'simpul-facebook-post-link', 'href' => $entry->alternate),
you are just telling it to open the link in a blank (new) window. Hope this helps someone.
Great plugin!! Thanks so much!!
I’m using this and your Youtube plugin on http://www.ilivewhereiam.com/travel-destinations/