Hemingway Rewritten "Continue reading" customization
-
I have customized the “Aside” post format for my site so that I can use it for music album posts, and I’m wondering if it’s possible to customize the “Continue reading” link only for these types of posts.
Basically, on “Aside” posts I’d like it to read “Continue to album page,” or something along those lines, but for all other post types I’d like to keep it as the default “Continue reading.”
Thanks!
The blog I need help with is: (visible only to logged in users)
-
Hi there, I just did some research to answer your question. It can be a bit hard to give you the exact word to word solution in the form of code but I can help you to solve it.
These are some useful links for you –
1. Get post only from standard post format
2. get_post_format() function explainedNow I think you’d have to find the “Continue reading” link in your theme files. And experiment with the following code –
<?php if( false == get_post_format() ){ ?> //display continue reading <?php } else { ?> //display Continue to album page <?php } ?>In other words, display “continue reading” if post format is false (standard) else display “continue to album page” if post format is anything other than false (standard)
-
Honestly, I’m not even sure how to locate anything in my theme files. Sadly, that’s over my head.
I suppose it’ll just have to remain the way it is.
-
-
Jason, the code that @omkarbhagat gave will not work here at WordPress.com as it is php and we cannot add php or other script to the sites here.
I can’t really think of a reliable way to change the continue reading text for only a certain post type. There is some pseudo CSS we can use, but then getting the text to be aligned to center is the issue.
You can customize the read more tag text on a post by post basis. You can find out more about that here: https://en.support.wordpress.com/more-tag/ .
-
-
-
Thanks @thesacredpath for correcting me. I learned something new too. That is one cool way to customize the read more tag.
-
- The topic ‘Hemingway Rewritten "Continue reading" customization’ is closed to new replies.