Moving "more-link" button to the left of posts

  • jcoillard

    #7804

    Actually this button (“En savoir plus” in french) is on bottom right of each post.

    For better reading how can i :

    – put it on the left

    – change the text : for example “Lire la suite” with title of the post

    My blog : http://julien.coillard.fr

    Admin

    Syahir Hakim

    #39440

    Try adding this to the theme’s Custom CSS option:

    .more-link .block-button {
    float: left;
    }

    jcoillard

    #39441

    Great thanks Syahir, works fine for the right position !

    For changing the text to “Lire la suite” and post title did i need to use a function.php ?

    Prasanna SP

    #39442
    Quote:
    For changing the text to “Lire la suite” and post title did i need to use a function.php ?

    Yes, you have to use a child-theme for that. But there are other ways as well.

    jcoillard

    #39443

    Hi Prasann,

    i tried this in a functions.php :

    <?php the_content(‘Lire la suite …’); ?>

    but nothing happens, i still have the old phrase

    Tried other things found on the web, but still the same

    jcoillard

    #39445

    I tried your post but no effects.

    The Graphene theme is already translated to french.

    I would have like to add post title

    jcoillard

    #39446

    Solved with Prasanna solution, my problem was in finding the string to change (found it in languages/fr_FR.po)

    <?php
    function graphene_filter_gettext( $translated, $original, $domain ) {
    $strings = array(
    'Read the rest of this entry &raquo;' => 'Lire la suite de ' . get_the_title('', '', false) . '/&raquo;',
    );
    if ( ! empty( $strings[$original] ) ) {
    $translations = &get_translations_for_domain( $domain );
    $translated = $translations->translate( $strings[$original] );
    }
    return $translated;
    }
    add_filter( 'gettext', 'graphene_filter_gettext', 10, 3 );
    ?>

    Works fine now, thanks to all – http://julien.coillard.fr/

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.