-
AuthorPosts
-
July 21, 2022 at 6:12 pm #1359045
how can i not load the featured image of the post on mansonry grid in a specific page (without remove the featured image in the post) to keep it in the other page.
its for this page : https://www.voxius-avocats.com/home-new-22/
July 21, 2022 at 7:22 pm #1359067Hey mediafacto,
Are you looking to remove all the featured images on the page you linked to?
Best regards,
RikardJuly 22, 2022 at 12:40 pm #1359184hello Rikard
yes all the featured images of this grid !
- This reply was modified 2 years, 5 months ago by mediafacto.
July 22, 2022 at 1:56 pm #1359196Hi,
Please try this in Quick CSS:
.page-id-14 div.av-masonry-image-container { background-image: none; background-color: #f8f8f8; }
Best regards,
RikardJuly 22, 2022 at 3:34 pm #1359203sorry it does’nt work are you sur of the page id ?
this is the page : https://www.voxius-avocats.com/home-new-22/
thanks for your help
July 22, 2022 at 3:42 pm #1359205i tryed page-id-3120 it does’nt work neither
July 22, 2022 at 6:16 pm #1359217Hi,
Please try this CSS instead:
.page-id-3120 div.av-masonry-image-container { background-image: none !important; background-color: #f8f8f8; }
Best regards,
RikardJuly 22, 2022 at 9:06 pm #1359232thanks !
do you think i can have the texte center / center in the block like the first one (with no image) ?
July 22, 2022 at 9:43 pm #1359237Hi,
Please try this CSS as well:
.page-id-3120 .av-fixed-size .av-masonry-entry .av-inner-masonry-content { bottom: 15px; }
Best regards,
RikardJuly 23, 2022 at 12:43 am #1359253thanks ;)
and justify the text to the center ? like the first post is it possible ?July 23, 2022 at 9:34 am #1359260Hi mediafacto,
Can you try adding this CSS code in Enfold > General Styling > Quick CSS:
.page-id-3120 .av-masonry-entry .av-inner-masonry-content { text-align: center; }
Best regards,
NikkoJuly 26, 2022 at 11:32 am #1359445thanks great !
and is it possible to have the catégory of each post in the masonry grid just before the date ?
for the same page here https://www.voxius-avocats.com/home-new-22/
- This reply was modified 2 years, 5 months ago by mediafacto.
July 27, 2022 at 4:19 am #1359511Hi mediafacto,
I tried to check the page however it redirects me to a 404 page, please check.
Best regards,
NikkoJuly 27, 2022 at 5:35 am #1359514yes sorr(y
July 27, 2022 at 9:38 am #1359524Hi mediafacto,
Thanks, try to add this code in functions.php of your child theme:
add_filter( 'avf_masonry_loop_prepare', 'avf_masonry_loop_prepare_mod_cat', 10, 2 ); function avf_masonry_loop_prepare_mod_cat( $key, $entries ) { $categories = get_the_category($key['ID']); $separator = ' '; $output = ' <div class="masonry-cat">'; if ( ! empty( $categories ) ) { foreach( $categories as $category ) { $output .= '<span alt="' . esc_attr( sprintf( __( 'View all posts in %s', 'textdomain' ), $category->name ) ) . '">' . esc_html( $category->name ) . '</span>' . $separator; } } $output .= '</div> '; $key['text_after'] .= trim( $output, $separator ); return $key; }
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.