Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter djsidor

    (@djsidor)

    Do you think it could be that way?

    if ( function_exists('bcn_display') && !is_front_page() ) {
    add_filter('the_title', 'breadcrumbs_wpml_title' );
    bcn_display();
    remove_filter('the_title', 'breadcrumbs_wpml_title' );
    }
    function breadcrumbs_wpml_title($title, $id){
        if ( defined('ICL_LANGUAGE_CODE') && function_exists('icl_object_id')) {
            $page = get_page_by_title( $title);
            $current_id = icl_object_id( $page->ID, get_post_type( $page->ID ), true, ICL_LANGUAGE_CODE );
            $pagecurrentlang = get_post($current_id);
            return $pagecurrentlang->post_title;
        }else{
             return $title;    
        }
    }

    It works for me and does not interfere with the plugin files

    I change linie 25 in main.php to
    if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) && ( -1 !== version_compare( get_plugin_data( WP_PLUGIN_DIR.'/woocommerce/woocommerce.php' ), '3.0.0','>=' ) ) ) {

    and it’s working

    • This reply was modified 7 years, 7 months ago by djsidor.
    • This reply was modified 7 years, 7 months ago by djsidor.
Viewing 2 replies - 1 through 2 (of 2 total)