Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   Jetpack Mobile Theme (http://forum.bytesforall.com/showthread.php?t=18604)

Acts1711 Oct 8, 2012 01:51 AM

Jetpack Mobile Theme
 
Hi,

I want to use the RIGHT INNER SIDEBAR with Jetpack Mobile Theme and not the LEFT SIDEBAR! This is something that has to do with the "Sidebar id". How can I change this with the Atahualpa theme, please, according to the instructions given here: jetpack.me / support / mobile-theme

?

juggledad Oct 8, 2012 04:25 AM

after a quick look at the instructions if you go into Atahualpa and change the sidebar name according to their directions, it will most likely messup the desktop view of the site.

you could probably edit the jetpack and change all occurances of 'sidebar-1' to 'right-inner' to get the same effect

Acts1711 Oct 8, 2012 09:03 AM

I changed all the occurences of "sidebar-1" to "right-inner" in Jetpack and now I don't have the sidebar below the posts; but I guess this is fine, otherwise the page would be to long for mobile viewing. I think the right name for the sidebar should be the full name, "Right Inner Sidebar", but I haven't tested like this. I'm leaving my site without any of the sidebars for the moment.

Thank you, Juggledad

hollidaysjohn Jan 9, 2013 09:24 AM

I have found a straightforward solution to this problem. In the functions.php simply register a further sidebar. In the 'name' field use the ATA name e.g. Right Sidebar, and use a different 'id':

\wp-content\plugins\jetpack\modules\minileven\theme\pu b\minileven\

function minileven_widgets_init() {
register_sidebar( array(
'name' => __( 'Main Sidebar', 'jetpack' ),
'id' => 'sidebar-1',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => "</aside>",
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
register_sidebar( array(
'name' => __( 'Right Sidebar', 'jetpack' ),
'id' => 'sidebar-2',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => "</aside>",
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );

}

Then in the sidebar.php file add:

<?php dynamic_sidebar( 'Right Sidebar' ); ?>

Koukla Dec 28, 2013 08:42 PM

I am also using the Jetpack plugin (actually Slim Jetpack) and the sidebar was not working at all on the mobile site. I read this article from the publisher of the plugin which was helpful: http://jetpack.me/support/mobile-theme/. I ended up editing the widgets.php file to register a new sidebar called "sidebar-1". I found instructions on how to do that here: http://codex.wordpress.org/Function_...gister_sidebar. I'm not sure what the difference between editing the functions.php or widgets.php would be, but it is working for me.

Koukla Dec 28, 2013 08:46 PM

I should also add that I ended up recreating the content I have in my regular sidebar to "sidebar-1". The way I understood it was that since sidebar-1 is not referenced anywhere in the Atahualpa theme, then it will not affect the desktop site. I hope this helps someone with a similar problem.


All times are GMT -6. The time now is 03:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.