How to remove the text from blog post on first page? Only keep headline!
Hello @sidenkompaniet
Our team is ready to help you.
Please share your website URL so that we can check and assist you.
@sidenkompaniet , Do you want to remove this one
If so, follow these steps
-
Go to Online Store → Theme → Edit code.
-
Open your theme.liquid file
-
Paste the below code before on theme.liquid
{% if template.name == "index" %}
{% endif %}
Result
Hello @sidenkompaniet , can you share your store link
Hello @sidenkompaniet Please follow these steps to add this CSS code:
-
Go to your Online Store
-
Click on “Themes”
-
Select “Edit code”
-
Open your featured-blog.liquid section file.
-
Add the following CSS code at the end of the file after the schema of section.
{% if template == "index" %}
{% endif %}
Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.
Hello @sidenkompaniet
You can add code by following these steps
-
Go to Online Store → Theme → Edit code.
-
Open your theme.liquid file
-
Paste the below code before on theme.liquid
{% if template.name == “index” %}
{% endif %}
my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
You can try to remove the body of the page by going to your Shopify admin blog page settings and delete it from there.
Check this one.
From your Shopify admin dashboard, click on “Online Store” and then “Themes”
Find the theme that you want to edit and click on “Actions” and then “Edit code”.
In the “theme. Liquid” file. Find the tag and paste the code below before the tag.
{% if template.name == 'index' %}
{% endif %}
And Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Thank you so much! if i want just one sentence to show what code do i. need to add then? kind regards, Sophie
Hello @sidenkompaniet , Please update that CSS from display: none; to below code.
{% if template == "index" %}
{% endif %}
Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.


