Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #570210

    Hi,

    We have a site in 2 languages (en_GB + de_CH) working well with Polylang plugin.
    The only thing we could not change are the strings “Blog – Latest News” “You are here” and everything related to posts (date, etc).
    We tried with .po and .mo but it has not worked.

    Could you help me?

    I’m using a child-theme.

    Thanks!

    #570215

    Hi Juan!

    Please try adding following code to Functions.php file in Appearance > Editor

    function show_current_language() {
    	global $curlang;
    	$curlang = $this->curlang->slug;
    }
    
    add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
    function fix_single_post_title($args,$id)
    {
        if ( $args['title'] == 'Blog - Latest News' || $curlang == "en")) {
        {
            $args['title'] = get_the_title($id);
            $args['link'] = get_permalink($id);
            $args['heading'] = 'h1';
        }
    
        return $args;
    }

    Cheers!
    Yigit

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