Docs    Facebook    Customizations

Insert your own content every X number of posts

Add ads or content in between your Facebook posts.

var number_of_posts = 5,
    content_to_add = 'Add content here',
    i = 1;
$('#cff .cff-item').each(function(){
  if( i % number_of_posts == 0 ) $(this).after('<div class="cff-item">'+content_to_add+'</div>');
  i++;
});

Edit the variables on the first two lines to define how many posts to insert the content after and what content should be added. The content can be text or HTML.

If you need to only add the content to a specific feed then you can add a class to the shortcode:

Comments Box SVG iconsUsed for the like, share, comment, and reaction icons

3 weeks ago

Smash Balloon

Did you know that 65% of people are visual learners? 👀

By embedding your #instagram feed, you can give people an easier way to learn about your brand.

The best part? You can do this for free!

Check out our new video below to get started right away: 👇

... See MoreSee Less

Video image

Comment on Facebook

2 months ago

Smash Balloon

We’re making this #GreenMonday even greener.

For today, you can get 60% off on all Smash Balloon plugins. And a part of that sale goes to the amazing folks at the Rainforest Alliance.

Grab this deal to get massive savings and help protect our environment at the same time.

Visit this link to get your discount: smashballoon.com/sale/
... See MoreSee Less

We’re making this #GreenMonday even greener.

For today, you can get 60% off on all Smash Balloon plugins. And a part of that sale goes to the amazing folks at the Rainforest Alliance.

Grab this deal to get massive savings and help protect our environment at the same time.

Visit this link to get your discount: http://smashballoon.com/sale/

2 months ago

Smash Balloon

This Cyber Monday, you’re getting this awesome deal on the best social media feed plugins.

Starting today, you can get up to 70% off on ALL Smash Balloon plugins!

🎈 smashballoon.com/black-friday/ 🎈

In this age of social media, Smash Balloon plugins are the perfect tool to take your business to the next level. All you need is Smash Balloon and you can:

✅ Easily create, customize, and embed beautiful social media feeds
✅ Share posts from all the major social media platforms
✅ Show user-generated content to boost conversions
✅ Promote your social media accounts and get more followers
✅ And more…

But hurry! The sale ends in a few hours, so grab the deal while it’s here: smashballoon.com/black-friday/
... See MoreSee Less

This Cyber Monday, you’re getting this awesome deal on the best social media feed plugins.

Starting today, you can get up to 70% off on ALL Smash Balloon plugins!

🎈 https://smashballoon.com/black-friday/ 🎈

In this age of social media, Smash Balloon plugins are the perfect tool to take your business to the next level. All you need is Smash Balloon and you can:

✅ Easily create, customize, and embed beautiful social media feeds
✅ Share posts from all the major social media platforms
✅ Show user-generated content to boost conversions
✅ Promote your social media accounts and get more followers
✅ And more…

But hurry! The sale ends in a few hours, so grab the deal while it’s here: https://smashballoon.com/black-friday/

2 months ago

Smash Balloon

It’s Thanksgiving in the U.S. and we wanted to give out a special shoutout to you guys.

On behalf of the Smash Balloon team, we wish you a wonderful holiday with your family and friends. Have a Smashing Thanksgiving Day! 🥧

P.S. We’ve also got a holiday gift for you. Follow this link for a chance to win a brand new MacBook Air for FREE.

👍 smashballoon.com/black-friday/
... See MoreSee Less

It’s Thanksgiving in the U.S. and we wanted to give out a special shoutout to you guys.

On behalf of the Smash Balloon team, we wish you a wonderful holiday with your family and friends. Have a Smashing Thanksgiving Day! 🥧 

P.S. We’ve also got a holiday gift for you. Follow this link for a chance to win a brand new MacBook Air for FREE.

👍 https://smashballoon.com/black-friday/

3 months ago

Smash Balloon

Black Friday is finally here, and we’re giving out MASSIVE DISCOUNTS here at Smash Balloon.

🎈 For this sale, you can get ALL Smash Balloon plugins for up to 70% off! 🎈

On top of that, you also get the chance to win a free MacBook. No purchase needed, you can join right away:

➡️ smashballoon.com/black-friday/

Do your business a favor and take this chance to get the best social media feed plugins for Instagram, Facebook, Twitter, and YouTube.

You can then grow your social following, get more sales, and grow your business with ease.

But this limited deal won’t be here forever, so grab it today before it expires.
... See MoreSee Less

Black Friday is finally here, and we’re giving out MASSIVE DISCOUNTS here at Smash Balloon.

🎈 For this sale, you can get ALL Smash Balloon plugins for up to 70% off! 🎈

On top of that, you also get the chance to win a free MacBook. No purchase needed, you can join right away: 

➡️ https://smashballoon.com/black-friday/

Do your business a favor and take this chance to get the best social media feed plugins for Instagram, Facebook, Twitter, and YouTube.

You can then grow your social following, get more sales, and grow your business with ease.

But this limited deal won’t be here forever, so grab it today before it expires.

Comment on Facebook

Is the All Access Bundle ($179) a lifetime subscription or just for one year?

3 months ago

Smash Balloon

A brand new MacBook Air sounds good, right? 💻

Then you’re in luck, because we’re giving you a chance to win a new MacBook Air.

For this Black Friday, we’re kicking things off with a free giveaway that you can join right away – no purchase needed!

And for the prize, you can win a MacBook Air worth $1,000.

The best part?

You can come back and get free entries EVERY DAY until December 2 at 11:59 PM EST!

➡️ Join the giveaway today: smashballoon.com/black-friday/
... See MoreSee Less

A brand new MacBook Air sounds good, right? 💻

Then you’re in luck, because we’re giving you a chance to win a new MacBook Air.

For this Black Friday, we’re kicking things off with a free giveaway that you can join right away – no purchase needed!

And for the prize, you can win a MacBook Air worth $1,000.

The best part? 

You can come back and get free entries EVERY DAY until December 2 at 11:59 PM EST!

➡️ Join the giveaway today: https://smashballoon.com/black-friday/

Comment on Facebook

Thanks for the giveaway!!!

Thank you so much !

nice

Load more

And then target that feed in the fourth line of the snippet above:

$('.feed1 .cff-item').each(function(){

To add different content in every X number of posts you can use the following:

var number_of_posts = 5,
    content_to_add = [
    'Content 1',
    'Content 2',
    'Content 3'
    ],
    i = 1,
    count = 0;
$('#cff .cff-item').each(function(){
   if( i % number_of_posts == 0 && count < content_to_add.length ){
     $(this).after('<div class="cff-item">'+content_to_add[count]+'</div>');
     count++;
   }
   i++;
});
support

Couldn’t find your answer in the docs?

Contact Support

Was this article helpful?