Home Forums WoodMart support forum CATEGORIES IN TITLE

CATEGORIES IN TITLE

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #388229

    Anne
    Participant

    Hello,
    I try to exclude categories in the title of product archives, and it doesn’t work. It doesn’t find my shop categories, just a few but not all categories.

    This menu of categories under the title was one of the features why I have chosen to buy your theme so I would love some help to fix it please.

    Attachments:
    You must be logged in to view attached files.
    #388273

    Hello,

    You can find the option in the Theme Settings > Product Archives > Page title, if it does not work, insert the site admin access into the Private content below the message area. We will take a closer look at the case.

    Best Regards

    #388376

    Anne
    Participant

    Thank you please, is it the web address that you need?

    #388602

    Hello,

    Yes, I will need the site URL, user ID, and password. Please insert the site admin access into the Private content below the message area.

    Best Regards

    #389324

    Anne
    Participant

    Below is the site admin access, please can you help with those categories that cannot be exclude in title?
    Thanks

    #389602

    Hello,

    Please add this code to functions.php of the child theme:

    if ( ! function_exists( 'woodmart_get_taxonomies_by_query_autocomplete' ) ) {
       /**
        * Autocomplete by taxonomies.
        *
        * @since 1.0.0
        */
       function woodmart_get_taxonomies_by_query_autocomplete() {
          $output = array();
    
          $args = array(
             'number'     => 5,
             'taxonomy'   => $_POST['value'], // phpcs:ignore
             'search'     => $_POST['params']['term'], // phpcs:ignore
             'hide_empty' => false,
          );
    
          $terms = get_terms( $args );
    
          if ( count( $terms ) > 0 ) { // phpcs:ignore
             foreach ( $terms as $term ) {
                $output[] = array(
                   'id'   => $term->term_id,
                   'text' => $term->name,
                );
             }
          }
    
          echo wp_json_encode( $output );
          die();
       }
    
       add_action( 'wp_ajax_woodmart_get_taxonomies_by_query_autocomplete', 'woodmart_get_taxonomies_by_query_autocomplete' );
       add_action( 'wp_ajax_nopriv_woodmart_get_taxonomies_by_query_autocomplete', 'woodmart_get_taxonomies_by_query_autocomplete' );
    }

    We will fix that and ampersand in the nearest update.

    Best Regards

    #389639

    Anne
    Participant

    Yes, it works!
    Thank you,

    #389640

    You are welcome! We are here to help.

    Wish you a wonderful day!

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘CATEGORIES IN TITLE’ is closed to new replies.