WordPress.org

Support

Support » Plugins and Hacks » FBF Facebook page Feed Widget » I want title and description of the feed, no images

I want title and description of the feed, no images

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author lakshmananphp

    @lakshmananphp

    Hi paoPuscher,

    To remove images from feed description:

    1)Edit the plugin file
    wp-content/plugins/fbf-facebook-page-feed-widget/fbf_facebook_page_feed.php
    2)add this code after line no 94, that is after this code
    $desc = str_replace('href="', 'href="http://www.facebook.com', $desc_feed); // adding facebook link - to avoid facebook redirector l.php's broken link error
    3) Put his code which will remove images
    $desc = preg_replace("/<img[^>]+\>/i", " ", $desc); // Removes images from description
    4)Save the file.
    5)Take a backup of the old file and overwrite the modified file in your website(wp-content/plugins/fbf-facebook-page-feed-widget/).

    Now the images should be removed.

    Please let me know if you face any issues.

    Thanks
    Lakshmanan.

    I tried the above solutions and it works perfectly. However, I would love to have the image appear at the top of the description so the text can float around the image. Right now it just sorta hangs out at the bottom of the post.

    Alternately, I could use it at the end if the image was responsive (or at least larger say at least 400px wide).

    Thank you,
    Anthony

    Thanks I removed the images, but I still have this problem:

    in a different place where am using the plugin, I am getting twice the description, first as the title and then as the starting point of the description. Any idea why?

    http://www.redahsl.com/homebakedTest/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I want title and description of the feed, no images’ is closed to new replies.
Skip to toolbar