More Tag

  • soapy

    #19602

    LOL! I will try now….i just figured that with his code the words “My new text” would appear…but i’ll try now!

    Mod

    Kenneth John Odle

    #19603

    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!

    soapy

    #19604

    Nope….it doesn’t change anything unfortunately…..

    Mod

    Kenneth John Odle

    #19605

    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

    Syahir Hakim

    #19606

    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.

    Anonymous

    #19607

    If your original string is “Continue reading this entry>>”, then replace “»” with “>>”

    Anonymous

    #19608

    Thank you for the correction Syahir. I completely missed that in my post.

    Anonymous

    #19609

    Yeah! Ignore my suggestion. Syahir has given a clear explanation.

    soapy

    #19610

    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!

    Anonymous

    #19611

    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 😉

Viewing 10 posts - 11 through 20 (of 26 total)

  • You must be logged in to reply to this topic.