-
AuthorPosts
-
May 7, 2019 at 1:27 pm #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
May 10, 2019 at 11:33 pm #1099440Hey Matt,
Please upload the code to somewhere like pastebin, so we can manage see the code right.
Best regards,
BasilisMay 12, 2019 at 7:05 pm #1099791See below as added to Functions.php
- This reply was modified 5 years, 7 months ago by mattwalt.
May 12, 2019 at 7:08 pm #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’);May 13, 2019 at 6:42 pm #1100208Hi,
and what is your edit on the loop file?
Best regards,
BasilisMay 13, 2019 at 7:46 pm #1100235Hi I replaced all the ‘Read more’ I could find in the loop file with the edit (Darllenwch fwy).
May 14, 2019 at 11:48 am #1100476Hi julie_ferrand,
Please have a look here and adjust the script
Best regards,
VictoriaMay 15, 2019 at 11:27 am #1100973Thanks 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
May 18, 2019 at 8:30 pm #1102086Hi Matt,
The read more button issue was solved in Enfold 4.5.7. Which version are you running?
Best regards,
VictoriaMay 20, 2019 at 10:53 am #1102436Ah – fab
I’m running 5.4.6 – I’ll update and try again.
Thanks Matt
May 21, 2019 at 3:38 pm #1102879Hi Matt,
Will wait for your feedback :)
Best regards,
VictoriaJune 5, 2019 at 1:11 pm #1107532Ok – 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 topicIs there no easy way for these to pull in the Welsh if WordPress is set to Welsh?
Thanks Matt
June 5, 2019 at 2:10 pm #1107577Hi 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 -
AuthorPosts
- You must be logged in to reply to this topic.