WordPress
October 15, 2021

How to Hide Related Videos in YouTube Embeds

When an embedded YouTube video is done playing, the YouTube player normally shows several related videos, also known as “suggested videos” or “more videos”. However, there are reasons a website owner might want to hide these – due to branding preferences or simply wanting a cleaner user experience.

Disable related videos on YouTube embeds by simply adding ?rel=0 to the iframe’s src like this:

And also you have to use embed keyword in url when you have url with watch keyword like this https://www.youtube.com/watch?v=EngW7tLk6R8, you have to use embed keyowrd instead of watch keyword so the rel=0 will worked and more videos will be hide. So your video url will be made like this https://www.youtube.com/embed/EngW7tLk6R8?rel=0.

Related Post


Add ACF Options Page in WordPress

To create an options page, open up your current themes functions.php file and add the following code: Without passing any parameters to this function, the default options page will be added to your wp-admin sidebar.

Change Comment Form Title “Leave a comment” WordPress

comment_form_defaults filter allow to change comment form title “Leave a comment” to other custom text, filter comment_form_defaults help you to change it. Code goes in function.php file of your active child theme (or active theme).

Creating Custom Options Pages in WordPress

To create a menu for theme setting in the WordPress admin, you should use the Settings API provided by WordPress. Using this API, you can register a new options page, with fields for settings. Additionally, you can add settings to an existing options page. That being said, let’s add the following code to the main […]

Display Most Popular Posts by Views in WordPress

1. Store Post Views Count You will find out how to display popular posts by views in WordPress without an external plugin, and we will create this feature using few lines of code that consists of WordPress custom function and methods. So, make sure to place following code at function file, you may place the […]

How to Change WordPress Post excerpt length

For Change post excerpt length add following code in your current themes functions.php file.

Increasing the WordPress Memory Limit

This article for increase memory limit in WordPress. Below are some ways to increase memory limit. Edit wp-config.php file First you need to edit the wp-config.php file on your WordPress site. It is located in your WordPress site’s root folder, and you will need to use an FTP client or file manager in your web […]


Leave a Reply

Your email address will not be published. Required fields are marked *