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

1 week ago

Smash Balloon

🎬 Want to grow your Instagram presence?

With Instagram Feed Pro, you can easily create, customize, and embed Instagram posts on your website.

You can then engage your visitors and get tons of #instagram followers in no time.

Find out more about the easiest to use and most powerful Instagram feed plugin here:
... See MoreSee Less

Video image

Comment on Facebook

4 weeks ago

Smash Balloon

We kicked off our Smashing Summer Sale last week, and the response has been amazing!

So many business owners used the chance to get up to 65% off on Smash Balloon plans.

This sale ends TONIGHT. Now it's your turn to get the best social media feed plugins at a huge discount!

Water you waiting for? 🌊 Grab this deal while it's hot!

Click here to save BIG: smashballoon.com/sale/
... See MoreSee Less

We kicked off our Smashing Summer Sale last week, and the response has been amazing! 

So many business owners used the chance to get up to 65% off on Smash Balloon plans.

This sale ends TONIGHT. Now its your turn to get the best social media feed plugins at a huge discount!

Water you waiting for? 🌊 Grab this deal while its hot!

Click here to save BIG: http://smashballoon.com/sale/

3 months ago

Smash Balloon

We’re 9 years old! And what a 9 years it’s been. 5 plugins, over 1.75 million users, and over 5,000 5-star reviews! We couldn’t have come this far without you, and so to show our appreciation we’re running a huge sale for this week only: smashballoon.com/sale/

We’re offering 65% off our All Access Bundle which includes all of our popular plugins for Instagram, Facebook, Twitter, YouTube, and our fan-favorite Social Wall plugin which combines them all together.

We have tons of exciting updates in store for this year and we’re excited to share them with you soon. Here’s to another year continuing to serve you the best we can to help you reach your goals!
... See MoreSee Less

We’re 9 years old! And what a 9 years it’s been. 5 plugins, over 1.75 million users, and over 5,000 5-star reviews! We couldn’t have come this far without you, and so to show our appreciation we’re running a huge sale for this week only: https://smashballoon.com/sale/

We’re offering 65% off our All Access Bundle which includes all of our popular plugins for Instagram, Facebook, Twitter, YouTube, and our fan-favorite Social Wall plugin which combines them all together.

We have tons of exciting updates in store for this year and we’re excited to share them with you soon. Here’s to another year continuing to serve you the best we can to help you reach your goals!
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