Saltar navegación

Resolved by author

Resolved in: Bricks 1.11

Topic Tags: Compatibility

Overview of the issue

If you are using the Bricks theme and the Advanced Translation Editor (ATE), you may encounter that some translations do not display on the frontend.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open …/wp-content/themes/bricks/includes/ajax.php file.
  • Look for line 1557.
  • Replace:
    if ( $is_bricks_postmeta && ! Capabilities::current_user_can_use_builder( $object_id ) ) {
    	return false;
    }
    
  • With:
    if ( $is_bricks_postmeta && ! Capabilities::current_user_can_use_builder( $object_id ) ) {
    
    	// WPML Workaround for compsupp-7377
    	if ( class_exists("Sitepress") ) {
    		return $check;
    	}
    
    	return false;
    }
    

8 respuestas para “Bricks Theme - Translated Content Not Showing on Frontend”

Deje una respuesta

Por favor, mantente dentro del tema y sé respetuoso con los demás. Si necesitas ayuda con cuestiones no relacionadas con este post, utiliza nuestro Foro de soporte para iniciar un chat o enviar un ticket.

Puede utilizar estas etiquetas:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>