WordPress.org

Ready to get started?Download WordPress

Forums

FBF Facebook page Feed Widget
Remove Photos (5 posts)

  1. otfromtot
    Member
    Posted 1 year ago #

    Is there a way to remove images that are part of the facebook posts? All I want to show is the text and do not see a "remove images" option

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

  2. vinkdtp
    Member
    Posted 1 year ago #

    I like to be answered this question al well.

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    @vinkdtp: As per the Forum Welcome, please post your own topic.

  4. lakshmananphp
    Member
    Plugin Author

    Posted 1 year ago #

    Hi otfromtot and vinkdtp,

    Sorry for the delayed response.

    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 before line no 119
    $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.

  5. otfromtot
    Member
    Posted 1 year ago #

    Awesome, I will update that as soon as I get the chance. I was able to make my own fix that seems to work, but I haven't tested it in older browsers.

    <div id="fb">
    [facebook_page_feed]
    </div>
    <style>
    #fb img {
     visibility:hidden;
     display:none;
    }
    </style>

    This is used in unison with the widget shortcode plugin

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic