-
AuthorPosts
-
April 10, 2014 at 9:50 am #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.
April 13, 2014 at 4:30 am #250622Hey!
If you are using images from different sizes / aspect ratio you may want to use the Masonry Gallery element instead.
Cheers!
JosueApril 13, 2014 at 9:48 am #250711How do I use Masonry Gallery inside a post?
April 13, 2014 at 7:18 pm #250788Hey!
Try this to enable ALB in Posts
Best regards,
JosueApril 13, 2014 at 8:06 pm #250793Do 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?
April 14, 2014 at 1:32 am #250830Just 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,
JosueApril 17, 2014 at 2:24 pm #252703Great. Thanks.
Might be great if you can add an option to use the advanced editor also in posts without needing to edit the files.April 17, 2014 at 2:31 pm #252711Hi, 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; }
April 17, 2014 at 2:36 pm #252716Not using a child theme (as far as I know).
April 17, 2014 at 7:49 pm #252854Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.