What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Theme editor - Is is possible to avoid scrolling to the object in focus?

Theme editor - Is is possible to avoid scrolling to the object in focus?

fallen-domino
Shopify Partner
68 0 13

Hi,

 

If a section is added to theme.liquid and you click on it on the left in the Theme Editor, the screen scrolls to where it would render.

 

If that section is added down next to {% section 'footer' %} because it's being used for some kind of site-wide data but doesn't render any content, every time the user goes to edit it, the screen scrolls all the way down.

 

Not the end of the world, but is it possible to prevent that scroll from happening?

 

Thanks

Replies 2 (2)

SabirHussain
New Member
6 0 0

Hey Fallen,
you could avoid the scroll if you just click on the eye button in front of your section name,
it will hide the section but also will not scroll to the section on the page
and as in your case you don't have UI for section so this trick could work for you while you are in design mode

Make sure to show it before you save the finalized design other wise your code in that section would not run in preview mode 🙂

SabirHussain_0-1659019186127.png

 

Sabir
fallen-domino
Shopify Partner
68 0 13

Thanks @SabirHussain , very good to know and I'll play around with this soon.  Cheers