Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Excerpt length on tag page
New Landing › How can we help? › Themeforest Theme Support › Dante › Excerpt length on tag page
- This topic has 30 replies, 3 voices, and was last updated 8 years by Rui Guerreiro – SUPPORT.
-
Posted in: Dante
-
November 2, 2016 at 10:18 am #299936
Hi, I am wondering where can I adjust the excerpt length on a tag page? When I click [edit] in the admin bar I just get into the tag settings where I can’t adjust the excerpt length. Any idea where to look for or where to adjust this?
November 2, 2016 at 10:33 am #299939Is that defaulting to 20 characters?
Please install and activate the supplied child theme, i’ll help you with a code snippet.
November 2, 2016 at 12:09 pm #299980Hello David,
I am not sure about the 20 characters but it’s way to short for our requirements. (See attached example)
The child-theme is already installed as we need to adjust also some other parts of the theme.
Waiting for your code snippet. ๐
Elias
Attachments:
You must be logged in to view attached files.November 2, 2016 at 12:36 pm #299986Hi,
If you paste this into the child theme
functions.php
file:http://pastie.org/private/cfbjkuaqwddqpvxyozuq
Locate and change this number:
$excerpt_length = "20"
.November 3, 2016 at 3:13 pm #300292Hi David, do I really have to include all of the code in the child functions.php file? Seems there is no shorter code right? ๐
November 3, 2016 at 3:17 pm #300295nope, no other way to do it with the existing code.
-Rui
November 3, 2016 at 3:21 pm #300296Great! It works but for some reason after the last (excerpt) word there is no “…” indicating that there is more text. Do you have a idea where or what to add to show this?
November 3, 2016 at 3:26 pm #300300I think before line 56
$post_item = $thumb_image = $thumb_width = $thumb_height = $bordered_thumb_width = $bordered_thumb_height = $video = $video_height = $bordered_video_height = $item_class = $link_config = $item_icon = $gallery_size = '';
you can add this one
$post_excerpt .= "...";
-Rui
November 3, 2016 at 3:38 pm #300307Thanks, this actually works but shows at another area. See the screenshot below.
Attachments:
You must be logged in to view attached files.November 3, 2016 at 4:07 pm #300323Do you have a link to that page?
-Rui
November 3, 2016 at 4:30 pm #300335Unfortunately the page is still in development and not accessible from the internet. Not sure if it helps to post that particular snippet of source code.
<li class="blog-item col-sm-12 post-4346 post type-post status-publish format-standard hentry category-blog tag-automation tag-randomization tag-regression-testing tag-squish tag-tip-of-week tag-workflow"> <div class="mini-blog-item-wrap"><div class="blog-details-wrap"><h3 itemprop="name headline" class="entry-title"><a href="http://foo/blog/squish-tip-of-the-week-alter-test-scenario-workflow-to-increase-test-effectiveness/">Squish tip of the week: Alter test scenario workflow to increase test effectiveness</a></h3><div class="blog-item-details vcard author">By <span itemprop="author" class="fn">Amanda Burma</span> on <span class="date updated">June 25, 2014</span></div><div class="excerpt" itemprop="description"><p>Many times tests are implemented using a single approach to validate a desired result. Do users use the application the same way? Changes are high they don’t. Consider enhancing your automated testing to incorporate altering workflows to validate the same end result. Challenge: Come up with (minimum) 3 ways a test can confirm the same desired result Break each approach </p>...</div><div class="comments-likes"></div><meta itemprop="datePublished" content="2014-06-25"/></div></div> </li>
Please let me know if you need any other information…
November 4, 2016 at 6:18 pm #300573Well the
...
need to be within the</p>
. We really could do with a staging server/FTP details when you can get this up?– David.
November 7, 2016 at 12:26 pm #300746Hello David, the layout and where the “…” appears has nothing to do if the site is on staging or not. It’s triggered in the code you gave me and I think in there is the solution to find as well. Or what is your approach to this? I just don’t get it…
November 8, 2016 at 3:34 pm #301025Are you using the default Excerpt or the SF Excerpt? Reason I ask for staging details is so I can check small details like this.
Depending on which one you use, it will use a different function. What you are looking to do already exists if using the SF Custom excerpt:
November 22, 2016 at 6:39 pm #303063Hi David and Rui,
I am using the default Excerpt. Not filling anything in by hand. But finally some good news, the website is online and accessible at https://froglogic.com
Maybe this will help to solve this issue ๐
Elias
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.