Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: Recaptcha v2- WPML #1374758

    YABADADOOOOOO!!!
    it’s fantastic!!
    Thank you very much for your efforts.

    —–
    From what you said, I understand that the files you have updated from the parent theme will be included in the next Enfold update.
    It is right? (I’ll keep an eye out in case something new needs to be configured in the theme settings.)

    if not, can you tell me how to proceed so that this setting is not lost in the next ENFOLD update?

    Thank you very much!
    Best Regards!

    in reply to: Recaptcha v2- WPML #1374683
    This reply has been marked as private.
    in reply to: Recaptcha v2- WPML #1374477

    Hello Yigit!
    Adding the ability to set the Recaptcha language in the next update is a great idea.
    I think it’s fantastic idea.

    __
    Regarding the updated code, thanks for the agility.
    But now the Recaptcha box is hidden, although it is working, it is not showing on frontend (in any language).

    Thanks again in advance

    Best regards

    in reply to: Recaptcha v2- WPML #1374254

    Hi Ismael!
    thanks for your quick response.

    Yes, it is better for Recaptcha to change the language according to the language of the page (not the language of the user in his browser/system).

    __
    I have created a copy of the file “class-grecaptcha.php”, as you indicate.
    And I have added the filter in functions.php of the child theme, but when adding the filter, it generates an Error

    Uncaught ArgumentCountError: Too few arguments to function wpml_element_language_code_filter(), 1 passed in wp-includes/class-wp-hook.php on line 308 and exactly 2 expected in wp-content/plugins/sitepress-multilingual-cms/inc/template-functions.php:1310
    Stack trace:
    #0 wp-includes/class-wp-hook.php(308): wpml_element_language_code_filter(NULL)
    #1 wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array)
    #2 wp-content/themes/enfold-child/functions.php(1414): apply_filters('wpml_element_la...', NULL)
    #3 wp-includes/class-wp-hook.php(308): {closure}('https://www.goo...')
    #4 wp-includes/plugin.php(205): WP_Hook->apply_filters('https://www.goo...', Array)
    #5 wp-content/themes/enfold/framework/php/class-grecaptcha.php(286): apply_filters('av_google_recap...', 'https://www.goo...')

    Can you tell me how to fix it?

    __
    In other side, It would be preferable that the “class-grecaptcha.php” file be replaced in the child theme (or maybe dequeued and queued via child functions), to avoid it being deleted in future updates of the parent theme Enfold.

    Ismael thanks again for your help

    Best regards!

    Hi Ismael,

    Now works fine!
    You can close this issue.

    Thanks!!!

    ***
    For future theme updates, you may want to consider adding this feature (activate on all new products), maybe in theme settings > Shop Options.

    Hello Ismaele!

    Well, works but,,, now appears two times….
    Snapshop

    Can you check it, pelase?
    Thanks again!

    ____
    Ummm,,,
    For future theme updates, you may want to consider adding this feature (activate on all new products), maybe in theme settings > Shop Options.

    Hello!!

    Can you bring me a piece of code to add via Child theme, please?
    To avoid forget it when main theme will be update.

    Thanks in advance!

    in reply to: Masonry Products show attribute (tax) Brand #1217285

    Hi Jordan!

    Sorry, yes allright!!

    Best regards,


    For other users,
    code to show tax category on masonry products:
    (add on ChidTheme functions.php file)

    
    /* SHOW PRODUCT CAT on MASONRY  */
    add_filter( 'avf_masonry_loop_prepare', 'avf_masonry_cat', 10, 2 );
    function avf_masonry_cat( $key, $entries ) {      
    	$id = $key['ID']; 
    	if($key['post_type'] == 'product') {
    		 $cats = wp_get_object_terms( $id, 'product_cat', array( 'fields' => 'names' ) );
    		 foreach( $cats as $cat ){
    			$output .=  $cat .'  '; 		 
    		 }
    	}
        $key['the_title'] .= trim( '<h6 class="cat">'. $output .'</h6>');
        return $key;
    }
    
    in reply to: Masonry Products show attribute (tax) Brand #1217095

    Wow, perfect!
    Thank you very much!!


    Ummm, for future users, take care, extra space after tittle must be deleted
    $key['the_title'] .= trim( $output );

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