title: Is it possible to show an specific product attribute in Elementor product page?
body: <p>I'm trying to add a specific product attribute ( in this case, the &quot;warranty&quot; ) to the elementor custom product page.
  I have tried using &quot;PHP Code Snippets&quot; plugin and adding:</p>
  <pre><code>&lt;?php
  add_action( 'woocommerce_single_product_summary', 'product_attribute_after_price', 15 );
  function product_attribute_after_price () {
      global $product;
  
      // HERE add your product attribute SLUG or taxonomy
      $attribute_slug = 'guarantee';
  
      $taxonomy = strpos($url, 'blog') !== false ? $attribute_slug : 'pa_' . $attribute_slug;
      $attribute_name = get_taxonomy( $taxonomy )-&gt;labels-&gt;singular_name;
      $term_name = $product-&gt;get_attribute( $taxonomy ); // The value
  
      if( empty($term_name) ) return; // Exit if empty value
  
      // If not empty we display it
      $output  = '&lt;div class=&quot;product-attribute '.$taxonomy.'&quot;&gt;&lt;p&gt;';
      $output .= '&lt;strong&gt; '.$attribute_name.'&lt;/strong&gt;: ';
      $output .= '&lt;span&gt; '.$term_name.'&lt;/span&gt;';
      echo $output . '&lt;/p&gt;&lt;/div&gt;';
  }
  </code></pre>
  <p>but that shows nothing.</p>
  <p>what should i do?</p>