- This topic has 5 replies, 2 voices, and was last updated 10 years ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › style eMember "read more" link correctly for protected posts
Tagged: css, customization, read more
For protected content by eMember the systems shows the ‘read more’ link not correct.
In the ger.pgp language file I have translated it:
define("EMEMBER_MORE_LINK"," weiterlesen");
If a post is protected, eMember overwrites the theme’s translation “Weiterlesen”.
The child theme styling is
.read-more:after {
content: 'f101'; display: inline-block; font-family: 'FontAwesome'; padding-left:0.3rem;
}
For protected posts the system shows ” ยป” twice.
See [http://www.hapkemedia.com/blog/]
How can I style it correctly for protected posts? A hint would be fine, thanks.
I have applied a fix for this read more protection issue. Please check the update I sent to your email.
If have implemented it:
define("EMEMBER_MORE_LINK","<span class='read-more'>Continue reading</span>");
But now another problem occurs, as you can see here:
[http://www.hapkemedia.com/kategorie/internet/]
Some of the more links are displayed twice.
I cannot find the error. When I delete the span, the more link is not styled well but is displayed one time.
Hi, Use a different class name that your theme is already not using. For example, use something like the following to make it specific for you:
define("EMEMBER_MORE_LINK","<span class='my-custom-more-text'>Continue reading</span>");
Great, it works. I need not define :after.
Solution was more than tricky:
a > span.read-more:after {
content: “”;
}
define(“EMEMBER_MORE_LINK”,”<span class=”read-more”>weiterlesen …</span>”);