hide youtube related videos turn off - how to disable youtube related vidoes plugin - web design sunshine coast - web developer sunshine coast seo
  Custom Projects

How to Get Rid of Related Videos in Embedded YouTube Player

Hide Youtube Related Videos

Sometimes unchecking the box that says “allow advertisements to be displayed alongside my videos” is not enough for actually getting rid of ads accompanying a YouTube video. This becomes a real problem when the ads are showing up on your own website. The fact that Youtube continuously updates its website navigation and settings makes it challenging to find relevant information online to solve this issue. We prepared a couple of solutions that will work for you at all times and most likely never expire.
If you’ve spent some time searching already you probably are familiar with the trick “rel=0”, “&rel=0” or “?rel=0”. Unfortunately, none of those will help you to get rid of ads unless you’re signed in on Youtube. This change happened quite recently (September 2018) so not many people heard about the change yet and are spending time on researching why this doesn’t work after inserting it into their code or URL. Here’s how to hide youtube related videos!

 

How to Disable Youtube Related Videos with a Code or Plugin

You can work around this using the YouTube Player API to show custom HTML instead of related videos. Here is a simple code that displays a “replay” button over the video once it completes, hiding the related videos:

<style>
#playerWrap {
display: inline-block; position: relative;
#playerWrap. shown::after {
content:””; position: absolute; top: 0; left: 0; bottom: 0; right: 0; cursor: pointer; background-color: black; background-repeat: no-repeat; background-position: center; background-size: 64px 64px;
background-image: url(data:image/svg+xml;utf8;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9;
</style> <div> <div id=”playerWrap”> <iframe
width=”640″ height=”360″ src=”https://www.youtube.com/embed/OsDg2h3M1RE?enablej sapi=1″
frameborder=”0″ ></iframe> </div> </div> <script>
var playerFrame = document.currentScript.previous Element Sibling.children [0].children [0];
var tag = document.createElement(‘script’); tag.src = “https://www.youtube.com/iframe_api”; var firstScriptTag = document.getElementsByTagName(‘script’)[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var player; function on YouTubeIframeAPIReady () { player = new YT.Player(playerFrame, {
videoId: ‘M71c1UV-VE’, events: {
‘onStateChange’: onPlayerStateChange
});
function onPlayerStateChange (event) { if (event.data == YT.PlayerState. ENDED) {
document.getElementById(“playerWrap”).classList.add(“shown”);
document.getElementById(“playerWrap”).addEventListener(“click”, function() {
player.seekTo(0);
document.getElementById(“playerWrap”).classList.remove(“shown”); })
; </script>

Also, it is possible to make the video stop before it ends so the ads don’t show up.
However, there is an easier way – plugins. Unfortunately, their usefulness can expire and you can’t always rely on them but who cares if it works? Here is a link to one that is simple and easy to install:

Hide Related Video Youtube


It’s important to pay attention to the date of the article/video you use to find a solution because YouTube often changes its website settings.

Turn Off Youtube Related Videos Guide

Web Design & SEO Sunshine Coast

Have an idea? Let’s discuss it!

I need web developer

because my HTML5 is stuck in 3rd

I need SEO…

because unless you are on a trampoline, no one likes a high bounce rate.

I need web developer

because the only java I know comes in regular and decaf.

I need web design because

When I showed my friend my site he said “Oh, cute, you five year old made his first website.”

I need web design because

I want my site to be lion! It’s currently a small dog that’s been frightened by thunder and wee’d on the carpet.

I need SEO…

because my competitor offered to pay me to keep it as bad as it is.

I need web design because

apparently putting GIF flames on all pictures is not cool anymore.

I Need an App…

because then spending time on my phone is tax deductible (editor’s note: probably not.)

I need SEO…

because not even a golfer could make out my backlinks.

I need a professional website

Because a client asked for a banner ad and laughed when I said the front of my business wasn’t big enough for a banner.

I Need a Website …

I need a professional website because I hate it when I give out my site as www.freedomain.com/archive/free/plain/unoriginal.html

I Need a Website …

because my flyers were called “retro” by a young customer.

I Need an App…

because the same finger that could dial our number could “buy it now” from the app.

I need SEO…

because “please” is not the keyword that’ll get me to the top of the search results.

I need web developer

because my C++ is more of a D minus

I Need a Website made

because someone asked me about my Custom Style Class and I said “business casual.”

I need web developer

because I think the term “User backend” is a euphemism.

I need SEO…

because I’m tired of people thinking my business phone number starts with 404.

I need web developer

Because I can’t remember the login to my geocities account.

I need web developer

Because I found my Masonry Grid…..jarring. I’ll see myself out.

I Need an App…

because when I tell clients I’m not in the app store they stick one-star stickers to my forehead.

I need web design because

Cause when I client asked if it was Retina ready, I said you can look at it with any eyes.

I knew I was behind the times…

…when a client asked me if I “tweet” and I said I was always more a Sylvester guy.

I need web developer

Because my host needs cookies, and I can’t bake.

I Need a Website

because I couldn’t find my business card and a kid yelled “404 Page Not Found.” I’m not sure what it means but I know a website would help.

I Need an App…

because I want better word-of-mouth marketing than “What? You don’t have an app?”

I knew I was behind the times…

…when a client asked me for my contact and look puzzled because I said “but I need them to see.”

I need web developer

because when I was asked about ideal pixel size….I said about an inch/centermeter

I need web developer

because my logo image source is “search-ms:displayname=Imported%20Pictures%20and%20Videos&crumb=location:C%3A%5CUsers%5Cpc%5CPictures%5CLogo”

I need SEO…

because my website is so well hidden, I can’t even find it.

I Need an App…

because it’s the closest a business can get to being in the consumers home…without police being involved.

I Need an App…

because it’s the closest thing to steroids for my business…without actually selling steroids.

I Need an App…

because my competition has one with a dinosaur game…I’m the dinosaur.

I Need an App…

because it’ll be easier to promote new products via push notifications…and my haikus.

I need web design because

When asked if I was going to have any Flash Content, I said it wasn’t an adult site.

I Need a Website

… because my Facebook is too personal, my Twitter is too simple, my LinkedIn is a mess and my Instagram is full of FOOD!

I need SEO…

because my search results listing is so low my server is on anti-depressants.

I need SEO…

because I’m a web vegan and only consume 100 percent organic content.

I need web design because

I can’t find the bedazzler for fonts…and nor should I.

I Need an App…

because I want my business to be in their pocket and access their back pocket (or whatever pocket they keep their wallet).

I need SEO…

because I don’t want my site to be John Cena.

I Need a Website

because the only thing the yellow pages are good for is swatting flies, holding open doors and tests of strength with body builders.

I Need an App…

because people using their phones while in the restroom is a key demographic.

I need a professional website

Because a client asked me what customer management system I used and I said index card.

I need SEO…

because up till now I thought SEO stood for Send Emergency Oreos. I kinda wish it still did.

I need SEO…

because I can’t think of a good keyword for a key maker that doesn’t involve keys.

I didn’t think that I needed a website.

But when a client tried to finger swipe my brochure to see more pictures, I thought it was time.

I need web developer

Because when they asked if I wanted to see the mock up I said “No, it’s a serious site.”

I need a professional website made

because when I googled the one I made the search result was “Did you mean NO?

I need SEO…

because no one ever said “Awww, I wish this page loaded slower.”

I need my own domain name

because I don’t like being asked how I like working for gmail.com or Hotmail.

I need a professional website…

…I just realised the 9000 flyers I just got printed have the wrong phone number on them. Need any scrap paper?

I need web design because

As a web designer I make a damn fine astronaut.

I need web design because

My CSS is a mess, my HTML is shakey, my PHP is out the door and I’m afraid I’m SOL!

I Need an App…

because playing tic-tac-toe via a fax machine has been deemed “too hipster” of a mobile game.

I need web design because

When a co-worker asked if I had Skeuomorphism I said I felt fine.

I need SEO…

because my keywords are so bad their random-key-that-I-don’t-know-what-it-goes-to-that-I-found-in-a-draw-words.

I need a professional website

…to give the latest information to my clients instead of getting them the information late.

I need SEO…

because I asked my intelligent personal assistant to go to my site and it said, “And you are?”

I knew I was behind the times…

…when I thought it was rude that a client asked me for my FAQ. I said FAQ you too 🙂

I Need an App…

because preparing my business for the future didn’t mean building a time machine…. sadly.

I need SEO…

because unlike a new litter of puppies, duplicate content is not adorable.

I Need a Website …

because when people google me all they get is my blog of poetry. From high school.

I need my own domain name and email address.

It’s awkward to tell people to send their inquiries to SuperStudMuffin64@hotmail.com

I need web design because

I truly am a photoshop artist….Jackson Pollack

I need a website . . .

because I need to show people my
inventory, not just my CV.

I Need an App…

because I need to connect with those on the go so potential sales don’t go with them.

I need SEO…

because it’s the safest way to play in busy traffic.

I Need an App…

because everyone has a phone in their pocket and no room for a spandex wearing sign twirling person.

I Need an App…

because our company needs to be in the hands of our clients, literally and figuratively.

I Need an App…

because I also want to be able to scroll through our products on my phone instead of engaging in conversation in public.

Website Design & SEO Services in the Sunshine Coast

Clynic – Cosmetic Tattoo Artistry

Clynic – Cosmetic Tattoo Artistry

Pests App

Pests App

Custom portal for Bring a Plate

Custom portal for Bring a Plate

Really Clean App

Really Clean App

David Frith Jewellery

David Frith Jewellery

Little Critters Pest Control & Termite Management Specialists

Little Critters Pest Control & Termite Management Specialists

Karen Deakin Antiques

Karen Deakin Antiques

Home Care Assistance Sunshine Coast

Home Care Assistance Sunshine Coast

Olesya Hancock

Olesya Hancock

Brides Atelier

Brides Atelier

Medisсrubs

Medisсrubs

Sbyke

Sbyke

Our Core Team

Galina M.

Galina spends most of her time working on branding and illustration. Originally from Ukraine, Gali spent some time in Sydney and Melbourne and finally moved to the amazing Sunshine Coast two years ago. She has worked with high profile brands and digital agencies to create the best engagement and user experience.

Edward O.

Edward has a master in engineering for jet engines and turbomachines. He built major power plants as a project manager and delivered every project on budget and time. His favourite was Isogo New Unit Nb.1 in Japan which is the poster boy to date in regard to efficiency.

Alex M.

Alex has over ten years experience as a web programmer and has worked with clients in Australia, the UK, USA, Netherlands and Switzerland. He has a master’s degree in computer sciences and works as a head of I Need Website. Alex is passionate about helping small and medium sized businesses develop unique ways to grow their business online.

Book a Free Strategy Session

Loading...