Customising CSS on single WP page

  • Unknown's avatar

    Hello, I am having some difficulties putting custom CSS for a video file on the ‘Additional CSS’ section of the theme editor. I only want it to affect a single video file on one page. I didn’t realize that adding the CSS to ‘Additional CSS’ would effect every video on the theme. If I want it to affect one page, can I just add something like ‘page-idd=###’.

    The code I’m trying to add is;

    video {
    object-fit: fill;
    }
    .mejs-controls {
    display: none !important;
    visibility: hidden !important;
    }

    Thank you in advance.

  • Hi there,

    On what site are you working? CSS is unique to every theme, so it’s impossible to help without actually looking at your site.

    Also note that if you’re using the open source WordPress software we cannot help you in this forum. In that case please post in your specific theme’s forum on WordPress.org:

    https://wordpress.org/support/

  • The topic ‘Customising CSS on single WP page’ is closed to new replies.