Prevent video from showing up in excerpts.

  • bjeffries

    #4138

    I would like to prevent the videos from showing up in excerpt. I managed to get the excerpts to look like I want. But now I just need to prevent the videos.

    Here is a link to what I am trying to fix: http://motodude.com/category/video/

    Thank you.

    Mod

    Kenneth John Odle

    #27339

    Hmmm…I didn’t think videos would show up in excerpts. How are you inserting those video clips into your posts?

    Try this in custom CSS or child theme stylesheet:

    .archive iframe {display:none;}

    bjeffries

    #27340

    Oddly, that code seemed to only work for the top two videos. But the rest still show. They are all YouTube videos with just the video link. so they all should render using the same code.

    Mod

    Kenneth John Odle

    #27341

    They are all YouTube videos with just the video link. so they all should render using the same code.

    Nope. Some of them are different. (Don’t know why.)

    Try this code:

    .archive iframe, .archive object {display:none;}

    bjeffries

    #27342

    Amazing. Thank you!

    You wouldn’t happen to know why I am getting a Java popup on my site would you? I have been getting it for about 2 days now and I don’t know what it is and why I am all of a sudden getting it. I installed the update on one computer, and not my smart security is telling me java is trying to connect to an unknown website. But its in a foreign language and I cannot expect my customers to know to download this update (or know what the close button is in a different language). If you happen to know that would be great thanks.

    bjeffries

    #27343

    I just translated the message smart security is giving me from the java thing.

    “Updating of security click RUN!”

    This has got to be a virus or something.

Viewing 6 posts - 1 through 6 (of 6 total)

  • You must be logged in to reply to this topic.