• I tried searching the forums here, stack overflow, and google. I found similar solutions but not quite what I’m looking for.

    Does anyone know how I could make embeds (youtube, twitter, etc.) only work on single post pages? I know I can hide them with CSS on pages where I do not what them to appear which is fine for now. But, I would love to completely disable embeds, almost site wide, just not on single pages.

    All the plugins I have found so far are to disable embeds site wide.

    I tried adding a function which is supposed to remove embeds site wide, then I thought I could do an if statement basically saying to only process the function if the page is not single… if (!is_single()) {}. I put that around the add_action part. No changes happened.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Embeds Single Pages Only’ is closed to new replies.