Okay
  Public Ticket #2142936
excerpt cannot work normally
Open

Comments

  • firsthatch2018 started the conversation

    Hi,

    I found that the excerpt cannot work normally. There is a strange sign in the end of excerpt.

    Could you help me with this issue?

    Best regards,

    Lin

  •  441
    Attila replied

    Hello Lin,

    Thank you for getting in touch with us. My name is Attila and I'm happy to assist you today. I appreciate your patience while we've been working towards your ticket.

    Normally, the excerpt does not display any extra character at the end of the text. It is most likely related to the character set/font you are using. There is likely a character in the source of the excerpt placeholder that cannot be interpreted, thus the 'strange sign'.

    Could you please try out a different post with a different excerpt to see if the results are the same ? 

    Best Regards,
    Attila | Kreatura Support Team

  • firsthatch2018 replied

    Hi

    Thank you for the reply.

    I tried, but the strange sign shows on every post.

    Could you help me check this issue?

  •   John replied privately
  • firsthatch2018 replied

    Hi John,

    Thank you for the reply.

    I got it. I will take this version as our solution.

    Btw, is it possible to indicate thumbnail to specific thumbnail?

    For example, the default thumbnail is called thumbnail in 150*150 px. To meet our demand, we would like to create a new thumbnail called home-slide. Then, when I use thumbnail in Layerslider to create post slide, I would like to indicate thumbnail to the one I create.

    Look forward to your reply.

    Best regards,

    Lin

  •  21
    John replied

    I'm not sure what do you mean on the thumbnail question. Are you looking for a way to change the default 150*150 px thumbnail size? If so, you can do that by navigating Settings -> Media on your WP admin dashboard. 

    Best Regards,
    John | Kreatura Dev Team

  • firsthatch2018 replied

    I create another thumbnail and name it home-slide by adding code in function.php.

    I would like to utilize this thumbnail for the post slide. However, I found that the thumbnail tag in LayerSlide is indicated to Wordpress default thumbnail.

    If there is any solution to utilize the thumbnail I created for the post slide, it will be great.

  •  21
    John replied

    So, are you using add_image_size() or set_post_thumbnail_size() to generate a custom sized thumbnail, and want to use that version in LayerSlider with the [thumbnail] dynamic post content placeholder? Unfortunately, the only way for that right now is to edit the plugin files. 

    If that's okay for you, here's a quick guide where you should start. Open and edit /wp-content/plugins/LayerSlider/classes/class.ls.posts.php file. Change the highlighted areas in the code to your new thumbnail name.

    Line 63: $ret[$key]['thumbnail'] = $this->getFeaturedImage( $val->ID, 'thumbnail' );
    Line 64: $ret[$key]['thumbnail-url'] = $this->getFeaturedImageURL( $val->ID, 'thumbnail' ); 

    Line 127: $markup = $this->getFeaturedImage( $this->post->ID, 'thumbnail' );
    Line 134: $url = $this->getFeaturedImageURL( $this->post->ID, 'thumbnail' );

    Best Regards,
    John | Kreatura Dev Team

  • firsthatch2018 replied

    Hi John,

    I have already done as you mentioned in the reply. 

    Hope to utilize custom thumbnail without revising code in the future.

  •  21
    John replied

    Lin,

    We're also planning to improve this behavior and we will figure something out in a future update.

    Best Regards,
    John | Kreatura Dev Team

  • firsthatch2018 replied

    Hi John,

    Is there a solution to add ellipsis (...) after the excerpt?

    For example, the current excerpt is "I like to do ". If it is possible, I would like to make it into "I like to do ...".

    Look forward to your reply.

    Best regards,

    Lin

  •  21
    John replied

    Hi Lin,

    You can mix dynamic and static content, so you can enter "[excerpt]..." (without the quotes). It's a simple solution if you know the length in advance. A better and dynamic approach is to enter 

    overflow: hidden; text-overflow: ellipsis; 
    

    to the layer's Custom CSS field under its Styles tab. This way the length will always adapt to the available free space. This exact code can be used for a single line of text when the Word-wrap option is disabled and you specified a fixed width for the layer. I'll make sure that the next update will automatically add ellipsis when the text is clamped.

    Best Regards,
    John | Kreatura Dev Team

  • firsthatch2018 replied

    OK. I got it.

    Thank you very much.