Move sidebar on top of content for mobile version

Hello!

I’m using Leto by Athemes for my website www.calyptra.nl

In the shop page ( https://www.calyptra.nl/products/ ), the sidebar gets sent to the bottom of the page on mobile version. I would like to move the filters before the products.

Is this something somebody could help me with?

Thanks in advance,
Edu

Hi,

Thank you for contacting us. Edit these files with a child theme:

  • archive.php
  • home.php
  • index.php
  • page.php
  • search.php
  • single.php

Find this code block in each file:

    if ( $sidebar ) {
    	get_sidebar();	
    }

Then move it right before <section id="primary" line.

I hope that helps.

Regards,
Kharis
aThemes Support