-
AuthorPosts
-
September 11, 2024 at 2:57 am #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
NatashaSeptember 11, 2024 at 11:44 am #1466693Hey 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,
IsmaelSeptember 17, 2024 at 4:03 am #1467155Hi 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
NatashaSeptember 17, 2024 at 5:36 am #1467167Hi,
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,
IsmaelSeptember 17, 2024 at 5:43 am #1467169hey there
Yes all of those are already off.
Cheers
NatashaSeptember 18, 2024 at 4:55 am #1467259Hi,
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,
IsmaelSeptember 18, 2024 at 5:26 am #1467263hey Ismael perfect thanks so much :-)
Cheers
NatashaSeptember 18, 2024 at 6:08 am #1467274 -
AuthorPosts
- The topic ‘Blog Meta Elements Lines still show’ is closed to new replies.