Topic-icon How to exclude code in the article

6 years 8 months ago #53165 by nikkra
I use a plugin, Jumi, to embed video. It uses a short code in the article to work: {jumi [jumi/xxx.html]}
When sharing this code comes with the article text in FB. Is there a way to exclude this string from the FB-status? (The xxx varies all the time)

If possible I would also like to exclude the headline, marked with <h1>
</h1>

Niklas
The topic has been locked.
Support Specialist
6 years 8 months ago #53175 by alzander
We don't have a built-in way to do this as { and } are valid symbols that some users want and there's no standard method for adding tags like that that we could detect.

What I would recommend is making sure that the Jumi plugin is ordered before any JFBConnect plugins. That should make it so the Jumi plugin executes first and removes its tags before JFBConnect tries to generate a description for the page.

If possible I would also like to exclude the headline, marked with <h1>


</h1>

Again, we don't have a way to do this automatically. Any HTML tags should be automatically stripped, but we don't have a method to scan for specific tags and strip/keep the content within them.

Overall, the best recommendation I can give is to explicitly set the Open Graph description tag that you want to use on each page, like:
{SCOpenGraph description=My Description for the Page}
You can even use PHP within those tags to dynamically generate the description.

I hope that helps explain,
Alex
The topic has been locked.
Social Stream
Hide. Seek. Play!

Countdown Hide & Seek Game

Countdown, the new hide & seek toy, is available now! Designed and developed by the founders of SourceCoast, it's the perfect toy to get your kids moving at all ages.

Learn More About the Hide and Seek Toy