Active Open on PC but closed on mobile?

Ticket for: Accordions Combo
0
Active Open on PC but closed on mobile? 1
Johann Steinwand
Mar 12, 2020 07:11 PM 1 Answers
Member Since Mar 2020
Subscribed Subscribe Not subscribe
Flag(0)

Hello, we want the accordion to be open active on PC, but closed on Mobile (to safe space in our footer for mobiles)

How can we do that?

Thanks for your help.

Greetings from Germany

2 Subscribers
Active Open on PC but closed on mobile? 1
Active Open on PC but closed on mobile? 3
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
Active Open on PC but closed on mobile? 4
PickPlugins
Mar 13, 2020
Flag(0)

Welcome to our forum.

Unfortunately, there is no option to do this, you can try following code to close on mobile

add_action('accordions_main', 'accordions_pro_main_scripts_mobile', 90);

function accordions_pro_main_scripts_mobile($atts){

    $post_id = isset($atts['id']) ? $atts['id'] : '';
    if(wp_is_mobile()):
        ?>
        
        

Please note, this code will only work in latest version of accordions we release today

Watch this video

https://www.youtube.com/watch?v=DDKMWphWLGI

Regards

Sign in to Reply
Replying as Submit