Quantcast
Channel: Topic Tag: mobile | WordPress.org
Viewing all articles
Browse latest Browse all 22108

Gaerwn on "[Theme: Hannari] How to display left sidebar after page content on mobile"

$
0
0

Hi,

I solved it by changing the template for Page: Left Sidebar in the child theme.

1. Copy the Hannari file template-left-sidebar.php in the child-theme folder.
2. Open the child theme file for editing and move the code for sidebar get_sidebar(); after the DIV element containing the page content.
Instead of

<div class="columnwrapp pagesidebar innerpage left_sidebar">
	<?php get_sidebar(); ?>
	<div class="pagecontent">
        	<?php if (have_posts()) :
        	/* ............ */
		endif; ?>
	</div>
</div>

you should have

<div class="columnwrapp pagesidebar innerpage left_sidebar">
	<div class="pagecontent">
        	<?php if (have_posts()) :
        	/* ............ */
		endif; ?>
	</div>
	<?php get_sidebar(); ?>
</div>

and the left sidebar is displayed after page content on tablet and mobile.


Viewing all articles
Browse latest Browse all 22108

Trending Articles