Title: alezucchi's Replies | WordPress.org

---

# alezucchi

  [  ](https://wordpress.org/support/users/alezucchi/)

 *   [Profile](https://wordpress.org/support/users/alezucchi/)
 *   [Topics Started](https://wordpress.org/support/users/alezucchi/topics/)
 *   [Replies Created](https://wordpress.org/support/users/alezucchi/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/alezucchi/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/alezucchi/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/alezucchi/engagements/)
 *   [Favorites](https://wordpress.org/support/users/alezucchi/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/users/alezucchi/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/alezucchi/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Registration & Membership - Free & Paid Memberships, Subscriptions, Content Restriction, User Profile, Custom User Registration & Login Builder] AJAX error on login](https://wordpress.org/support/topic/ajax-error-on-login/)
 *  Thread Starter [alezucchi](https://wordpress.org/support/users/alezucchi/)
 * (@alezucchi)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/ajax-error-on-login/#post-18289766)
 *  registration page [https://unionereali.it/registration/](https://unionereali.it/registration/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Registration & Membership - Free & Paid Memberships, Subscriptions, Content Restriction, User Profile, Custom User Registration & Login Builder] AJAX error on login](https://wordpress.org/support/topic/ajax-error-on-login/)
 *  Thread Starter [alezucchi](https://wordpress.org/support/users/alezucchi/)
 * (@alezucchi)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/ajax-error-on-login/#post-18289763)
 * Hello
 * [https://unionereali.it/my-account/](https://unionereali.it/my-account/)
 * consider that now i’m keeping the plugin disabled or i can’t login again.
 * I can clone the site and provide you a staging environment if needed
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TranslatePress - Translate Multilingual sites with AI Translation] Flag image size](https://wordpress.org/support/topic/flag-image-size/)
 *  [alezucchi](https://wordpress.org/support/users/alezucchi/)
 * (@alezucchi)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/flag-image-size/#post-15669492)
 * SOLVED
 * i missed
    `add_theme_support( 'post-thumbnails' );` in functions.php
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TranslatePress - Translate Multilingual sites with AI Translation] Custom flag image size](https://wordpress.org/support/topic/custom-flag-image-size/)
 *  [alezucchi](https://wordpress.org/support/users/alezucchi/)
 * (@alezucchi)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/custom-flag-image-size/#post-15669412)
 * also this seems to be involved and refers to trp-custom-language-flag, but the
   code mentioned above is not working for me…
 *     ```
       * Returns the original flags path for original languages
        * Or the custom flag path for flags uploaded into the media library
        * The image is returned resized to the custom size dictated bu trp-custom-language-flag
        *
        */
       function trpc_flags_path_custom( $original_flags_path,  $language_code ) {
   
       	// only change the folder path for the custom languages:
       	$option = get_option( 'trp_advanced_settings', true );
   
       	if ( isset( $option['custom_language'] ) ) {
       		foreach ( $option['custom_language']['cuslangname'] as $key => $value ) {
       			if ($language_code === $option["custom_language"]["cuslangcode"][$key] && !empty($option["custom_language"]["cuslangflag"][$key]) ) {
       				$attachment_array = wp_get_attachment_image_src(attachment_url_to_postid($option["custom_language"]["cuslangflag"][ $key ]), 'trp-custom-language-flag');
                       return isset($attachment_array) && $attachment_array ? $attachment_array[0] : $option["custom_language"]["cuslangflag"][ $key ];
       			}
       		}
       	}
       	return $original_flags_path;
       }
   
       add_filter( 'trp_flag_file_name', 'trpc_flag_name_custom', 10, 2 );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TranslatePress - Translate Multilingual sites with AI Translation] Flag image size](https://wordpress.org/support/topic/flag-image-size/)
 *  [alezucchi](https://wordpress.org/support/users/alezucchi/)
 * (@alezucchi)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/flag-image-size/#post-15669307)
 * I’ve found this line in class-language-switcher.php in TP’s folder
 *     ```
         // HTML code to display flag image
               $flag_html = '<img class="trp-flag-image" src="'. esc_url( $flags_path . $flag_file_name ) .'" width="18" height="12" alt="' . esc_attr( $language_code ) . '" title="' . esc_attr( $language_name ) . '">';
       ```
   
 * how can i override this?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TranslatePress - Translate Multilingual sites with AI Translation] Custom flag image size](https://wordpress.org/support/topic/custom-flag-image-size/)
 *  [alezucchi](https://wordpress.org/support/users/alezucchi/)
 * (@alezucchi)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/custom-flag-image-size/#post-15669305)
 * I’ve found this line in class-language-switcher.php in TP’s folder
 *     ```
         // HTML code to display flag image
               $flag_html = '<img class="trp-flag-image" src="'. esc_url( $flags_path . $flag_file_name ) .'" width="18" height="12" alt="' . esc_attr( $language_code ) . '" title="' . esc_attr( $language_name ) . '">';
       ```
   
 * how can i override this?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TranslatePress - Translate Multilingual sites with AI Translation] Custom flag image size](https://wordpress.org/support/topic/custom-flag-image-size/)
 *  [alezucchi](https://wordpress.org/support/users/alezucchi/)
 * (@alezucchi)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/custom-flag-image-size/#post-15664345)
 * I have the same problem but unfortunately this solution seems not working for
   me.
    🙁
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TranslatePress - Translate Multilingual sites with AI Translation] Different translation based on context](https://wordpress.org/support/topic/different-translation-based-on-context/)
 *  Thread Starter [alezucchi](https://wordpress.org/support/users/alezucchi/)
 * (@alezucchi)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/different-translation-based-on-context/#post-15561092)
 * Hello, thank you for your kind answer!
    Actually yes, I need some other help,
   but i think i’ve better open another ticket since it’s about a different topic.
   Thank you for now, you can lose this ticket. Have a nice day AZ
    -  This reply was modified 4 years, 4 months ago by [alezucchi](https://wordpress.org/support/users/alezucchi/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TranslatePress - Translate Multilingual sites with AI Translation] Different translation based on context](https://wordpress.org/support/topic/different-translation-based-on-context/)
 *  Thread Starter [alezucchi](https://wordpress.org/support/users/alezucchi/)
 * (@alezucchi)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/different-translation-based-on-context/#post-15525459)
 * Ok.. i did it by myself… 😉
    it was just not very clear in your tutorials…
 * Basically i was using the tags like translation-block in translation filed, inside
   the editor interface. What i had to do is to change the html block in original
   language and then simply translate through the editor.
 * You can close this ticket
 * Thank’s
 * AZ
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TranslatePress - Translate Multilingual sites with AI Translation] Different translation based on context](https://wordpress.org/support/topic/different-translation-based-on-context/)
 *  Thread Starter [alezucchi](https://wordpress.org/support/users/alezucchi/)
 * (@alezucchi)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/different-translation-based-on-context/#post-15525392)
 * hello, do yo have any recommendation?
    THank’s
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Product Feed PRO for WooCommerce by AdTribes – Product Feeds for WooCommerce] local inventory feed “offer does not exist”](https://wordpress.org/support/topic/local-inventory-feed-offer-does-not-exist/)
 *  Thread Starter [alezucchi](https://wordpress.org/support/users/alezucchi/)
 * (@alezucchi)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/local-inventory-feed-offer-does-not-exist/#post-14347475)
 * Hello, thank you for your kind answer!
 * I don’t have any filter in any of the two feeds…
 * and i have the error on ALL my products in the secondary feed…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Perfect Brands for WooCommerce] Data layer variable](https://wordpress.org/support/topic/data-layer-variable/)
 *  Thread Starter [alezucchi](https://wordpress.org/support/users/alezucchi/)
 * (@alezucchi)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/data-layer-variable/#post-13704238)
 * HELLO, AGAIN, PLEASE HELP
 * I need to find with metakey is applied to a product when a brand is applied.
 * I need to get the brand value to read it and send it to Google Analytics.
 * Thank’s
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Perfect Brands for WooCommerce] Data layer variable](https://wordpress.org/support/topic/data-layer-variable/)
 *  Thread Starter [alezucchi](https://wordpress.org/support/users/alezucchi/)
 * (@alezucchi)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/data-layer-variable/#post-13643657)
 * Hello
    please, help me grabbing the brand value and send it to data layer..
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Perfect Brands for WooCommerce] Data layer variable](https://wordpress.org/support/topic/data-layer-variable/)
 *  Thread Starter [alezucchi](https://wordpress.org/support/users/alezucchi/)
 * (@alezucchi)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/data-layer-variable/#post-13552481)
 * hello, can you help me?
 * more specifically i’m trying to insert tis line to get brand in data layer
 *  ‘brand’: ‘<?php echo $brands[‘name’]; ?>’,
 * thank you
 * AZ
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HUSKY - Products Filter for WooCommerce Professional] Incomplete results](https://wordpress.org/support/topic/incomplete-results-3/)
 *  Thread Starter [alezucchi](https://wordpress.org/support/users/alezucchi/)
 * (@alezucchi)
 * [6 years ago](https://wordpress.org/support/topic/incomplete-results-3/#post-13155708)
 * Hello, thank you for your kind answer, we are migrating hosting today. Please
   let me contact you as soon as it’s moved and tested again!

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/users/alezucchi/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/alezucchi/replies/page/2/?output_format=md)