Adding 'more' to the_excerpt in Mystique
-
Hi guys,
I am so concerned this is going to be an irritatingly obvious answer, but I’m trying to add a ‘more’ link to my front page excerpts (at uberwensch.com) and I’m kind of stuck. I’m new to PHP so I’m not sure how much information is relevant, but you can skip to the bolded part to see the actual problem.
So I’m using the Mystique theme, and I’ve gone in to Mystique settings > content and changed the post preview setting to ‘excerpt’, which solves some aesthetic problems I was having with clashing thumbnail and lead images when I posted. This posts the featured image connected to a post as a thumbnail, and runs the excerpt text alongside it. Perfect. I just want to add a little link that allows people to expand the post via its title/comments — this is how it is now — AND a “more” link.
The problem is I can only see one section of code that makes sense to change, and I’ve changed it, and nothing happened.
In the theme’s core.php settings, I changed this:
if($post_settings[‘post_content_length’] == ‘f’): the_content(__(‘More >’,’mystique’));
elseif($post_settings[‘post_content_length’] == ‘e’): the_excerpt();
else:
$word_count = $post_settings[‘post_content_length’]To this:
if($post_settings[‘post_content_length’] == ‘f’): the_content(__(‘More >’,’mystique’));
elseif($post_settings[‘post_content_length’] == ‘e’): the_excerpt(__(‘More’));
else:
$word_count = $post_settings[‘post_content_length’];That’s the best I can think to do, but there’s still no ‘More’ link.
Any help would be greatly appreciated, and I apologise in advance if this is totally ridiculous. I did look around for answers before posting, I promise.
- The topic ‘Adding 'more' to the_excerpt in Mystique’ is closed to new replies.