Subscribe to Our Newsletter

x

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

How to Include Interactive Elements in Posts

Enhance your articles with rich and creative media

Every article is a fresh chance to grab new readers and nurture loyal followers. This is why we give creators every opportunity to build content rich with media elements that enhance every reader's experience.

Add More Layers to Your Content

You can easily add interactive elements, like charts, to posts on our platform. For example, if you need to embed iframe code into a post, this can be done via our Add Media Bar. To do so, click the code icon (< >):

A text box will appear so you can insert your code:

Embedded Code Across Platforms

One important thing to keep in mind is that Google AMP, AppleNews, and Facebook Instant Articles will not always support embedded code. So if you use an iframe, it's best to turn off distribution to those channels for that particular post. If you have a lot of posts that require embedded code, this could be problematic for growth across those important platforms.

If you do want to use an iframe on a post destined for Google AMP distribution, it can be possible if the iframe is not at the top of the page or within the first 75% of the viewport when the page is scrolled to the top (whichever is smaller). AMP is a fast technology designed for mobile users and iframes are loaded using arbitrary timing that AMP's technology cannot ensure. For this reason, it's suggested that iframes be included in places that are not visible by users upon load.

If you have an article that needs to include an iframe at the top of the page, or within the first 75% of the viewport, AMP can be turned off for that individual article within Entry Editor.

If you don't need an interactive chart to be interactive in nature, can turn it into an image and upload it directly to your post. This way it will work on all platforms, including Google AMP, Apple News, and Facebook Instant Articles. This option, when possible, is ideal to ensure you're optimized for page speed.

Take Advantage of Shortcodes

Another great way to embed media is through our shortcodes functionality. Click here to learn more about shortcodes. Shortcodes can also inserted using the Add Media Bar. Click the brackets icon ([ ]) to choose the shortcode you want to use.

Here's an example of a chart on an article page that's been inserted using a shortcode:

If you have any questions about how to add interactive elements to your content, please email support@rebelmouse.com or talk to your account manager today.

Shortcodes Dashboard: Dynamic Media in Just a Few Clicks

Create multidimensional content with easy-to-find shortcodes

We believe static media is dead, and that every piece of content should be multidimensional and engaging. This is why our platform enables creators so they can add dynamic media to their content in easy and efficient ways.

One simple way to add interactive content to any post is through the use of shortcodes. Shortcodes are small snippets of code that are easier to remember than longer sequences. They typically will activate a feature or embed media into an article.

Keep reading... Show less
Subscribe to Our Newsletter