Site URL: https://www.cestplusquedelasf.com/podcasts
Hello,
I have a problem with a jQuery code injection, which works perfectly on the back-office but does not work on the online version of the website.
The most frustrating thing is that it works fine on the online version when I refresh the page, but not when I get there by clicking on a link. I have of course checked and the code is indeed present in the <head> section of the relevant pages.
The code concerns the replacement of certain words by others, more relevant for users and SEO, available here :
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
jQuery(function($){
$(".BlogList-filter").html(function() {
return $(this).html().replace("Articles", "Podcasts");
});
});
jQuery(function($){
$(".BlogList-pagination-link-label").html(function() {
return $(this).html().replace("Plus anciens", "Podcasts précédents");
});
});
jQuery(function($){
$(".BlogList-pagination-link-label").html(function() {
return $(this).html().replace("Plus récents", "Podcasts suivants");
});
});
</script>
Do you have any idea what's going on?
Thank you in advance,
Best regards,