Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #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/

    #1359067

    Hey mediafacto,

    Are you looking to remove all the featured images on the page you linked to?

    Best regards,
    Rikard

    #1359184

    hello Rikard

    yes all the featured images of this grid !

    • This reply was modified 2 years, 5 months ago by mediafacto.
    #1359196

    Hi,

    Please try this in Quick CSS:

    .page-id-14 div.av-masonry-image-container {
      background-image: none; 
      background-color: #f8f8f8;
    }

    Best regards,
    Rikard

    #1359203

    sorry 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

    #1359205

    i tryed page-id-3120 it does’nt work neither

    #1359217

    Hi,

    Please try this CSS instead:

    .page-id-3120 div.av-masonry-image-container {
        background-image: none !important;
        background-color: #f8f8f8;
    }

    Best regards,
    Rikard

    #1359232

    thanks !

    do you think i can have the texte center / center in the block like the first one (with no image) ?

    #1359237

    Hi,

    Please try this CSS as well:

    .page-id-3120 .av-fixed-size .av-masonry-entry .av-inner-masonry-content {
        bottom: 15px;
    }

    Best regards,
    Rikard

    #1359253

    thanks ;)
    and justify the text to the center ? like the first post is it possible ?

    #1359260

    Hi 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,
    Nikko

    #1359445

    thanks 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.
    #1359511

    Hi mediafacto,

    I tried to check the page however it redirects me to a 404 page, please check.

    Best regards,
    Nikko

    #1359514
    #1359524

    Hi 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

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