Developers

How to Change Video Thumbnails on RebelMouse

How to Change Video Thumbnails on RebelMouse

When users create an article in the Particle Assembler that includes videos, a default thumbnail image appears when the video is uploaded to the Entry Editor. However, sometimes a video does not have a placeholder image or the image is something you want to change.


If the default image is not preferable, it is easy to change with custom CSS. Here is a step-by-step of how to do it.

First, find the image you would like to use as the video thumbnail. Then, use that image URL for the next steps. First, locate the post ID in the CSS. Using the Inspect function, you should find the post ID inside the tag <article>.

You can also easily find your Post ID In the URL of any RebelMouse article.

Now, using the specific post ID, you can change the background image for the <div> that contains code video you want t update. In the example below, the name 'no-image' is used to target the <div>.

In case there are many spots with the same name, you will need to use the CSS selector "first-of-type" or "first-child" to grab the specific occurrence you want to change.

Once you have found the specific element you want to change, apply the following rules:

/*set a thumbnail for one specific post*/
.post-2604691972 .listicle-slideshow__thumbnail > div.no-image {
      background-image:  url('put the url created in the first step here');
  }

Finally, remove the icon that is hovering your picture with the following rule:

.post-2604691972 .listicle-slideshow__thumbnail > div.no-image path {
     display: none;
 }

Once the custom CSS is updated, you should see your new image as a thumbnail option in the post.

How to Add a Placeholder Image for Articles on Google AMP

The process is similar if you are publishing on Google AMP, but you need to use custom AMP CSS through our Layout & Design tool to make sure you are grabbing the target element only. Here is where to find it:

For AMP, use the same image URL as the previous example. To find the AMP-specific CSS rule that will only grab the desired post and the <div> you need, inspect the article's code to find the right place.

Then, inside your post, find the element you want to change the background image. In the example below, the CSS selector "first-of-type" is used to isolate only the first occurrence of the carousel image:

/*set a thumbnail for one specific post*/
.css-listicle-body-2604691972 button.amp-carousel-slide.amp-scrollable-carousel-slide:first-of-type {
 background-image: url(https://media.fox16.com/nxsglobal/fox16/photo/2018/09/07/Interview_with_Mother_of_Botham_Jean_0_54547264_ver1.0_640_360.jpg);
       background-size: cover;

Finally, remove the default image in order to see your new background image. In order to do that, set the <img src> of target element to "none."

.css-listicle-body-2604691972 button.amp-carousel-slide.amp-scrollable-carousel-slide:first-of-type amp-img[src]{
display:none;
}

Once completed, here is how the additional thumbnail will look on Google AMP:

If you have any questions about how this works, contact support@rebelmouse.com to help you anytime.

Related Articles

Take Advantage of Rich Media Integrations on RebelMouse

What Is RebelMouse?
Request a Proposal

Where 
Websites Are Built

The Fastest Sites in the World Run on RebelMouse

Let’s Chat

new!

RebelMouse Performance Monitoring

Real-Time Core Web Vitals

Get Started
DISCOVER MORE

Our Core Features

Our platform is a complete digital publishing toolbox that's built for modern-day content creators, and includes game-changing features such as our:

animate
Layout and Design toolLayout and Design tool on mobile
animate

Why RebelMouse?

Unprecedented Scale

RebelMouse sites reach more than 120M people a month, with an always-modern solution that combines cutting-edge technology with decades of media savvy. And due to our massive scale, 1 in 3 Americans have visited a website powered by RebelMouse.

120M+ Users
550M+ Pageviews
17+ Avg. Minutes per User
6+ Avg. Pages per User

Today's Top Websites Use RebelMouse

Thanks to the tremendous scale of our network, we are able to analyze a wealth of traffic data that informs our strategies and allows us to be a true strategic partner instead of just a vendor.

upworthyindy100Vault12No Film SchoolRawStoryResponsible StatecraftPrideRolling Stone QuebecPremierGuitarPenskeINN Educate Brand ConnectThe FulcrumGZEROOkayafricaBrit+CoPaper MagazinePowerToFlyNarcityCommonDreamsAllBusiness

What Clients Say

We’re here to help you weigh and understand every tech and strategic decision that affects your digital presence. Spend less time managing everything yourself, and more time focused on creating the quality content your users deserve.

Case Studies

A Team (and an Agency) Built Like No Other

RebelMouse employs a unique, diverse, and decentralized team that consists of 70+ digital traffic experts across more than 25 different countries. We have no central office, and we cover every time zone to ensure that we’re able to deliver amazing results and enterprise-grade support around the clock.

Our team is well-versed in all things product, content, traffic, and revenue, and we strategically deploy ourselves to help with each element across all of our clients. We thrive on solving the complex.

Let's Chat