Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #614031

    Hi Enfold team,
    i would lke the image in the prodct list to be different than the product image.
    Is that possoble?
    I would like to display the products in product listing in a natural scale/size.
    When i do so i use the product image for that and the image on the product page itself looks bad cause it´s much too small.
    Can you help please?

    #615667

    Hey Robert!

    Thank you for using Enfold.

    It’s possible but you have to modify the productslider.php file inside the config-templatebuilder > avia-shortcodes folder. Look for this code around line 358:

    $image = get_the_post_thumbnail($product->id, 'square', array('class'=>"av-catalogue-image av-cart-update-image av-catalogue-image-{$show_images}"));
    

    The current thumbnail size is set to “square”.

    Cheers!
    Ismael

    #615845

    Thanx a lot Ismael.

    #615856

    Hi!

    Glad we got that fixed.
    Please do let us know if we can do anything else for you, we will be happy to assist.

    Cheers!
    Basilis

    #694944

    Hi, I want to make this change in a permanent way child theme without having to modify Enfold each update.
    It’s possible ?

    Regards.
    Jean

    #696314

    Hi!

    I”m sorry but you can only do this modification in a child theme. It’s possible but the file won’t be updated when we add or change something in the original or parent theme file.

    // http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    Regards,
    Ismael

    #696355

    Thank Ismael, is it possible to make same solution for meta.php in avia-template-builder -> config?

    Regards.
    Jean

    #697584

    Hi,

    What are you trying to do specifically? Maybe you can use the “avf_builder_elements” filter. Example:

    // https://kriesi.at/support/topic/when-i-add-new-portfolio-ltems%EF%BC%8Chow-to-set-no-sidebar-in-defult%EF%BC%9F/#post-618972
    // https://kriesi.at/support/topic/change-default-header-layout/#post-682685

    Best regards,
    Ismael

    #697668

    Hi, now I change meta.php for adding custom post types (Go-Portfolio) in the integration of Avia Page Builder.
    Every update I have to write the file …

    Regards.
    Jean

    • This reply was modified 8 years, 1 month ago by freepixelweb.
    #698128

    Hi!

    Hi, now I change meta.php for adding custom post types (Go-Portfolio) in the integration of Avia Page Builder.
    Every update I have to write the file

    I’m sorry but I’m not quite sure what you meant by that. What are the changes in the file?

    Cheers!
    Ismael

    #698167

    Ok, in meta.php I add the slug of Custom post types I created :

    $boxes = array(
        array( 'title' =>$av_default_title, 'id'=>'avia_builder', 'page'=>array('post','portfolio','page','product','canne','moulinet','ligne','leurre','accessoire','archive'), 'context'=>'normal', 'priority'=>'high', 'expandable'=>true ),
        array( 'title' =>__('Layout','avia_framework' ), 'id'=>'layout', 'page'=>array('portfolio', 'page' , 'post','canne','moulinet','ligne','leurre','accessoire','archive'), 'context'=>'side', 'priority'=>'low'),

    With this change all Go-Portfolio entries use the Avia Builder.

    Regards.
    Jean

    #699445

    Hi,

    Thank you for the info. Please remove the modification then add this in the functions.php file.

    add_filter( 'avf_builder_boxes', 'avf_builder_boxes_mod' );
    function avf_builder_boxes_mod( $metabox ) {
        foreach( $metabox as &$meta ) {
            if( $meta['id'] == 'avia_builder' || $meta['id'] == 'layout' ) {
                $meta['page'][] = 'canne';
                $meta['page'][] = 'moulinet';
    			$meta['page'][] = 'leurre';
    			$meta['page'][] = 'ligne';
    			$meta['page'][] = 'accessoire';
    			$meta['page'][] = 'archive';
            }
        }
        return $metabox;
    }

    Best regards,
    Ismael

    #699890

    Hi Ismael, thank you very much, it works !! :-D
    Best regards.
    Jean

    #700506

    Hi Jean,

    Great, glad we could help :-)

    Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

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