Modify custom liquid section above header to other pages

On the homepage there is a custom liquid section (video) above header

https://atheart.gr/

On the other page below, the custom liquid section, which is still above the header, has to be replaced with an image.

https://atheart.gr/pages/washing-instructions

When i hide or delete the custom liquid section from Header, it is disappeared from the whole website.

I have tried to edit the code, but i couldn´t manage to solve this issue. Below some examples i found on internet that didnt´t work out.

  1. I have added a custom liquid section at the bottom of the subpage

﹤style﹥

.header-wrapper{

display: none !important;

}

footer.footer{

display: none !important;

}

﹤/style﹥

  1. I have added on the “edit code”, theme.liquid but i cannot find the custom liquid section

{% unless template.name == ’ washing-instructions ’ %}
expression
{% endunless %}

The code on the page is shown like this:

{{ 'accessibility.skip_to_text' | t }}

{%- if settings.cart_type == ‘drawer’ -%}
{%- render ‘cart-drawer’ -%}
{%- endif -%}

{% sections ‘header-group’ %}

{{ content_for_layout }}

{% sections ‘footer-group’ %}

  • {{ 'accessibility.refresh_page' | t }}
  • {{ 'accessibility.link_messages.new_window' | t }}

Any help is really appreciated.

Thanks a lot

Hi @off2on

This is Richard from PageFly - Shopify Page Builder App

Please add this code to your theme.liquid above the to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the

{% unless template contains 'index' %}

{% endunless %}

This code will hide the video if the page is not homepage for you

Hope this can help you solve the issue

Best regards,

Richard | PageFly

Hi Richard,

thank you very much for your reply, which it has worked only for the subpage.

Additionally, i have added on the theme.liquid below from the code you sent the following:

{% unless template contains 'laundry' %}

{% endunless %}

On the custom liquid section for the image above the header the following code:


Hi Richard,

now i have noticed that the images on the homepage, on the sections below the header, has disappeared with the following code

{% unless template contains 'laundry' %}

{% endunless %}

Is there a way to define for the header section that the video or images can be displayed separatedly, the video on the homepage and the image on the subpage?

Thanks a lot