Site logo

Archived topic

Blog Excerpt not showing on translated version of website

5 replies · Started by Espresso on September 29, 2017

Viewing posts 1–6 of 6

Hmm, strange. Any custom functions? Can you try disabling your other plugins one by one?

Nope, nothing changes. This is my functions.php file:

<?php
/**
* Generate child theme functions and definitions
*
* @package Generate
*/

add_filter( 'generate_fontawesome_essentials', 'tu_fontawesome_essentials' );
function tu_fontawesome_essentials() {
return true;
}

add_filter( 'style_loader_src', 'generate_remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'generate_remove_cssjs_ver', 10, 2 );
function generate_remove_cssjs_ver( $src ) {
if( strpos( $src, '?ver=' ) )
$src = remove_query_arg( 'ver', $src );

return $src;
}

add_action( 'init', 'generate_disable_wp_emojicons' );
function generate_disable_wp_emojicons()
{
// all actions related to emojis
remove_action( 'admin_print_styles', 'print_emoji_styles' );
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
}

function defer_parsing_of_js ( $url ) {
if ( FALSE === strpos( $url, '.js' ) ) return $url;
if ( strpos( $url, 'jquery.js' ) ) return $url;
return "$url' defer ";
}
add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );

Did you try disabling your other plugins one by one to see if one of them is causing it?

Yes all done and tested

It might be worth asking the developers of the translation plugin then, as it must be preventing the_excerpt() function from firing.

This archived topic is closed to new replies.