Home Forums WoodMart support forum Woodmart parallax options gone after update Woodmart to 3.5 and VC 5.7

Woodmart parallax options gone after update Woodmart to 3.5 and VC 5.7

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #108653

    Bulld Digital
    Participant

    Hi,

    After the updates to the theme and VC my options for controlling the parallax options have gone.
    I can only switch to ON but there used to be options for controlling speed and position.
    Please see: https://share.vidyard.com/watch/cUBhuaGKcsx5YaLeSK4jb3?

    Thanks,

    Sander

    #108656

    Artem Temos
    Keymaster

    Hi,

    We didn’t have speed and position options for this parallax effect.

    Kind Regards

    #108677

    Bulld Digital
    Participant
    #108682

    Artem Temos
    Keymaster

    Seems to be our mistake. Try to add the following PHP code snippet to the child theme functions.php file to do this

        function woodmart_parallax_scroll_map(){
            return array(
            	array(
            		'type' => 'woodmart_switch',
            		'heading' => esc_html__( 'Enable parallax on mouse scroll', 'woodmart' ),
            		'param_name' => 'parallax_scroll',
            		'group' => esc_html__( 'Woodmart Extras', 'woodmart' ),
            		'true_state' => 'yes',
    				'false_state' => 'no',
    				'default' => 'no',
    				'edit_field_class' => 'vc_col-sm-6 vc_column',
            	),
            	array(
            		'group'            => esc_html__( 'Woodmart Extras', 'woodmart' ),
            		'heading'          => esc_html__( 'X axis translation', 'woodmart' ),
                    'hint'      => esc_html__( 'Recommended -200 to 200', 'woodmart' ),
            		'type'             => 'textfield',
            		'param_name'       => 'scroll_x',
                    'edit_field_class' => 'vc_col-sm-4 vc_column',
            		'value'            => 0,
            		'dependency'       => array(
            			'element' => 'parallax_scroll',
                        'value' => array( 'yes' ),
            		),
    				'edit_field_class' => 'vc_col-sm-6 vc_column',
            	),
            	array(
            		'group'            => esc_html__( 'Woodmart Extras', 'woodmart' ),
            		'heading'          => esc_html__( 'Y axis translation', 'woodmart' ),
                    'hint'      => esc_html__( 'Recommended -200 to 200', 'woodmart' ),
            		'type'             => 'textfield',
            		'param_name'       => 'scroll_y',
                    'edit_field_class' => 'vc_col-sm-4 vc_column',
            		'value'            => -80,
            		'dependency'       => array(
            			'element' => 'parallax_scroll',
            			'value' => array( 'yes' ),
            		),
    				'edit_field_class' => 'vc_col-sm-6 vc_column',
            	),
            	array(
            		'group'            => esc_html__( 'Woodmart Extras', 'woodmart' ),
            		'heading'          => esc_html__( 'Z axis translation', 'woodmart' ),
                    'hint'      => esc_html__( 'Recommended -200 to 200', 'woodmart' ),
            		'type'             => 'textfield',
            		'param_name'       => 'scroll_z',
                    'edit_field_class' => 'vc_col-sm-4 vc_column',
            		'value'            => 0,
            		'dependency'       => array(
            			'element' => 'parallax_scroll',
            			'value' => array( 'yes' ),
            		),
    				'edit_field_class' => 'vc_col-sm-6 vc_column',
            	),
            	array(
            		'group'       => esc_html__( 'Woodmart Extras', 'woodmart' ),
            		'heading'     => esc_html__( 'Parallax speed', 'woodmart' ),
            		'hint' => esc_html__( 'Define the parallax speed on mouse scroll. By default - 30', 'woodmart' ),
            		'type'        => 'dropdown',
            		'param_name'  => 'scroll_smooth',
            		'value'       => array( '', 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 ),
            		'dependency'  => array(
            			'element' => 'parallax_scroll',
            			'value' => array( 'yes' ),
            		),
    				'edit_field_class' => 'vc_col-sm-6 vc_column',
            	),
            );
        }
    #108686

    Bulld Digital
    Participant

    Thanks, that did add the function back to the columns but it’s not working.
    I tried to change and save the fields but nothing is changing on the front-end (cache cleared):

    https://share.vidyard.com/watch/ngBoYYceKmMUrELeq7r1Z1?

    #108688

    Artem Temos
    Keymaster

    Could you please send us a link to this page as well as your admin access?

    #108691

    Bulld Digital
    Participant

    Check details

    #108693

    Artem Temos
    Keymaster

    You need to configure it for the single image element as you have now https://gyazo.com/26eaef58297fce738b75697ed431a726

    #108695

    Bulld Digital
    Participant

    Yup, that’s it. Thanks!

    #108696

    Artem Temos
    Keymaster

    Great, you are welcome.

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

The topic ‘Woodmart parallax options gone after update Woodmart to 3.5 and VC 5.7’ is closed to new replies.