Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Excerpt Length on Archive / Category Pages
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Excerpt Length on Archive / Category Pages
- This topic has 13 replies, 4 voices, and was last updated 9 years by Mohammad – SUPPORT.
-
Posted in: Neighborhood
-
April 26, 2015 at 8:23 am #168639
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.
April 27, 2015 at 6:26 am #168863Hi,
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
MohammadApril 27, 2015 at 4:44 pm #169124Hey!
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/
April 27, 2015 at 4:53 pm #1691262. Oh and you can see the difference here: http://tellingbeatzz.com/beats-instrumentals
April 28, 2015 at 8:07 am #169359Hi,
1- Please try to edit category.php file also.2- I dont see any italic at this page http://tellingbeatzz.com/beats-instrumentals .
Thanks
MohammadApril 28, 2015 at 9:03 am #169390Hey!
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.
April 28, 2015 at 5:40 pm #169669Just assigned it to my colleague so he can reply when he comes online.
Let’s wait for the reply.-Rui
April 28, 2015 at 5:49 pm #169672Thanks Rui, appreciate it!
April 30, 2015 at 5:47 am #170318Hi,
1- Please roll back that change and make this change nowFind 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
MohammadApril 30, 2015 at 2:54 pm #170552Hey 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?
May 1, 2015 at 9:32 am #170755Hi,
1- I checked this post http://tellingbeatzz.com/reflection-instrumental/. There is no description excerpt here.2- It seems fine to me.
Thanks
MohammadMay 1, 2015 at 11:24 am #170799Mohammad,
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.May 3, 2015 at 10:51 pm #171351Hi,
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
May 4, 2015 at 2:23 am #171367 -
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.