Show sidebar
-
how can I get the sidebar to show on my mobile site?
-
Funny, I came to find out how to get the sidebar to NOT show… that’s all you can see.
Hi justpurple. This plugin by default do not show the widget area witch is where the sidebar is located.
However I found a way to display the “Text” widget. To do that you have to add the widget function code of the widget you want to display in the functions.php file located at /wp-content/plugins/wptouch/themes/bauhaus
The function code that you have to grab should be located at /wp-content/themes/ThemeName/includes/ and the file name is sidebar-init.php
Hope this helps.
Raul.-
My problem is that it ONLY shows the sidebar.
Raul
Are you talking about going into the c-panel or the wp-editor?Neither one makes sense…could you please provide more explanation.
Thank you
same problem not showing sidebar website link:www.eits.in
Also site logo in not showing what to do …………>Enahnce It solutions
From their support:
https://support.wptouch.com/support/solutions/articles/5000537513-common-customizationsAdd a sidebar & widgets to the footer
You may add a sidebar to the mobile theme by adding the following code at the end of the root-functions.php file in your copied child theme.add_action( 'init', 'register_widgets' ); add_action( 'wptouch_body_bottom', 'output_my_sidebar_at_bottom' ); function register_widgets() { register_sidebar( array( 'name' => 'WPtouch Bottom', 'id' => 'wptouch-bottom-1', 'description' => 'WPtouch sidebar for the bottom of the content' ) ); } function output_my_sidebar_at_bottom() { dynamic_sidebar( 'WPtouch Bottom' ); }The above code didn’t work…I use wptouch & placed it into core settings: Custom code….there is no editor in wptouch
This is probably not the best solution, but my situation went like this:
I have a form to fill out in my sidebar, which I want present on all my pages. Well with WPTouch, it got rid of my sidebar.
I found that I could insert the form right before the closing of the content div in the following files:/wp-content/plugins/wptouch/themes/bauhaus/default/single.php (for posts)
LINE 47, before </div>and then
/wp-content/plugins/wptouch/themes/bauhaus/default/page-content.php (for pages)
LINE 12, before </div>So, I put my form html there, and now it shows up on my phone at the bottom of these pages / posts.
I know that I will have to watch out if I ever update my WPTouch.
The nice thing is, it does not show it on the computer / desktop, but I have the sidebar there. Vice-versa, it shows on the phone, but the sidebar doesn’t… no redundancy.
The topic ‘Show sidebar’ is closed to new replies.