• When watching a category list of posts, I see the next portions of code just after the excerpt:

    … <a href="https://geppettvs.x10.mx/?p=1" class="more-link">(more…)</a>

    (The “…” is a code [ & # 8230; ] without spaces)

    I have tried to figure out how to change the “more…” for something in Spanish but didn’t succeed finding that portion of code inside of the template’s files.

    Do you mind telling me if is it there an easier way to accomplish this task?

    Thanks in advance. Your Template is awesome.

Viewing 14 replies - 1 through 14 (of 14 total)
  • I managed to change […] in core customizr to More>> by adding the following to functions.php:

    // Remove the ... from excerpt and change the text
    function change_excerpt_more()
    {
      function new_excerpt_more($more)
        {
        // Use .read-more to style the link
          return '<span class="continue-reading"> <a href="' . get_permalink() . '">  More &raquo;</a></span>';
        }
      add_filter('excerpt_more', 'new_excerpt_more');
    }
    add_action('after_setup_theme', 'change_excerpt_more');

    Try changing More &raquo to the Spanish equivalent.

    I’ve setup a Child Theme to avoid editing the original functions.php so take care!

    Sorry if too late, but found this problem that I’d already solved while looking for a different solution!

    Thread Starter Geppettvs D'Constanzo

    (@geppettvs)

    Hello @rdellconsulting. Thank you for your excellent instructions.

    I have added that portion of code to my functions.php file which resulted in success, it changes the text perfectly.

    I yet have an issue. Your code changes the “more…” text from the “normal” posts. Those identified with a pencil’s icon, but other elements, such as video, audio, mini-posts and other elements are yet showing the “more…” text. Do you have an idea of why is this happening?

    Thank you very much!

    I’m not a PHP expert. Have scanned the theme code & can’t see a cause for this. I suspect it may be back in WP core rather than the theme.

    We need an expert!

    Hi, I actually found this to not work. When I enter it to CSS there are red x-marks.

    @brittany, the code above is not CSS, it is php.

    You need to change one of the core WP files functions.php which is found in the customizr/ directory. However, it is not recommended to edit a core file because every time there is an update, it will be overwritten. So preferably you need to setup a Child Theme (See https://managewp.com/how-to-create-a-child-theme).

    I followed the directions to set up a child theme on the site but under the themes on my wordpress it says my child theme’s stylesheet is missing. Any idea of what went wrong?

    And yes, I included this:
    @import url(“../customizr/style.css”);

    Is your style file in a folder called “customizr-child” (or similar) that is at the same level as the customizr folder (i.e. under wp-content > themes) and called “style.css”?

    is this not managed by the language-file? .mo, or .po?

    rangi

    Building on @ef post, should look like:

    customizr
    /inc
    /lang
    /parts
    ****.php
    style.css

    customizr-[child]
    style.css
    functions.php

    You then have to Activate the Child Theme in Appearance>Themes

    The style.css is there but not the functions.php

    I followed the directions on the link posted in this thread too.

    You have to create a new functions.php file in the child theme and add the new code: https://pastebin.com/ZZ0dvDb3

    That finally worked!!! Thank you!!

    Thread Starter Geppettvs D'Constanzo

    (@geppettvs)

    Well, somehow everything seems to be working out of the box in the new update of the Theme, the 3.0.8 version. So no further efforts are needed. I simply updated the theme and everything is working from the translation files, which simplifies a lot the work.

    Thanks to everybody for the support and I hope everyone have fixed the error without problems.

    Good luck!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘How to change the (more…) text after the excerpt?’ is closed to new replies.