WordPress.org

Ready to get started?Download WordPress

Forums

FBF Facebook page Feed Widget
I want title and description of the feed, no images (4 posts)

  1. paoPuscher
    Member
    Posted 1 year ago #

    Hi, My customer publishes loads of images in its FB account, but I want to have only the title and a description... I can't seem to remove the images from the feed and it looks awful... take a look here:

    http://www.jan-noah.com/

    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/

    http://wordpress.org/extend/plugins/fbf-facebook-page-feed-widget/

  2. lakshmananphp
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. adarco
    Member
    Posted 1 year ago #

    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

  4. paoPuscher
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.