Problems Embedding Youtube Video to Virtue Theme
-
Hi,
I’m having some difficulties embedding youtube video to a post in my blog.
Having read and watched various instructions, the process appears quite simple. I’m pretty sure I’m doing it correctly but when I view the post I just get the following message…
“Sorry, but the page you were trying to view does not exist.
It looks like this was the result of either:a mistyped address
an out-of-date link”I’m trying to embed the following video…
<iframe width=”853″ height=”480″ src=”//www.youtube.com/embed/YH9YHX7oJXU?rel=0″ frameborder=”0″ allowfullscreen></iframe>
I’m pasting this code into the “Text” box rather than then “Visual” box which I believe is correct. I presume “Text” is the equivalent to “HTML”.
Any guidance would be greatly appreciated.
Please let me know if you need ny further information in order to help with my query.
Thank you
Chris
-
You’re missing the ‘http’ in your url Chris.
Try this…
<iframe width=”853″ height=”480″ src=”http://www.youtube.com/embed/YH9YHX7oJXU?rel=0″ frameborder=”0″ allowfullscreen></iframe>Happy WPing!
Actually youtube embed code doesn’t include the http and the format above should work fine.
Ah yes, you’re right about the embed. Remove the “?”. Try this…
<iframe width=”853″ height=”480″ src=”//www.youtube.com/embed/YH9YHX7oJXU” frameborder=”0″ allowfullscreen></iframe>
The url query “?rel=0” is also a standard yt option selected when you generate the embed code (it stops related videos showing at the end) so should work with or without that.
Hi,
Thanks for your help.
I’ve tried a view variations…
1) Added “http:” to the original embed code
2) Deleted “?rel=0” from the original embed code
3) Added “http:” to the original embed code and also deleted “?rel=0” from the original embed codeNone of these worked. Might there be another solution?
Thank you
ChrisThe original code you pasted is correct and works for me. When you go back and look at the text area, is the code still there? Can you post a page url?
Hi,
Yes, when I return to the text box after updating and viewing, the embeded code is still visible.
Furthermore, when I click on the Visual tab I can see evidence there is a video there.
I’ve tried publishing a link using the url as you suggested but I get the same “page cannot be found message”.
Could it be something in my settings?
Thanks
ChrisHave you tried:
– deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
– switching to the default theme to rule out any theme-specific problems.
– resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.
– re-uploading all files & folders – except the wp-content folder and wp-config.php & root .htaccess files – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.
Thank you.
I deactivated all plugins and still no joy.
I switched the theme and that didn’t work.
I then tried creating a new very simple post with just a few words…”test”.
The post title dropped into my “Recent Posts” in my footer (as did the titles of my posts with embeded youtube code). However, it appears there is something more fundamental wrong as when clicking on the basic “test” post it returned the same “page cannot be found” message.
Should I continue to work my way through your list of recommendations or do you think there could be a more simple fix on the basis that I’m getting errors on all my posts?
Thanks
ChrisCan we see the site using the default Twenty Fourteen theme with all plugins deactivated?
Wow Chris. Still no luck. This shouldn’t be such a head scratcher. Any chance you have another blog that you can try the same link in?
Might not be a bad idea to set up a test blog with a different theme.
Hi,
You can see the site in the Twenty Fourteen theme with all plugins disabled at…
http://www.thebuddingmusician.co.uk/
Lorbach – I don’t have another blog at the moment. This is my first thing I’ve ever had on line…a New Year’s resolution. I’ll perhaps try that when I work out how to do it. Feels like a bit of a battle t the moment.
Thanks
ChrisThe urls in the sidebar menu are messed up and returning malformed ones like this:
http://www.thebuddingmusician.co.uk/http:/www.thebuddingmusician.co.uk/aboutus
That could be just an error in the recent posts widget?
Check settings » general and post what’s in site url and site address.Also try resetting your custom permalinks back to the default setting via Settings -> Permalinks. If this works, then review Using_Permalinks before setting a custom permalink structure back up again.
webbrewers – the WordPress Address (URL) is http://www.thebuddingmusician.co.uk
..and the Site Address (URL) is the same. Not sure if this is good or bad.
esmi – I’ll try your permalinks suggestion
The topic ‘Problems Embedding Youtube Video to Virtue Theme’ is closed to new replies.