• Resolved adiosmyfirend

    (@adiosmyfirend)


     functions.php

    function test123() {
       $term_id = get_queried_object()->term_id;
       $test123 = term_description($term_id, 'product_brand');
       if ( !empty($test123) ) {
          echo '<div class="test123">' . $test123 . '</div>';
       }
    }
    add_action( 'woocommerce_after_main_content', 'test123', 20 );

    It works on all pages. It shows as a description twice on the category page. How can I fix this? How can I just get the brand description down on the brand page?

Viewing 1 replies (of 1 total)
  • Thread Starter adiosmyfirend

    (@adiosmyfirend)

    i found the solution

    Edit -->
    /wp-content/plugins/brands-for-woocommerce/main.php
    go find 186 line  
    "add_action( "woocommerce_archive_description", array ( $this, 'description' ), 5 );"
    change 
    "add_action( "woocommerce_after_main_content", array ( $this, 'description' ), 5 );"
Viewing 1 replies (of 1 total)

The topic ‘bottom description’ is closed to new replies.