New Landing How can we help? Themeforest Theme Support Neighborhood Excerpt Length on Archive / Category Pages

Viewing 14 posts - 1 through 14 (of 14 total)
  • #168639
    Bama
    Member
    Post count: 8

    Hey there!

    I’m using the display / blog type “mini” on my archive / category pages, which works for the most part but there are 2 things which bother me.

    1. The theme doesn’t display the entire excerpt content of my blog posts (on archive and category pages). (Example: http://tellingbeatzz.com/tag/piano/) I assume the excerpt content is limited to a certain amount of characters somewhere in the theme files. Could you please tell where i can change this?

    2. Some of my posts on the archive / category pages have a different font style (italic) and the bottom divider / border is missing. How can i fix this?

    Any help would be appreciated.

    #168863
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    1- Please open to edit archive.php file.

    Find this code:-
    <?php echo sf_get_post_item($post->ID, $blog_type); ?>
    
    Change to :-
    <?php echo sf_get_post_item($post->ID, $blog_type,$excerpt_length = "100"); ?>

    2- I need specific page url to see this difference.

    Thanks
    Mohammad

    #169124
    Bama
    Member
    Post count: 8

    Hey!

    1. Thanks for your help, however, i can’t find the code you provided in my archive.php. Can you tell me on which line it is?

    2. You can see this also on: http://tellingbeatzz.com/tag/piano/

    #169126
    Bama
    Member
    Post count: 8

    2. Oh and you can see the difference here: http://tellingbeatzz.com/beats-instrumentals

    #169359
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    1- Please try to edit category.php file also.

    2- I dont see any italic at this page http://tellingbeatzz.com/beats-instrumentals .

    Thanks
    Mohammad

    #169390
    Bama
    Member
    Post count: 8

    Hey!

    1. I’ve replaced the code in my category.php file on line 112 and 158 and now my article headings are missing. It also had no effect on the excerpt length. You can see it live here: http://tellingbeatzz.com/instrumentals/hip-hop/

    2. No, this is how it should look like: http://tellingbeatzz.com/beats-instrumentals and this is how it currently looks on archive and category pages: http://tellingbeatzz.com/tag/piano/ The text is italic from the 5th post on.

    #169669
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Just assigned it to my colleague so he can reply when he comes online.
    Let’s wait for the reply.

    -Rui

    #169672
    Bama
    Member
    Post count: 8

    Thanks Rui, appreciate it!

    #170318
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    1- Please roll back that change and make this change now

    Find this code:-
    <?php echo sf_get_post_item($post->ID, $blog_type); ?>
    
    Change with:-
    <?php echo sf_get_post_item($postID, $blog_type, $show_title = "yes", $show_excerpt = "yes", $show_details = "yes", $excerpt_length = "100", $content_output = "excerpt", $show_read_more = "no"); ?>
    

    2- Please use this custom css code:-

    .mini-items .blog-item h3{
    font-style:normal !important;
    }
    
    .desc {
        font-style: normal !important;
    }

    Thanks
    Mohammad

    #170552
    Bama
    Member
    Post count: 8

    Hey Mohammad,

    1. I’ve replaced the code in my archive.php and category.php but it still had no effect on the excerpt length. (http://tellingbeatzz.com/instrumentals/hip-hop) What else could i do?

    2. This worked, thanks but the the bottom divider is still missing on some of my posts. (http://tellingbeatzz.com/instrumentals/hip-hop/) Any idea what could cause this?

    #170755
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    1- I checked this post http://tellingbeatzz.com/reflection-instrumental/. There is no description excerpt here.

    2- It seems fine to me.

    Thanks
    Mohammad

    #170799
    Bama
    Member
    Post count: 8

    Mohammad,

    1. Yes, but this is a post page, not a category or archive page. I want my descriptions and buttons to be visible on category and archive pages and in order to do this it’s necessary to increase the excerpt length and your provided code didn’t work. I’ve attached screenshots.

    2. It’s ok, but as mentioned above some bottom divider of my posts aren’t visible. I’ve attached screenshots.

    Attachments:
    You must be logged in to view attached files.
    #171351
    rosanna
    Member
    Post count: 34

    Hi,

    I have a related issue (even if I am using Flexform). I already discovered how to change the excerpt length for archive/category pages changing the proper .php:

    wp-content/themes/flexform/includes/sf-content-display

    sf-post-formats.php

    sf_get_post_item($postID, $blog_type, $show_title = “yes”, $show_excerpt = “yes”, $show_details = “no”, $excerpt_length = “XXXX”, $content_output = “excerpt”, $show_read_more = “yes”)

    My problem is that with theme-updates this change goes lost. Is there a way to put it through custom css, so to preserve from future updates?

    Rosanna

    #171367
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,

    @rosanna
    – Please copy this whole changed function sf_get_post_item and insert at functions.php of child theme.


    @Bama
    – Please use this custom css code:-

    .blog-item:first-child {
    border-bottom: 1px solid #e4e4e4 !important;
    padding-bottom: 10px;
    }

    Thanks
    Mohammad

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register