How to put a block above the content in page sections

Solved
Tourist
12 0 1

Greetings, 

I am trying to move a block of custom HTML above my page content inside a page.sections layout. 

All I can see in page.sections.liquid is: {% section 'page-sections-template' %}.

 

Where would I go in order to put that custom HTML block above the page content?

 

Thanks in advance,

Cheers!

 

Edit: I created a page template and inside I put this code:

<div class="right-block">
{% section 'page-sections-template' %}
</div>

But my issue is that the content is still displayed above the custom block.

0 Likes

Success.

Shopify Partner
462 80 94

find where is the page.content is located and put custom html block above it.

{{page.content}}

this part of code pulls the page content, so if you don't want it to be above custom html, then move it under section

Author: Hovhannes Sargsyan (aka sarhov).
An individual web developer focused on Shopify development.
Need more help? Feel free to send me a direct message or drop an email shopify@sarhov.com

Website: https://sarhov.com  
Email: shopify@sarhov.com
Skype: @sarhov
Messenger: @sarhov
Telegram: @sarhov
1 Like
Highlighted
Tourist
12 0 1

Hi sarhov,

 

I figured it out and this is exactly what I did, just the way you explained it.

Cheers!

0 Likes