0
votes

I am new to Shopify, I need to create an Author Information Section in the Blog Posts where the user has the flexibility to enter and modify the content and display it, it should have also the ability to reuse it to the other blog page with the content inside.

Can we do it in shortcode? Can we do it without apps?

1

1 Answers

0
votes

You can create Sections in Shopify to reuse the content on different pages. For your specific case, you can create an author-box section using

<section id={{section.id}}>
  <h3>{{section.settings.title}}</h3>
  
  {{section.settings.content}}
  
</section>
{% schema %}
  {
    "name": "Author Box",
    "settings": [
      {
       "type": "text",
       "id": "title",
       "label": "Title",
       "default": "About Author"
      },
      {
       "type": "richtext",
       "id": "content",
       "label": "Content"
      }
    ]
  }
{% endschema %}

Then you can include this section in article template where you want this section to show using

{% section 'author-box'%}

Custom Sections in Shopify