• Hi
    The plug-in works great. I have customized it a lot. I can let you know how I did all the changes if you are interested. I used the same plugins of my PC theme.

    I have the last problem to solve. It is to pass the Mobile Widget from my PC theme to the WP Smart Mobile Theme

    I have registered my Widget in the functions.php as follow

    ———————————————
    functions.php

    register_sidebar(array(
    ‘name’ => ‘Mobile Sidebar’,
    ‘id’ => ‘sidebar-1’,
    ‘description’ => ‘Sidebar area displayed on mobile version’,
    ‘before_widget’ => ‘<div class=”sidebar-widgets”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h2>’,
    ‘after_title’ => ‘</h2>’,
    )
    );
    ———————————————

    and

    ———————————————
    sidebar.php

    <div id=”sidebar-1″>
    <?php dynamic_sidebar(‘sidebar-1’); ?>
    </div>

    <div id=”sidebar-archives” class=”widget”>
    <h3><?php _e(‘Archives’) ?></h3>
    <div class=”widget-wrap”>

      <?php wp_get_archives( ‘type=monthly’ ); ?>

    </div>
    ———————————————

    I am sure that I can pass the sidebar.php because you can see the Archives just above the footer. Therefore the problem is the code in the functions.php

    I do not know what I am doing wrong. Please kindly help me.

    Please see the test version at

    In your iPhone
    https://sss.magaplus.jp/magaplus/saymedia_stg/gearpatrol_test1

    In your PC
    https://sss.magaplus.jp/magaplus/saymedia_stg/gearpatrol_test1/wordpress/?wps_preview=1#

    Thank you

    Rigo

    https://www.ads-software.com/plugins/wpsmart-mobile/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rigovillamarin

    (@rigovillamarin)

    I solved it. Instead of functions.php I put my code in base-functions.php and now the theme is displaying my Mobile Widget
    Thanks

    hi…

    any chance you could pass on the how to for this? I would love to pass a widget in the mobile version…but I am missing something from info above…

    Thanks in advance…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sidebar Widget from main PC theme to the mobile theme’ is closed to new replies.