Liebing Theme - Changing this post is for subscribers only message

Hi, I was previously using the Edition theme which came with a content-cta.hbs file that does not appear in the Liebling zip package. I can include this file in my Liebling upload but changing the headline breaks the css formatting. Is there a safer way to update this text?

I know it’s been over a year but I just solved this for my site using code injection without altering template files.

It may not be the best way but my plan limits access to altering the theme.

Steps:

  1. Find the class wrapping the text you want to change. For my theme, the element I want to target is “single-cta-title”.

  2. Go to the code injection area of your admin and add the following javascript to the site footer:

Be sure to change the class name from “single-cta-title” to the class of the element you are targeting.

Essentially what this does is change the text contained within that class to “Subscribe for free to access this post.”

This method works so long as that class is not used elsewhere.

I hope this helps everyone with this problem because “This post is only available to subscribers” is not a very good call to action.

Zenstar

1 Like