Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1429634

    is there a way to define the source for attachment tab_image ?
    A filter for that would be nice to have. ( for icon_select is image_top )

    in the meantime i work with child-theme ALB Element and changed line 593

    	$src = wp_get_attachment_image_src( $atts['tab_image'], 'square' );
    
    #1429928

    Hey Guenter,

    Sorry for the late reply.

    I added filter ‘avf_tab_subsection_image_size’ (see line 599) for release 5.9.10:

    https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_5_6_9/shortcodes/tab_section/tab_sub_section.php

    Hope this is what you need.

    Best regards,
    Günter

    #1430008

    I think that a filter is always the cleanest solution for customization!

    #1430162

    Hi,

    See private.

    Best regards,
    Günter

    #1431986

    hab die 5.6.10 drauf, und Problem ist behoben – danke dafür

    #1431991

    we now have:

    $img_size = apply_filters( 'avf_tab_subsection_image_size', 'square', $atts );
    $src = wp_get_attachment_image_src( $atts['tab_image'], 'square' );

    but does the src not hamper the usage of the add_filter ? ;)

    we should have :

    $src = wp_get_attachment_image_src( $atts['tab_image'], $img_size );
    

    no effect on using:

    function change_tab_image_size() {
        return "portfolio_small";
    }
    add_filter('avf_tab_subsection_image_size','change_tab_image_size', 10);
    #1431999

    Hi,

    Thank you for reporting this bug – I’m sorry for that mistake.

    It is fixed in next release 5.6.11.

    Have a great day.

    Best regards,
    Günter

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.