Viewing 2 replies - 1 through 2 (of 2 total)
  • 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 https://www.ilivewhereiam.com/travel-destinations/

    AndriaL

    (@andrial)

    Hello, thank you for the plugin! I am having difficulty with the options. Specifically, I am trying to show external links and ‘Link Anchor Text to External Links / Facebook Post:’. But when I click the ‘External Link’ nothing happens. It remains ‘Off’. Am I missing something?
    Thanks again.

    Nevermind – apparently although I didn’t see the radio button switch, it did. Everything is working now. Thank you for the easy plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘customising widget’ is closed to new replies.