[Resolved] Order of components on Mobile

  • Author
    Posts
  • #15368

    patrickTheSailor
    Participant

    Hmmmm….
    Looks like I may have figured this out myself….
    It seems to work fine when I simply move the call to get_sidebar() in page.php from its original location which is directly before the call to “get_footer()” to directly after the call to “get_header()”.

    Seems to work okay. Does this sound right? Thanks.

    Patrick

    #15373

    Puro Support
    Keymaster

    Hi Patrick

    Thanks for posting your question.

    You can change the order of elements by moving the sidebar function. This should be done via a child theme, please, find a starter child theme for Polestar here.

    You can also try the following at Appearance > Custom CSS or Customize > Additional CSS instead of making the PHP change:

    @media (max-width: 768px) {
    	.site-content > .polestar-container {
    		display: flex;
    		flex-direction: column-reverse;
    	}
    
    	#secondary {
    		border-top: none;
    		border-bottom: 1px solid #e6e6e6;
    		padding: 0 0 50px;
    		margin: 0 0 50px;
    	}
    }
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Scroll to top