Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #249691

    Hi, i’m trying to add a gallery to a post and the thumbnails are not aligning right – https://www.evernote.com/shard/s55/sh/a133551e-2450-4905-b300-2ec1a411c0ab/30119c0018c8dfc69db0b08e69437e05/deep/0/Tripadvisor-Top-25-Destination-for-2014—Photobek.png

    Is there a way to fix this so that all thumbnails will be the same size?

    Thanks.

    #250622

    Hey!

    If you are using images from different sizes / aspect ratio you may want to use the Masonry Gallery element instead.

    Cheers! 
    Josue

    #250711

    How do I use Masonry Gallery inside a post?

    #250788

    Hey!

    Try this to enable ALB in Posts

    Best regards,
    Josue

    #250793

    Do I have to do all of what is shown in the video or is it enough just to edit the meta.php file without creating the new post type?

    #250830

    Just edit the meta.php file.

    array( 'title' =>__('Avia Layout Builder','avia_framework' ), 'id'=>'avia_builder', 'page'=>array('portfolio','page', 'post'), 'context'=>'normal', 'priority'=>'high', 'expandable'=>true ),
    

    Regards,
    Josue

    #252703

    Great. Thanks.
    Might be great if you can add an option to use the advanced editor also in posts without needing to edit the files.

    #252711

    Hi, If you are using a child theme this code might be useful for you. It add the visual editor to any CPT, and you don’t have to worry about the updates anymore ;)

    add_filter('avf_builder_boxes','custom_post_types_options');
    
    function custom_post_types_options($boxes)
    {
    	$boxes[] = array( 'title' =>__('Avia Layout Builder','avia_framework' ), 'id'=>'avia_builder', 'page'=>array('custom_post_type1','custom_post_type2','custom_post_type3'), 'context'=>'normal', 'expandable'=>true );
    	$boxes[] = array( 'title' =>__('Layout','avia_framework' ), 'id'=>'layout', 'page'=>array('custom_post_type1','custom_post_type2','custom_post_type3'), 'context'=>'side', 'priority'=>'low');
        $boxes[] = array( 'title' =>__('Additional Portfolio Settings','avia_framework' ), 'id'=>'preview', 'page'=>array('custom_post_type1','custom_post_type2','custom_post_type3'), 'context'=>'normal', 'priority'=>'high' );
    	
    	return $boxes;
    }
    #252716

    Not using a child theme (as far as I know).

    #252854

    Hey!

    Thanks for sharing the code Pedro.


    @bakbek
    , if you don’t want to directly edit the theme files the best way to do it is using a child theme:

    Regards,
    Josue

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