Sidebar Widget from main PC theme to the mobile theme
-
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.phpregister_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_test1In your PC
https://sss.magaplus.jp/magaplus/saymedia_stg/gearpatrol_test1/wordpress/?wps_preview=1#Thank you
Rigo
- The topic ‘Sidebar Widget from main PC theme to the mobile theme’ is closed to new replies.