Hi All,
I'm wondering if anyone knows a way to hide the "(more...)" hyperlink that appears when you use the <!--more--> tag within posts, automatically if possible?
I have looked at http://codex.wordpress.org/Customizing_the_Read_More but i'm afraid I'm a bit of wp newb and it doesn't make a great deal of sense to me.
Help is much appreciated!
More specifically, where should I place the
<?php the_content('Read more...'); ?>
instance?
I have tried placing it within 'the loop' yet this seems to have no affect on the <!--more--> text that is displayed
Thanks alchymyth! Knew I was on the right track!
I've tried inserting
<?php the_content('Read more...'); ?>
on it's own and also replacing
the_content
with it, e.g.
<?php if($post->post_excerpt !== "") :
the_excerpt();
else :
the_content();
endif;
Becomes
<?php if($post->post_excerpt !== "") :
the_excerpt();
else :
the_content('Read more...');
endif;
Yet my (more...) does not seem to change
You could use CSS..
a.more-link { display:none }
The more link has it's own class more-link, so that should work.. :)
Thank you Mark, I really appreciate your help in learning WordPress!
The CSS Method worked great, although my client has now asked for the (more) code to be replaced by 3 dots - [...]
Would you be able to tell me how to ajust the the_content property in order to do this?
Ok, that's pretty simple, replace.
the_content('Read more...');
..with..
the_content('...');
or
the_content('[...]');
As long as you leave the single quotes in place you can put whatever you like between them with exception to another single quote, which would need to be escaped, like so.. \'
Hope that helps.. :)