Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1249720
    MiquelAdell
    Participant
    This reply has been marked as private.
    #1250705
    Rad
    Moderator

    Hi there,

    It should be okay now, it’s a bug between WPML and X integration. I went ahead and added a temporary fix.

    Please check http://staging.jipi.cat/en/past/?test=1

    add_filter( 'template_include', 'x_force_template_override', 99 );
    
    function x_force_template_override( $template ) {
    	
      if ( x_is_shop() || x_is_product_category() || x_is_product_tag() )  return $template;
      
      //if( is_search() || is_archive() ) {
        //$p = pathinfo($template);
        //return $p['dirname'].'/index.php';
      //}
    
      return $template;
    }

    Through /wp-content/themes/x/framework/functions/global/plugins/wpml.php

    Thanks!

    #1251355
    MiquelAdell
    Participant

    Great, it works.

    I did download the file and seen the changes to it.

    Should I replicate that file on my child theme so I don’t loose the changes when updating the theme or should I assume that the following update will have some sort of permanent solution?

    Thanks!

    #1251407
    Paul R
    Moderator

    Hi,

    Sorry, this can’t be overwridden in your child theme.

    You just have to take note of this until our developers can incorporate a permanent fix through theme updates.

    Thanks

  • <script> jQuery(function($){ $("#no-reply-1243625 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>