Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #364908

    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 !

    #364919

    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

    #365190

    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..

    #365497

    Hi!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    span.news-time {
    display: none!important;
    }

    Cheers!
    Yigit

    #859661

    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.

    http://blog.bodybio.com/tag/alzheimers/

    #859704

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Display only excerpt on archive page’ is closed to new replies.