Tagged: blog post, combo widget, excerpt
Hi, my website is showing all the contents of blog posts on archive page…
I want the archive page to show the excerpt of all posts only, not all the content.
I have add the content to excerpt, but they still show all the content in stead of excerpt.
Do you have any code to solve this?
Thank you in advance !
Hey Pearwcz!
Please add following code to Functions.php file in Appearance > Editor
function change_blog_archive_style() {
global $avia_config;
if(!is_single()){ $avia_config['blog_content'] = "excerpt_read_more"; }
}
add_action('get_header', 'change_blog_archive_style');
Regards,
Yigit
Hi! Thanks for the code,
I have another question.
Could you give me the code to delete the date & time on Enfold Combo Widget (there are post, comment,…) ?
I want to show only the title..
Hi!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
span.news-time {
display: none!important;
}
Cheers!
Yigit
Can this solutions also be applied to the tag.php file? I would like to show just excerpts on my tag pages. We use the tags extensively in our blog.
Here is the example page that is showing full story.
Hi,
@reggiescott Please try using the code as following
function change_blog_tag_style() {
global $avia_config;
if(is_tag()){ $avia_config['blog_content'] = "excerpt_read_more"; }
}
add_action('get_header', 'change_blog_tag_style');
I am closing this thread for now. If you have any other questions or issues, please start your own thread under Enfold sub forum :)
Best regards,
Yigit