More Tag
-
Mod
I wouldn’t even know where to start with PHP! lol
The official PHP site is here: http://php.net/
and the official PHP manual is here: http://php.net/manual/en/index.php
But I like the w3schools php pages better: http://www.w3schools.com/php/default.asp
But php.net has a very good (and very simple) tutorial here: http://php.net/manual/en/tutorial.php
Cheers!
Mod
Nope….it doesn’t change anything unfortunately…..
Just spent several minutes trying this out on my blog and it doesn’t work for me either. I have no ideas at the moment. Sorry.
Admin
When using the function that Josh posted above, you need to write the string exactly as it appears in the original theme’s files.
In case of this string:
Continue reading »Its exact form in the theme’s file is this:
Continue reading »So to reflect this in the function that Josh posted, it should be:
// Change "Read the rest of this entry" link Button
function graphene_filter_readmore( $translated, $original, $domain ) {
$strings = array(
'Continue reading »' => 'My New Text »',
);
if ( ! empty( $strings[$original] ) ) {
$translations = &get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
add_filter( 'gettext', 'graphene_filter_readmore', 10, 3 );FYI,
»is the HTML entity for». It ensures that the character can be read by all devices and not appear as the diamond character.If your original string is “Continue reading this entry>>”, then replace “»” with “>>”
Thank you for the correction Syahir. I completely missed that in my post.
Yeah! Ignore my suggestion. Syahir has given a clear explanation.
Guys,
Thanks for the answers….really appreciate it.
On the graphene theme I see two buttons…there is the “continue reading>>” button….and there is also the “read the rest of this entry>>” button when using the “more” tag when writing a new post. I’m assuming this code will obviously allow me to change the “continue reading>>” button……would somone be able to provide me with the code that i could put in my child theme functions.php file that would allow me to change the “read the rest of this entry” button…..thanks very much again for the help!
People, the man need to change “Read the rest of this entry »” text, that’s located in loop.php file.
This is for manual excerpts-more link.
In graphene/options/display/excerpts display options/ you can choose whether you want use “Show excerpt for front page” or “Show more link for manual excerpt”, or both.
You can install codestyling localization and change only that code (text), but that solution is like killing a fly with bazooka 😉
- You must be logged in to reply to this topic.
