New Landing How can we help? Themeforest Theme Support Dante Excerpt length on tag page

Viewing 15 posts - 1 through 15 (of 31 total)
  • Posted in: Dante
  • #299936
    3lias
    Member
    Post count: 128

    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?

    #299939
    David Martin – Support
    Moderator
    Post count: 20834

    Is that defaulting to 20 characters?

    Please install and activate the supplied child theme, i’ll help you with a code snippet.

    #299980
    3lias
    Member
    Post count: 128

    Hello 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.
    #299986
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    If you paste this into the child theme functions.php file:

    http://pastie.org/private/cfbjkuaqwddqpvxyozuq

    Locate and change this number: $excerpt_length = "20".

    #300292
    3lias
    Member
    Post count: 128

    Hi David, do I really have to include all of the code in the child functions.php file? Seems there is no shorter code right? ๐Ÿ˜‰

    #300295
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    nope, no other way to do it with the existing code.

    -Rui

    #300296
    3lias
    Member
    Post count: 128

    Great! 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?

    #300300
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    I 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

    #300307
    3lias
    Member
    Post count: 128

    Thanks, this actually works but shows at another area. See the screenshot below.

    Attachments:
    You must be logged in to view attached files.
    #300323
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Do you have a link to that page?

    -Rui

    #300335
    3lias
    Member
    Post count: 128

    Unfortunately 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…

    #300573
    David Martin – Support
    Moderator
    Post count: 20834

    Well the ... need to be within the </p>. We really could do with a staging server/FTP details when you can get this up?

    – David.

    #300746
    3lias
    Member
    Post count: 128

    Hello 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…

    #301025
    David Martin – Support
    Moderator
    Post count: 20834

    Are 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:

    #303063
    3lias
    Member
    Post count: 128

    Hi 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

Viewing 15 posts - 1 through 15 (of 31 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