Support » Plugin: Novelist » Changing the “more details” button

  • Resolved neomyth

    (@neomyth)


    Hi everyone,

    I have been messing around with my theme to find where I could change the “More Details” text button in my book grid (see link). But I didn’t find anything…

    I would like to translate it in French with “Plus d’infos”.

    What is bothering me more is that I managed somehow to get it done few weeks ago before a complete reset of my website :-/

    Thank you in advance.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author NoseGraze

    (@nosegraze)

    Hi there,

    There are a few different ways to do this:

    1. You can edit the “shortcode-book-content-button.php” template file and simply edit the text however you want. Instructions for editing template files are here: https://novelistplugin.com/docs/developers/tutorials/how-to-edit-template-files/

    2. If you’re familiar with how to use filters then you can use the “novelist/shortcode/book/button-text” filter to change the text. Example:

    function ng_novelist_button_text( $text ) {
    	return 'Plus d’infos';
    }
    add_filter( 'novelist/shortcode/book/button-text', 'ng_novelist_button_text' );

    3. If you’re using a translation tool like Poedit, then the exact string to translate is:

    More Details »

    • This reply was modified 1 month, 1 week ago by  NoseGraze.
    • This reply was modified 1 month, 1 week ago by  NoseGraze.
    neomyth

    (@neomyth)

    Thank you very much for your help @nosegraze .
    Problem solved ! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.