Home › Forums › WoodMart support forum › Mobile Popup Not Working
Mobile Popup Not Working
- This topic has 7 replies, 2 voices, and was last updated 2 years, 4 months ago by Elise Noromit.
-
AuthorPosts
-
June 27, 2022 at 9:35 pm #386669
techmindParticipantI trying add a popup in single product page with a Elementor button with shortcode. It is working well on desktop and chrome inspect with mobile dimensions but it button not working on mobile devices.
If i add popup element woodmart i cant use shortcode for “Read More” text. How i can fix this?
Attachments:
You must be logged in to view attached files.June 27, 2022 at 11:46 pm #386687
techmindParticipantI changed global-button.php Line 39 for insert a shortcode.
'dynamic' => [ 'active' => true, ],
i added Line 39 this code and it is working well now.
June 27, 2022 at 11:52 pm #386688
techmindParticipantAnd I changed class.popup.php for make it full width line 148
$this->add_control( 'width', [ 'label' => esc_html__( 'Width', 'woodmart' ), 'type' => Controls_Manager::SLIDER, 'default' => [ 'size' => 800, ], 'range' => [ 'px' => [ 'min' => 150, 'max' => 2000, 'step' => 10, ], ], ] );
changed to
$this->add_control( 'width', [ 'label' => esc_html__( 'Width', 'woodmart' ), 'type' => Controls_Manager::TEXT, 'default' => '800', ] );
And Line 206
<div id="<?php echo esc_attr( $settings['popup_id'] ); ?>" class="mfp-with-anim wd-popup wd-popup-element mfp-hide<?php echo woodmart_get_old_classes( ' woodmart-content-popup' ); ?>" style="max-width:<?php echo esc_attr( $settings['width']['size'] ); ?>px;">
changed to
<div id="<?php echo esc_attr( $settings['popup_id'] ); ?>" class="mfp-with-anim wd-popup wd-popup-element mfp-hide<?php echo woodmart_get_old_classes( ' woodmart-content-popup' ); ?>" style="max-width:<?php echo esc_attr( $settings['width']['size'] ); ?>;">
June 27, 2022 at 11:58 pm #386689
techmindParticipantI am sorry i shared wrong code.
Change class.popup.php Line 206
<div id="<?php echo esc_attr( $settings['popup_id'] ); ?>" class="mfp-with-anim wd-popup wd-popup-element mfp-hide<?php echo woodmart_get_old_classes( ' woodmart-content-popup' ); ?>" style="max-width:<?php echo esc_attr( $settings['width']['size'] ); ?>px;">
Changed To
<div id="<?php echo esc_attr( $settings['popup_id'] ); ?>" class="mfp-with-anim wd-popup wd-popup-element mfp-hide<?php echo woodmart_get_old_classes( ' woodmart-content-popup' ); ?>" style="max-width:<?php echo esc_attr( $settings['width'] ); ?>;">
It is working well now.June 28, 2022 at 12:11 am #386690
techmindParticipantFor Change Default settings Class.popup.php Line 186
protected function render() { $default_settings = [ 'popup_id' => 'my_popup', 'content' => '', 'link' => array(), 'width' => 800, ];
To
protected function render() { $default_settings = [ 'popup_id' => 'my_popup', 'content' => '', 'link' => array(), 'width' => 800px, ];
June 29, 2022 at 1:46 am #387033
Elise NoromitMemberHello,
Please remove all your code modifications and deactivate all the plugins except these ones:
Slider Revolution
WPBakery Page Builder or Elementor
Woodmart Core
Contact Form 7
MailChimp for WordPress
WooCommerce
Safe SVG
Switch to the parent theme and check the issue.If the problem has gone, activate the plugins one by one, checking the issue to detect which one causes the problem.
In case, the problem remains, even after all the plugins are deactivated, provide your site admin access (insert the site credentials into the Private content block under the message area) and confirm the permission for plugins deactivation, switching to the parent or default theme. As soon as we complete the testing we will enable all back, however, the site would be without plugins for 15-20 min. You would better make the full backup of your site.
Best Regards
July 23, 2022 at 1:08 pm #393051
techmindParticipantIt is not working i can’t use shortcode for a link u know. My changes working perfect now with my codes.
July 24, 2022 at 2:45 am #393158
Elise NoromitMemberHello,
We are glad you have solved the issue.
If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register