Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1466653

    Hi there I have turned off all Blog Meta Elements but the lines still show – how can I remove the lines from showing? I cant change the color of the Main Content Border color as that affects a whole lot of other things.

    And is there a way to center the excerpt text underneath the image and title as they are centered – I’m using the Elegant Blog Layout.

    Also I have another page where I am wanting to show Interviews and Podcasts – so they have been created as Posts but Ive used the Advanced layout Editor to create each one – they are either Videos or Audios, but when I have them on the page they have a “read more” button – is there a way to customise the text on each one to say Listen now or Watch now depending on whether if Ive changed the post style to Audio or Video? I dont want the actual blogs to change the button text though – I still want them to say Read more.

    Cheers
    Natasha

    #1466693

    Hey xfacta,

    Thank you for the inquiry.

    Please try to disable the Performance > File Compression settings or add this css code to remove the meta container.

    .html_elegant-blog #top .post-entry .post-meta-infos {
        display: none;
    }

    To change the read more text based on whether the post contains a video or audio, you may need to create actual “Video” or “Audio” categories, apply them to your posts, and then add this filter in the functions.php file.

    function avf_modify_standard_post_content( $current_post ) {
        if ( $current_post['post_format'] === 'standard' ) {
            $categories = get_the_category( $current_post['ID'] );
            $category_names = wp_list_pluck( $categories, 'name' );
    
            if ( in_array( 'video', $category_names ) ) {
                $read_more_text = __( 'Watch this', 'avia_framework' );
            } elseif ( in_array( 'audio', $category_names ) ) {
                $read_more_text = __( 'Listen to this', 'avia_framework' );
            } else {
                $read_more_text = __( 'Read more', 'avia_framework' );
            }
    
            $current_post['content'] = $current_post['content'] . 
                '<div class="read-more-link"><a href="' . get_permalink( $current_post['ID'] ) . '" class="more-link">' . 
                $read_more_text . 
                '<span class="more-link-arrow"></span></a></div>';
        }
    
        return $current_post;
    }
    add_filter( 'post-format-standard', 'avf_modify_standard_post_content' );

    Best regards,
    Ismael

    #1467155

    Hi there

    Ok great thank you.

    Also for a blog grid display I am only wanting the title to show not the blog category – how can I do that?

    Cheers
    Natasha

    #1467167

    Hi,

    Thank you for the update.

    To hide the category list, toggle the Enfold > Blog Layout > Blog Meta Elements > Blog Post Category option. Let us know if this works.

    Best regards,
    Ismael

    #1467169

    hey there

    Yes all of those are already off.

    Cheers
    Natasha

    #1467259

    Hi,

    Thank you for the update.

    You can use this css code to hide the category list:

    .html_elegant-blog #top .avia-content-slider .blog-categories {
        display: none;
    }

    Best regards,
    Ismael

    #1467263

    hey Ismael perfect thanks so much :-)

    Cheers
    Natasha

    #1467274

    Hi,

    Great! Glad it’s working. Let us know if you have more questions.

    Have a nice day.

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Blog Meta Elements Lines still show’ is closed to new replies.