Skip to product information
1 of 1
Published:2024.09.26

Example of setting up blog posts for the Shopify theme "Rise/Dawn" to allow members only to view content.

Example of setting up blog posts for the Shopify theme "Rise/Dawn" to allow members only to view content.

Applications

  • Blog management and editing

How to implement

  • LIQUID
View full details

This is an example of how to set up a blog post on Shopify that can only be viewed by members. Also, because different content will be displayed to Google bots and users, we'll add a noindex process to avoid penalties. (Shopify cannot return a 401 status code for individual content.)


Example of setting up blog posts for the Shopify theme "Rise/Dawn" to allow members only to view content.


[Setting Method 1] Add a metafield definition for blog posts and set the metafield value for posts you want to make members-only.


[(For the Rise/Dawn theme) Setup method ②] Add code and CSS to sections/main-blog.liquid and sections/main-article.liquid


[(For the Rise/Dawn theme) Setting method 3] Add a noindex to the target article in theme.liquid (to avoid Google penalties)


After making a purchase (all items are ¥0), you will be able to view the sample code.

If you have already made a purchase, please login here.

Sample Codes

Test Theme :Dawn/Rise 15.2.0

Add the code and CSS to sections/main-blog.liquid

Related Post