Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Lax Mariappan

    (@lakshmananphp)

    Hi Wermfud,

    Currently there is no option to limit the description

    You could try it by replacing line number 119

    $returnMarkup .= "<div class=\"fbf_desc\">".$desc."</div>"; // Full content

    with this

    $returnMarkup .= "<div class=\"fbf_desc\">".substr($desc,0,200)."</div>"; // Excerpt content

    If you want to limit excerpt other than 200 characters, add that instead of 200.

    Hope the new version will have the option to limit the number of characters in description

    Thanks
    Lakshmanan

    Hello.
    It works, but the images have gone too… it would be cool if we can limit the character quantity and keep the image.
    Your plugin is very easy to install and to customize.
    I’m testing it at my test page: https://mairus.com/wp-teste/
    Thank you and best regards.

    Plugin Author Lax Mariappan

    (@lakshmananphp)

    Hi Mairus,

    Glad that you find this plugin as user friendly.

    Facebook feed outputs title, description and time.

    Images are also the part of description. So while you trim description, images will also be trimmed.

    Alternatively there should be an option to show images only, images with text, trim only description like that.

    I’m working on it and update it soon

    Any how, I will try a temporary fix and let you know.

    Thanks again
    Lakshmanan

    Thanks! This fix works great! However, I noticed that the like button disappears when I add this. Is there a way to shorten the description and keep the like button?

    Plugin Author Lax Mariappan

    (@lakshmananphp)

    Hi earthjibber,

    Have you used short code or widget?

    Enable like button in your widget options, if you are using it as widget.

    Thanks
    Lakshmanan

    I’m using the shortcode option, but I realized that it wasnt showing because I didn’t have any posts yet.

    However, when I click the like button I get this error:

    Blocked a frame with origin “https://www.facebook.com&#8221; from accessing a frame with origin “https://mysite.com&#8221;. The frame requesting access has a protocol of “https”, the frame being accessed has a protocol of “about”. Protocols must match.

    Any help is greatly appreciated, I also posted this issue on the support forum.

    thanks!

    Plugin Author Lax Mariappan

    (@lakshmananphp)

    Hi

    Try this temporary fix

    Thanks
    Lakshmanan

    I know it’s temporary but the fix works, thanks!

    Hello!

    Great plugin! Thanks for your hard work.

    I’ve replaced this: $returnMarkup .= "<div class=\"fbf_desc\">".$desc."</div>";

    with this: $returnMarkup .= "<div class=\"fbf_desc\">".substr($desc,-1000)."</div>";

    And it works great as long as you’re okay having an excerpt start at the end of the description.

    Alternatively I would think you could do something like this:

    $returnMarkup .= "<div class=\"fbf_desc\">".substr($desc,0,200). substr($desc,-400)"</div>";

    I haven’t tested the directly above but it might be worth a try to get a beginning description AND the image together.

    https://largerthanlife.rvn8.com/

    Thank you very much

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Exceprt of description?’ is closed to new replies.