# Blog posts

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FUBtowieGImRBkWsGXJnK%2Fimage.png?alt=media&#x26;token=04a99f5e-0a15-426b-8718-c1aff01cee2e" alt=""><figcaption></figcaption></figure>

**Blog posts** element lets you showcase articles in a visually appealing card layout. This element is ideal for sharing news, tips, stories, or tutorials while keeping your store engaging and informative. With customizable styles, Blog post cards can be tailored to match your brand’s design and improve the overall browsing experience.

{% hint style="info" %}
Learn how to [add and manage blog posts in Shopify](https://help.shopify.com/manual/online-store/blogs/writing-blogs/working-with-blog-posts)

Learn how to publish blog post template: [Create a Blog post](https://docs.foxecom.com/foxify-app/page-management/page-creation/create-a-blog-post)
{% endhint %}

## How to add a Blog posts element

{% hint style="success" %}
Steps:

1. From the editor, on the left Sidebar > Click **Add elements**, or press **E**.
2. In **Quick add**, select **Blog posts.**
3. Drag the **Blog posts** onto your canvas.
   {% endhint %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2Fc7zMLB0lMkIpn8M7i2wG%2Fimage.png?alt=media&#x26;token=bce9e317-e894-4edd-a64f-cca532a2ae25" alt=""><figcaption></figcaption></figure>

## How to edit a Blog posts element

Once you’ve added the Blog posts, the next step is to edit it to match your desired action.

{% hint style="success" %}
**Steps:**

1. **Select** the relevant Blog posts element in the editor.
2. Use the tools bar above the selected element to quickly edit it.&#x20;

All the formatting tools below can be found in the right hand sided **Inspector** panel.
{% endhint %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FzMi9CyybjeeLXIkGB8HI%2Fimage.png?alt=media&#x26;token=0b65f301-e2d7-4f71-b191-adaa5a807dd0" alt=""><figcaption></figcaption></figure>

### General settings&#x20;

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FF5k8X2Dy5sXyk6r2NhZL%2Fimage.png?alt=media&#x26;token=441e7120-c524-4865-a9fc-79ba7332c47a" alt=""><figcaption></figcaption></figure>

* **Select blog:** Choose the blog collection you want to display posts from.
* **Number of posts:** Set number of posts are displayed in the section using the slider, with a **maximum of 24 posts**.
* **Columns:** Select number of columns of posts to display.
* **Gap:** Adjust the spacing between posts horizontally and vertically.
* **Enable carousel on desktop:** Toggle to display the posts as a carousel on desktop devices.
* **Enable swipe on mobile:** Toggle to allow swipe navigation for posts on mobile devices.

## How to edit an Article card element

Inside the Blog Posts section, each post is displayed as an Article card element.

{% hint style="success" %}
**Steps:**

1. **Select** the relevant Blog posts element in the editor.
2. Click on a blog post to edit the article card element.
3. Use the tools bar above the selected element to quickly edit it.&#x20;

All the formatting tools below can be found in the right hand sided **Inspector** panel.
{% endhint %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2F0EmU1YniQlslfUToAeAg%2Fimage.png?alt=media&#x26;token=58c5d744-e79e-474e-a54c-9855bd5f0d6a" alt=""><figcaption></figcaption></figure>

### Preset card style

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FKep4Z4FP95nPbdj4Yxqa%2Fimage.png?alt=media&#x26;token=de5f61cc-656e-43eb-8606-4ab634d64816" alt=""><figcaption></figcaption></figure>

* **Card style:** Choose styling for your article cards.

{% tabs %}
{% tab title="Use global" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2F8yE5P1yS130xqhLo7fdl%2Fimage.png?alt=media&#x26;token=11691f04-01ce-4055-b286-3e73de762acc" alt=""><figcaption></figcaption></figure>

* Apply the product card styles defined in **Theme settings > Product cards**, ensuring consistent design across your store.

{% hint style="info" %}
Learn more: [Product Cards in Theme settings](https://docs.foxecom.com/foxify-app/page-management/theme-settings#product-cards)
{% endhint %}
{% endtab %}

{% tab title="Style 1" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FiSjEP8oMSgFeE6ff1LSQ%2Fimage.png?alt=media&#x26;token=9775fbed-f14e-4caa-b9d3-f5602ecc4f89" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Style 2" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FIMfxSngj06zSDNt6TW4x%2Fimage.png?alt=media&#x26;token=57bf0621-7736-4c00-93cc-bc90581b00ad" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Custom" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2F8aQ7668OLdpI5oz73vSu%2Fimage.png?alt=media&#x26;token=1418d330-fca1-4241-b4e8-1ed2b8688a46" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

* **Image ratio:** Defines the ratio of article images.

{% tabs %}
{% tab title="Use global" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FfltYNHzFtvMIilAvJxCi%2Fimage.png?alt=media&#x26;token=99c28e10-ffe3-4035-8b6e-6ed4fa24cb55" alt=""><figcaption></figcaption></figure>

* Apply the image ratio defined in **Theme settings > Product cards**, ensuring consistent design across your store.

{% hint style="info" %}
Learn more: [Product Cards in Theme settings](https://docs.foxecom.com/foxify-app/page-management/theme-settings#product-cards)
{% endhint %}
{% endtab %}

{% tab title="Adapt to image" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FNCXpcUeSBLOUQdia3Sdj%2Fimage.png?alt=media&#x26;token=9bf1dc3a-fd25-4aaa-b035-2510c5594f49" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Square (1:1)" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FhB4w4y9vvB8ZqzEK8KVU%2Fimage.png?alt=media&#x26;token=d1242143-83ec-4dd2-b962-8948262277cd" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Portrait (3:4)" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2Fushy4TUHNdDO7ZUOURq6%2Fimage.png?alt=media&#x26;token=b8406aab-e18c-43ef-8712-d19220f1ecb4" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Landscape (4:3)" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FZA6vpQoCw8Jl6LIsCQqp%2Fimage.png?alt=media&#x26;token=bb77ceba-fe38-4067-8c6c-a96004b981c5" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

* **Text align:** Controls the alignment of text within the article card element.

{% tabs %}
{% tab title="Left" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FD5ysW69NZ8eJrssEPLtR%2Fimage.png?alt=media&#x26;token=3d9d8ba6-ced1-468d-9811-d87750f0b7c2" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Center" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FsCovz5v3vBNpTrK9GrZc%2Fimage.png?alt=media&#x26;token=fdcabe5d-096d-4b9b-94f6-9fabe394c0b0" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Right" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2F11eEMV4xi4P4xOyg2fpJ%2Fimage.png?alt=media&#x26;token=650bec50-fe3d-415a-8e8c-2c26b102fd7c" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### Custom card style

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FyI6fbDwVvRyiBYrSSnpo%2Fimage.png?alt=media&#x26;token=64393b5e-f4d8-4d2a-ac0c-f2a236421a8a" alt=""><figcaption></figcaption></figure>

**Manage article card's elements:**&#x20;

* **Add new elements**: Insert additional fields or information into the article card.

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2F23UwKuLMmuFJ10h11Qk4%2Fgif%20foxify%204.gif?alt=media&#x26;token=cf1bffc2-4b40-458a-a91f-26a0c69f5360" alt=""><figcaption></figcaption></figure>

* **Reorder elements**: Rearrange the order of elements in the article card to prioritize important content.

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FAnaA4dwChwIAhgQhvtid%2Fgif%20foxify%205.gif?alt=media&#x26;token=cd2e8a71-a39b-4380-8639-cda58eb5ad75" alt=""><figcaption></figcaption></figure>

* **Post image:**
  * **Image ratio:** Defines the ratio of article images.
* **Post meta:**&#x20;
  * **Format:** Define how post meta information is displayed. You can use placeholders like {{ date }} and {{ author }}.
  * **Date format:** Choose the display format for dates.

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FrINa6339PWKKNW3GR1lX%2Fimage.png?alt=media&#x26;token=0a196f38-240e-4dbb-82db-67570b49847b" alt=""><figcaption></figcaption></figure>

* **Post title:** Define the HTML tag (e.g., span, h2, h3) for the product titles.

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FCGkmBCVxREQBiXIsTUrG%2Fimage.png?alt=media&#x26;token=0fab511d-5fea-4b9a-a440-9246cadc4a05" alt=""><figcaption></figcaption></figure>

* **Post excerpt:**
  * **Show post content as fallback:** Display the post content if no excerpt is provided.
  * **Word limit:** Set the maximum number of words shown in the excerpt.

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FVmLmBuRdQCuJimVsQuQX%2Fimage.png?alt=media&#x26;token=3b3d2421-9060-4198-8a10-4a7654a86d68" alt=""><figcaption></figcaption></figure>

* **Read more:** Direct customers to the blog post details when clicked.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.foxecom.com/foxify-app/foxstudio/add-and-edit-elements/blog-posts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
