Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Uplift › issue Archive Content Output (SF 2.5.16 & Uplift 1.3.12)
New Landing › How can we help? › Themeforest Theme Support › Uplift › issue Archive Content Output (SF 2.5.16 & Uplift 1.3.12)
- This topic has 7 replies, 3 voices, and was last updated 7 years by Rui Guerreiro – SUPPORT.
-
Posted in: Uplift
-
October 15, 2016 at 9:53 am #296678
Hello,
After uddate to SF 2.5.16 & Uplift 1.3.12 the option ‘Archive Content Output'(content or excerpt) in Theme Options >> ‘Archive/Category Options’ doesn’t work.
Only works the post meta “Custom excerpt”. Tested in a fresh copy of WordPress with Uplift 1.3.12 and SF 2.5.16.Thanks a lot for your help.
October 17, 2016 at 7:02 pm #297011The full content is displayed for me if I choose content over excerpt.
Can you screenshot your Theme Options => Archive/Category Options so I can see your settings?
– David.
October 19, 2016 at 11:37 am #297411Hello David,
I need display the wp excerpt, not content over excerpt.
Theme Options => Archive/Category => Archive Content Output => Excerpt
Edit Post => ExcerptIn the attached images you can see how the blog-feed shows the excerpt correctly, in archive/category pages not (in all blog types).
I can fix this by myself, but I think that I should report this issue.
Before update this didn’t happen. ThanksAttachments:
You must be logged in to view attached files.October 21, 2016 at 1:49 pm #298002Is there a reason you do not want to use Meta Options => Page Meta => Custom excerpt?
Is page builder active within those pages you see correctly in the feed?
We set the excerpt length here
/uplift/swift-framework/core/sf-formatting.php
, the function is:/* EXCERPT ================================================== */ if ( ! function_exists( 'sf_new_excerpt_length' ) ) { function sf_new_excerpt_length( $length ) { return 60; } add_filter( 'excerpt_length', 'sf_new_excerpt_length' ); }
You can test overriding this within your child theme
functions.php
.Lastly, do you have a staging site as it’s tricky to help with local installs?
Thanks,
DavidOctober 22, 2016 at 2:00 am #298116Hello David,
Thanks for your time and supportWe hide the “Meta Options” by user roles (Author) on our blog. This user role no need these Meta Options, for us.
Don’t worry about the child theme, we test everything in a local installation.
The excerpt_length is not the solution for us.Thanks
October 24, 2016 at 4:42 pm #298366No problem, Uplift uses a custom excerpt function, not the standard wp excerpt.
If you open the file
/uplift/swift-framework/core/sf-formatting.php
Locate this:
//$excerpt = wp_trim_words( get_the_excerpt(), $limit ); $excerpt = sf_content( $limit );
Replace with this:
$excerpt = wp_trim_words( get_the_excerpt(), $limit ); //$excerpt = sf_content( $limit );
Does that work better for your requirements?
November 17, 2016 at 11:14 pm #302437Hi, David.
My apologies for the delayed reply.
Thanks again for your help. We solved this issue otherwise, we don’t want to override these lines in the parent theme.
All the bestNovember 17, 2016 at 11:25 pm #302439Ok. Glad it’s sorted.
Thanks David.-Rui
-
Posted in: Uplift
You must be logged in and have valid license to reply to this topic.