Play Button Is Not Working
-
Hi. I have this problem with the plugin, it is not working properly.
What can be done to fix it?
The page I need help with: [log in to see the link]
-
Hello mlluv.
Thank You for posting your question.
Our team is now considering this issue. Please wait a little. Our team will do everything to help you to solve this problem.
Sorry for bothering.
Thank You.
Dear mlluv.
Follow the instructions please.
Please find the Rich Web-Video-Slider-Widget.js file in the plugin. Find this code
function RIch_Web_SVS_Play_Video(VSlider_ID) { jQuery('.RichWeb_SVS_'+VSlider_ID+' iframe').css('z-index','30'); jQuery('.RichWeb_SVS_'+VSlider_ID+' .Rich_Web_VSlider_SVS_PlayIcon').fadeOut(); jQuery('#Rich_Web_VS_SVS_'+VSlider_ID+' a').each(function(){ if(jQuery(this).hasClass('iis-current-slide')) { jQuery('.RichWeb_SVS_'+VSlider_ID+' iframe').attr('src',jQuery(this).attr('data-src-2x')+'?autoplay=1&rel=0&'); } }) } function RIch_Web_SVS_Close_Video(VSlider_ID) { jQuery('.RichWeb_SVS_'+VSlider_ID+' iframe').css('z-index','-1'); jQuery('.RichWeb_SVS_'+VSlider_ID+' iframe').attr('src',''); jQuery('.RichWeb_SVS_'+VSlider_ID+' .Rich_Web_VSlider_SVS_PlayIcon').fadeIn(); }
If you do not see this code, please post it there. And see if it works or not.
I am not sure where to paste the code that you have given to me in the plug in. I have copied the code from the plugin and pasted it here. Please add the code that you have given to me to the code that I have given to you. I do not want to break anything in the plugin. Thank you.
I will copy and paste the complete code that you will resend to me and paste it into the plugin in my site.
Thank you.<?php
/*
Plugin name: Video Slider
Plugin URI: https://www.rich-web.esy.es/
Description: Slider plugin is fully responsive. Your videos with our slider effects will be perfectly.
Version: 9.0.0
Author: Rich-Web
Author URI: https://www.rich-web.esy.es/
License: GNU/GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
*/add_action(‘widgets_init’, ‘Rich_Web_Video_Slider_Widget’);
function Rich_Web_Video_Slider_Widget()
{
register_widget(‘Rich_Web_Video_Slider’);
}
require_once(dirname(__FILE__) . ‘/Rich-Web-Video-Slider-Widget.php’);
require_once(dirname(__FILE__) . ‘/Rich-Web-Video-Slider-Ajax.php’);
require_once(dirname(__FILE__) . ‘/Rich-Web-Video-Slider-Shortcode.php’);add_action(‘wp_enqueue_scripts’,’Rich_Web_Video_Slider_Style’);
function Rich_Web_Video_Slider_Style(){
wp_register_style(‘Rich_Web_Video_Slider’, plugins_url(‘/Style/Rich-Web-Video-Slider-Widget.css’,__FILE__));
wp_enqueue_style(‘Rich_Web_Video_Slider’);
wp_register_script(‘Rich_Web_Video_Slider’,plugins_url(‘/Scripts/Rich-Web-Video-Slider-Widget.js’,__FILE__),array(‘jquery’,’jquery-ui-core’));
wp_localize_script(‘Rich_Web_Video_Slider’, ‘object’, array(‘ajaxurl’ => admin_url(‘admin-ajax.php’)));
wp_enqueue_script(‘Rich_Web_Video_Slider’);
wp_enqueue_script(‘Rich_Web_Video_Slider2’);
wp_enqueue_script(“jquery”);
wp_register_style(‘fontawesomeSl-css’, plugins_url(‘/Style/richwebicons.css’, __FILE__));
wp_enqueue_style(‘fontawesomeSl-css’);
}
add_action(“admin_menu”, ‘Rich_Web_Video_Slider_Admin_Menu’ );
function Rich_Web_Video_Slider_Admin_Menu()
{
$complete_url = wp_nonce_url( $bare_url, ‘edit-menu_’.$comment_id, ‘Rich_Web_VSlider_Nonce’ );
add_menu_page(‘Rich-Web Video Slider Admin’ . $complete_url,’Video Slider’,’manage_options’,’Rich-Web Video Slider Admin’ . $complete_url,’Manage_Rich_Web_Video_Slider_Admin’,plugins_url(‘/Images/admin.png’,__FILE__));
add_submenu_page(‘Rich-Web Video Slider Admin’ . $complete_url, ‘Rich-Web Video Slider Admin’, ‘Slider Manager’, ‘manage_options’, ‘Rich-Web Video Slider Admin’ . $complete_url, ‘Manage_Rich_Web_Video_Slider_Admin’);
add_submenu_page(‘Rich-Web Video Slider Admin’ . $complete_url, ‘Rich-Web Video Slider General’, ‘Slider Options’, ‘manage_options’, ‘Rich-Web Video Slider General’ . $complete_url, ‘Manage_Rich_Web_Video_Slider_General’);
add_submenu_page(‘Rich-Web Video Slider Admin’ . $complete_url, ‘Rich-Web Video Slider Products’, ‘Our Products’, ‘manage_options’, ‘Rich-Web Video Slider Products’, ‘Manage_Rich_Web_Video_Slider_Products’);
}
function Manage_Rich_Web_Video_Slider_Admin()
{
require_once(‘Rich-Web-Video-Slider-Admin.php’);
require_once(‘Style/Rich-Web-Video-Slider-Admin.css.php’);
}
function Manage_Rich_Web_Video_Slider_General()
{
require_once(‘Rich-Web-Video-Slider-General.php’);
require_once(‘Scripts/Rich-Web-Video-Slider-General.js.php’);
require_once(‘Style/Rich-Web-Video-Slider-General.css.php’);
}
function Manage_Rich_Web_Video_Slider_Products()
{
require_once(dirname(__FILE__) . ‘/Rich-Web-Products.php’);
}
add_action(‘admin_init’, ‘Rich_Web_Video_Slider_Admin_Style’);
function Rich_Web_Video_Slider_Admin_Style()
{
wp_enqueue_style(‘wp-color-picker’);
wp_enqueue_script(‘wp-color-picker’);
wp_register_script(‘Rich_Web_Video_Slider’, plugins_url(‘Scripts/Rich-Web-Video-Slider-Admin.js’,__FILE__),array(‘jquery’,’jquery-ui-core’));
wp_localize_script(‘Rich_Web_Video_Slider’, ‘object’, array(‘ajaxurl’ => admin_url( ‘admin-ajax.php’ )));
wp_enqueue_script(‘Rich_Web_Video_Slider’);
wp_register_style(‘fontawesomeSl-css’, plugins_url(‘/Style/richwebicons.css’, __FILE__));
wp_enqueue_style(‘fontawesomeSl-css’);
}
register_activation_hook(__FILE__,’Ric_Web_Video_Slider_activate’);
function Ric_Web_Video_Slider_activate()
{
require_once(‘Rich-Web-Video-Slider-Install.php’);
}
function Rich_Web_Video_Slider_Color() {wp_enqueue_script(
‘alpha-color-picker’,
plugins_url(‘/Scripts/alpha-color-picker.js’, __FILE__),
array( ‘jquery’, ‘wp-color-picker’ ), // You must include these here.
null,
true
);
wp_enqueue_style(
‘alpha-color-picker’,
plugins_url(‘/Style/alpha-color-picker.css’, __FILE__),
array( ‘wp-color-picker’ ) // You must include these here.
);
}
add_action( ‘admin_enqueue_scripts’, ‘Rich_Web_Video_Slider_Color’ );
?>
- The topic ‘Play Button Is Not Working’ is closed to new replies.