How to add dynamic watermark to the video player
Last updated
Last updated
You can view the demo of our watermark here:
Edit your project and go to the "Video Options" tab or click on a video title in the dashboard and find the "Options" tab. Please enable the option "Dynamic watermark".
To add a dynamic watermark to the video player, you just need to add an attribute `data-watermark` to the DIV of your embed code.
This will show you an animated watermark on the video player
Please remember to turn off the "IP Watermark" option in the dashboard in order for the dynamic watermark to work. Only one of these watermarks can work at a time.
Edit your project and go to the "Video Options" tab or click on a video title in the dashboard and find the "Options" tab. Please enable the option "Dynamic watermark".
Step 2
If you are using iframe-based embe code then you can add the watermark in the URL of iframe.
Enhance user experience on your WordPress website by adding a dynamic watermark that displays the current username of logged-in users. Follow these quick steps to implement this feature:
Access User Data: Utilize the wp_get_current_user()
function to retrieve the logged-in user's information, specifically the username.
Display Watermark: Insert the obtained username into the data-watermark
attribute of a designated HTML element. Ensure security by using the esc_attr()
function to escape the username.
Implementation: Add the provided PHP code and HTML element to your WordPress templates or pages for the watermark to appear.
By following these steps, you'll create a personalized touch on your website, engaging users with a dynamic watermark displaying their usernames.