Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1098066

    I’ve added this code to functions.php:

    // Replaces the excerpt “more” text by a link
    function new_excerpt_more($more) {
    global $post;
    return ‘ID) . ‘”>Darllenwch fwy‘;
    }
    add_filter(‘excerpt_more’, ‘new_excerpt_more’);

    And edited the loop-index.php ones – but its not changing.

    Please help.

    Thanks Matt

    #1099440

    Hey Matt,

    Please upload the code to somewhere like pastebin, so we can manage see the code right.

    Best regards,
    Basilis

    #1099791

    See below as added to Functions.php

    • This reply was modified 5 years, 6 months ago by mattwalt.
    #1099795

    `// Replaces the excerpt “more” text by a link
    function new_excerpt_more($more) {
    global $post;
    return ‘<a class=”moretag” href=”‘. get_permalink($post->ID) . ‘”>Darllenwch fwy</a>’;
    }
    add_filter(‘excerpt_more’, ‘new_excerpt_more’);

    #1100208

    Hi,

    and what is your edit on the loop file?

    Best regards,
    Basilis

    #1100235

    Hi I replaced all the ‘Read more’ I could find in the loop file with the edit (Darllenwch fwy).

    #1100476

    Hi julie_ferrand,

    Please have a look here and adjust the script

    Best regards,
    Victoria

    #1100973

    Thanks Victoria

    We have created a local folder with a specific Welsh translated site – we’re not using a translation app as it may cause issues with Syntax/Grammar etc.

    The site is set to Welsh – which makes working on it ‘interesting’ (that essentially sorted the post dates) – though certain elements don’t change. Home in breadcrunbs / Search / and Read more.

    I have sorted the Breadcrumbs and Search – its just Read more which is not changing (for whatever reason. I have set these currently to not display the Read more on posts for the interim – though it would be good to have this sorted if possible.

    Thanks Matt

    #1102086

    Hi Matt,

    The read more button issue was solved in Enfold 4.5.7. Which version are you running?

    Best regards,
    Victoria

    #1102436

    Ah – fab

    I’m running 5.4.6 – I’ll update and try again.

    Thanks Matt

    #1102879

    Hi Matt,

    Will wait for your feedback :)

    Best regards,
    Victoria

    #1107532

    Ok – I’ve updated the theme and WordPress.

    As expected its removed all the hard-coded English – Welsh elements.

    ‘You are here / Home’ in Breadcrumbs
    Search results page for item not found (Also Breadcrumb)
    Word ’search’ in mobile view when you click to enter a topic

    Is there no easy way for these to pull in the Welsh if WordPress is set to Welsh?

    Thanks Matt

    #1107577

    Hi julie_ferrand,

    Well, it is probably not fully translated to Welsh and you can help us do it if you choose :)

    Here are the links that can help you.

    Best regards,
    Victoria

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