Home Forums WoodMart support forum Video Problem

Video Problem

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #290335

    ucarwebnet
    Participant

    Hello, these fields are not working. I request your help.

    buddha alternative study
    1. http://prntscr.com/12m052r
    2. http://prntscr.com/12m01ow
    3. http://prntscr.com/12m0h26

    Attachments:
    You must be logged in to view attached files.
    #290365

    Artem Temos
    Keymaster

    Hello,

    Could you please try to add your video code to the description field and test how it works with a default WordPress theme to see if it is something related to WoodMart or not?

    Kind Regards

    #290391

    ucarwebnet
    Participant

    Hello, thank you for your valuable answer. There does not seem to be a problem in this area. We need other fields 🙂

    http://prntscr.com/12m4kyj

    #290392

    Artem Temos
    Keymaster

    In this case, please, send us your admin access so we can check what is wrong there.

    #290413

    ucarwebnet
    Participant

    ok 🙂

    #290419

    Artem Temos
    Keymaster

    We don’t see the video code there at the moment. Could you please insert it somewhere so we can see it and test it in different places?

    #290422

    ucarwebnet
    Participant

    When I say update the page, the code in the tab area disappears.

    Attachments:
    You must be logged in to view attached files.
    #290424

    Artem Temos
    Keymaster

    Try to do the following

    1. Edit the file woodmart/inc/options/class-sanitize.php and replace the following line

    $val = wp_kses_post( $val );

    with this one

    $val = wp_kses( $val, woodmart_get_allowed_html() );

    2. And put this code snippet to the functions.php file in your child theme

    function woodmart_get_allowed_html() {
    		return apply_filters(
    			'woodmart_allowed_html',
    			array(
    				'br'     => array(),
    				'i'      => array(),
    				'b'      => array(),
    				'u'      => array(),
    				'em'     => array(),
    				'del'    => array(),
    				'iframe' => array(
    					'width'           => true,
    					'height'          => true,
    					'src'             => true,
    					'title'           => true,
    					'frameborder'     => true,
    					'allow'           => true,
    					'allowfullscreen' => true,
    				),
    				'a'      => array(
    					'href'   => true,
    					'class'  => true,
    					'target' => true,
    					'title'  => true,
    					'rel'    => true,
    				),
    				'strong' => array(),
    				'span'   => array(
    					'style' => true,
    					'class' => true,
    				),
    			)
    		);
    	}
    #290435

    ucarwebnet
    Participant

    I added the codes you gave to the aforementioned fields, but I guess I didn’t get a result. Can you check it?

    #290451

    Artem Temos
    Keymaster

    We don’t see the child theme even activated. Please, add the code to the child theme as we instructed.

    #290458

    ucarwebnet
    Participant

    I uploaded the theme

    #290470

    ucarwebnet
    Participant

    I uploaded the theme – I could not overcome this problem

    are you interested, thank you

    http://prntscr.com/12mc8c6

    #290503

    Artem Temos
    Keymaster

    You don’t need to replace all code in the child theme. You need to restore the original functions.php file and put that snippet right after the existing PHP code there.

    #290589

    ucarwebnet
    Participant

    video link operation successful thank you …

    but the embed code field does not work any more?

    http://prntscr.com/12moxqi

    #290880

    Artem Temos
    Keymaster

    Sorry, but we don’t understand the problem. Could you please clarify what is wrong there?

Tagged: 

Viewing 15 posts - 1 through 15 (of 15 total)