# 無料テーマSimpleの動的セクション「ブログ記事」にサムネイル画像を表示させたい。

**URL:** <https://community.shopify.com/t/simple/70258>\
**Category:** 技術的なQ＆A\
**Created:** [October 6, 2021, 9:50am UTC](https://community.shopify.com/t/simple/70258 "2021-10-06T09:50:16Z")\
**Posts on this page:** 1\
**Page:** 1

## AI-generated summary

Shopify無料テーマ「Simple」のブログセクションで記事サムネイルを表示させるため、featured-blog.liquidを編集した。編集後、サムネイルが縦一列に並んで表示されるレイアウト崩れが発生。

カスタマイズ画面で設定した表示数が反映されなくなった点も報告。編集したコード（幅クラスや記事数設定の条件分岐を含む）が提示されている。LiquidはShopifyのテンプレート言語。

縦表示の様子を示すスクリーンショットが添付され、現象の理解に重要。

修正すべき箇所や正しいコード例の提供を求めているが、具体的な回答・解決策はまだ示されていない。議論は未解決・継続中。

<div class="post-metadata">

**Author:** ![ashimorimeron](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@ashimorimeron](https://community.shopify.com/u/ashimorimeron)\
**Post date:** [October 6, 2021, 9:50am UTC](https://community.shopify.com/t/simple/70258/1 "2021-10-06T09:50:16Z")

</div>

**＜featured-blog.liquid＞**

```javascript

{%- assign blog = blogs[section.settings.blog] -%}

{% case section.settings.post_limit %}
{% when 3 %}
{%- assign width = 'medium-up--one-third small--one-whole' -%}
{% when 2 %}
{%- assign width = 'medium-up--one-half small--one-whole' -%}
{% when 1 %}
{% if section.settings.blog_show_image %}
{%- assign width = 'medium-up--one-half small--one-whole' -%}
{% else %}
{%- assign width = 'one-whole' -%}
{% endif %}
{% else %}
{%- assign width = 'medium-up--one-third small--one-whole' -%}
{% endcase %}

{% if section.settings.title != blank %}
## {{ section.settings.title | escape }}
{% endif %}

{% unless blog.articles_count == 0 %}

{%- assign desktopColumns = section.settings.articles -%}
{%- assign mobileColumns = '1' -%}

{%- capture gridClasses -%}
{% if desktopColumns == '3' %}medium-up--one-third {% else %}medium-up--one-half {% endif %}
{% if mobileColumns == '2' %}small--one-half {% endif %}
{%- endcapture -%}

{% for article in blog.articles %}
{% include 'article-card', article: article, grid_style: section.settings.grid_style %}
{% endfor %}

{% else %}
{% include 'onboarding-featured-blog' %}
{% endunless %}

{% if blog == empty %}
{% include 'onboarding-featured-blog' %}
{% endif %}

{% if section.settings.show_view_all %}

{{ 'blogs.article.view_all' | t }}

{% endif %}

```

無料テーマsimpleのファイルを上記の様に編集し、

記事にサムネイル画像が表示される様にしようとしたのですが、

添付写真のように縦に表示されてしまします。

 ![スクリーンショット 2021-10-06 18.44.48.png](https://canada1.discourse-cdn.com/shopifyforum/original/3X/4/d/4db255c0af54485fd0dcb352a27a2c12969e4ea3.jpeg)

また、カスタマイズ画面で表示数を設定しても、反映されなくなってしまい…。

liquidについてはかなり手探りで、分からなくなってしまいました。

どなたか修正箇所や、このコードを書けばいい等ございましたらお教えいただけますと幸いです。
