where to put the shortcode ?

Home Forums Any Mobile Theme Switcher where to put the shortcode ?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6690
    jean pierre
    Guest

    Hello,

    about :
    <?php echo do_shortcode(‘[show_theme_switch_link]’); ?>

    i tried in the footer, the header, the functions files without success. I don’t see “desktop” or “mobile”.

    can you help me ? Thank you.

    #6693
    Dinesh
    Keymaster

    Hi Jean,

    Do you kept this in mobile theme ? Show desktop links works for mobile only.

    Thanks

    #6696
    jean pierre
    Guest

    thank you for your answer.

    yes, i put <?php echo do_shortcode(‘[show_theme_switch_link]’); ?> in the mobile theme “mobile friendly”(header, footer,functions) .

    i tried also with tewntytwelve without success.

    #6697
    jean pierre
    Guest

    sorry, it’s not mobile friendly, it’s responsive mobile theme and the line :

    <?php echo do_shortcode(‘[show_theme_switch_link]’); ?>

    is at the end of the footer.

    #6702
    Dinesh
    Keymaster

    Hi Jean,

    If you are using responsive theme why do you need the mobile theme switcher ? I don’t see the point here. Neither it is needed to use desktop theme link.

    Thanks

    #7034
    Mr. M
    Guest

    Hi dinesh
    Could you help me to solve this
    I want some plugin style values to change according to the theme i.e. mobile or desktop

    I just want to ask you that how can i know, is there any specific function to get the current active device so that i can display according to the device (mobile or desktop).
    like $current= get_options(‘current_device’);
    Thank you

    #7042
    Dinesh
    Keymaster

    Hi Mr M,

    We are really sorry about it but our plugin doesn’t have such option or function. However there is a inbuilt wordpress function you can use. https://codex.wordpress.org/Function_Reference/wp_is_mobile

    Hope this helps.

    Thanks

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘where to put the shortcode ?’ is closed to new replies.