How to remove the text from blog post on first page? Only keep headline!

How to remove the text from blog post on first page? Only keep headline!

3 Likes

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

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. 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:

  1. Go to your Online Store

  2. Click on “Themes”

  3. Select “Edit code”

  4. Open your featured-blog.liquid section file.

  5. 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

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid
    {% if template.name == “index” %}

.article-card__excerpt { display: none; }

{% endif %}
my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

Hi @sidenkompaniet

You can try to remove the body of the page by going to your Shopify admin blog page settings and delete it from there.

Hi @sidenkompaniet

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.