Tagged: x
-
AuthorPosts
-
March 23, 2017 at 9:02 am #1417665
Hi There!
I’ve read many of the posts on how to move a sidebar above the content in mobile- but somehow its not working for me- i tried creating a new php page in the views folder under integrity and moving the sidebar shortcode above the content but it didnt change anything. Would appreciate the help!
My Set up:
Integrity
Sidebar only on blog pages – content left sidebar right
Child Theme set up
Local set up so i cant give my credentials
Wordpress/Cornerstone – all the latest versionThanks!
March 23, 2017 at 1:20 pm #1418023Hi there,
Thanks for writing around! To move the sidebar above content in mobile view, create a new file wp-index.php and paste the following code inside:
<?php // ============================================================================= // VIEWS/INTEGRITY/WP-INDEX.PHP // ----------------------------------------------------------------------------- // Index page output for Integrity. // ============================================================================= ?> <?php get_header(); ?> <div class="x-container max width offset"> <?php get_sidebar(); ?> <div class="<?php x_main_content_class(); ?>" role="main"> <?php x_get_view( 'global', '_index' ); ?> </div> </div> <?php get_footer(); ?>
Via FTP upload this file to /x-child/framework/views/integrity/ in your Child Theme. Then add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:
.x-sidebar { margin: 0 0 3em 0 !important; }
Let us know how this goes!
March 23, 2017 at 2:00 pm #1418062ok i’ll give it a try now, thanks!
March 23, 2017 at 3:27 pm #1418164Sure, do let us know if this works for you.
Cheers!
-
AuthorPosts