Does anyone have a solution for removing the white titles on YouTube videos in Webflow?

Published on
September 22, 2023

If you're looking to remove the white titles on YouTube videos in Webflow, you can use custom CSS to achieve this. By targeting the specific element that contains the title and adjusting its styling, you can effectively hide or modify the appearance of the titles. Here's how you can do it:

  1. Identify the element containing the title: Inspect the YouTube video element on your Webflow page using your browser's developer tools (right-click on the video and select "Inspect" or simply press F12). Look for the specific element that holds the title, which is usually a <div> or <span> with a certain class or ID.

  2. Add custom CSS code: Once you have identified the element, locate the Custom Code section in your Webflow project. You can access this section by clicking on the gear icon in the top-right corner of the Designer panel, then selecting "Custom Code" from the dropdown menu.

  3. Target the element and adjust its styling: In the Custom Code panel, add CSS code that targets the specific element you identified in step 1. For example, if the element has a class of ".youtube-video-title", you can use the following code to hide the title:

    ```css
    .youtube-video-title {
    display: none;
    }
    ```

    If you want to modify the appearance instead of hiding the title, you can adjust other CSS properties like color, font-size, text-decoration, etc.

  4. Save and publish your changes: After adding the custom CSS code, click on the Save button in the top-right corner of the Webflow Designer panel. Then, publish your site to make the changes live.

Please note that using custom code in Webflow should be done with caution and thorough testing, as it might affect other elements or cause layout issues if not implemented correctly. Always make sure to preview and test your changes across different devices and browsers to ensure consistent results.

Additional questions:

  1. How can I modify the appearance of other elements in Webflow using custom CSS?
  2. Is it possible to style embedded YouTube videos in Webflow?
  3. Can I hide specific content sections on my Webflow site using CSS?