for the shopify blog posts i currently have it where when i post a blog the author comes up as “my store admin” ive heard theres a way to change this name with metafields but unsure of how to do that so i can put in my own custom name. i don’t want to pay for any apps and cant make staff accounts.
You can customize the author name for Shopify blog posts using metafields without needing staff accounts or apps.
-
Add a Metafield for Author Name:
- Go to your Shopify admin and navigate to Settings > Custom Data > Blog Posts.
- Click on “Add definition.”
- Create a metafield with a name like “Custom Author Name” and set the type to “Single line text.”
- Save this metafield.
-
Assign Custom Author Name in Blog Post:
- After creating the metafield, go to your Online Store > Blog Posts and select the blog post you want to edit.
- Scroll down to the bottom where you will see the new metafield for “Custom Author Name.”
- Enter the desired author name in the field.
-
Update the Blog Template:
- Go to your theme editor (Online Store > Themes > Edit Code).
- Find the blog post template, which is usually located in Templates or Sections, named something like article.liquid.
- Locate the section that displays the author name. It should look something like {{ article.author }}.
- Replace it with the following code to pull from the metafield:
-
{{ article.metafields.custom_author_name.custom_author_name | default: article.author }}
is it possible to set up having a chance to pick between multiple authors?
did not work
store url https://7e7d4a-12.myshopify.com/
password: Qwerty123