Tagged: masonry grid
-
AuthorPosts
-
March 4, 2020 at 12:55 am #1189854
Hi… how do I get my captions to align when displaying posts on a masonry grid? Grid setting set to Perfect Manual Masonry and with title and excerpt enabled. Additionally, is there a way to hid the pst date on the masonry grid? I have multiple pages with post grids… I have provided a sample of one. Thanks!
March 4, 2020 at 9:28 am #1189972Hey brockwatson,
I’m not sure what you mean by aligning the titles, do you mean that the images are differently sized which means the titles would appear higher or lower compared to each other? If so then please try to use images which are the same size to see if that helps.
You can use this in Quick CSS to hide the date:
.av-masonry-date { display: none; }
Best regards,
RikardMarch 17, 2020 at 2:07 am #1193704Thank you for the CSS on the date.. worked great. However, I am still having trouble getting the images and captions to display cleanly. All of the images are the same size… however the responsiveness is not consistent and the captions are not starting on the same line (they end on the same line but would like them to start on the same line as well… just under the image). Please see link to a sample page… I have several pages like this. Thanks
March 20, 2020 at 5:42 am #1194712Hello… I just wanted to circle around on this as I have not heard back. Thanks
March 23, 2020 at 3:21 am #1195330Hi,
Sorry for the delay. Are you uploading featured images with the same size? Some of the items in the grid may not look the same as the other because their featured images are smaller or larger compare to the other images. Please make sure that the size of the featured images are the same.
Best regards,
IsmaelMarch 23, 2020 at 6:35 am #1195366Thanks. As mentioned, all of the images are the same size. Additionally, we are not sure how to address the captions/lead-ins starting on different lines. The are all uneven. Thanks!
March 23, 2020 at 7:22 pm #1195560Actually .. what it looks like is the captions are starting from the bottom instead of the top. I dont see a setting to change this. It is like this on all my pages with post grids. Please advise. Thanks!
March 23, 2020 at 9:58 pm #1195575Ok.. so we figured out how to top align the caption. However, is there a way to increase the font size and the character count for the leadin (first few lines of the post after the title)? This again would be for all post grids on the site. Thanks!
March 26, 2020 at 6:08 am #1197941Hi,
Thank you for the update.
You can use this filter in the functions.php file to limit the character count in the excerpt.
add_filter('avf_masonry_loop_entry_content', function($content) { return substr($content,0,30); }, 10, 1);
This should limit the excerpt to 30 characters.
Best regards,
IsmaelMarch 26, 2020 at 11:45 pm #1198185Thanks… however, we actually need to increase the count. We tried adjusting within the code but it didnt work. Please see steps our web team took below.
- This reply was modified 4 years, 7 months ago by brockwatson. Reason: added code sample
March 30, 2020 at 2:24 am #1198979Hi,
Thank you for the update.
Can we get access to the dashboard and the file server? We would like to check the page settings and how the portfolio items are set up. Are you using the advance layout builder for the portfolio items?
Best regards,
IsmaelMarch 30, 2020 at 7:19 pm #1199153This reply has been marked as private.April 2, 2020 at 5:59 am #1199965Hi,
Thank you for the info.
We added this code in the Quick CSS field to set the minimum height of the masonry title, which should horizontally align the captions.
.av-masonry-entry .av-masonry-entry-title { min-height: 39px; }
Best regards,
IsmaelApril 2, 2020 at 5:28 pm #1200238Thank you… looks great! However we are still having the issue with the character count in the excerpt (we need the ability to increase the count). As previously mentioned, the code you previously provided to adjust the character count did not work. Additionally, is there a way to increase the font size of the title and excerpt? This is a 2 part question…. Thank you.
- This reply was modified 4 years, 7 months ago by brockwatson.
April 6, 2020 at 5:29 am #1201130Hi,
We replaced the filter in the functions.php file with this one.
add_filter('avf_masonry_excerpt_length','avia_change_masonry_excerpt_length', 10, 1); function avia_change_masonry_excerpt_length($length) { $length = 100; return $length; }
You can of course adjust the length.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.