Archived topic
Place right sidebar (mobile view) between two hooks
16 replies · Started by Alejandro on February 20, 2021
But David told otherwise in their last post...
Are you referring this answer?
https://generatepress.com/forums/topic/place-right-sidebar-mobile-view-between-two-hooks/#post-1670493
1. Custom JS is out of the scope of GP support, can't help you with that.
2. You could use CSS to hide the sidebar in mobile view, then add the sidebar content by using generate_before_footer hook, hide it on desktop, adjust priority to re-order the hooks which are using the same position.