If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Hi there, does anybody know how to get the sidebar content to appear, before the page content when the screensize is reduced to mobile format (<400px) ?
Which template / file can be modified, so the html for the sidebar is generated before the main page content?
Thank you very much,
You would need to do re-arrange the get_sidebar call in each of the various page type templates in the main php files. Index,page,search,single.php etc.
The dynamic templates would still take priority and will display however they are configured (ignoring the changes in the template files).
I don’t know if this would work however as the css layout is designed around calling the sidebars after the content. It may take some significant css fixes after the fact.
The topic ‘Sidebar content above page content in mobile size format’ is closed to new replies.