Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #354956

    Hello,

    Is there any way to make do change the length of the excerpt in this widget? as for now, it’s too long.
    Have a look on the right side on the webpage.

    Regards,

    Mikael Svensson

    #355464

    Hi mikaelsv!

    Add this to your custom CSS.

    .news-excerpt > p {
        height: 39px;
        overflow: hidden;
    }

    Best regards,
    Elliott

    #355556

    Hi Elliott,

    Tried that but nothing happened!?

    #355975

    Hey!

    Here is what I see in your source code. The caret seems to be missing.

    .news-excerpt p {
    height: 19px;
    overflow: hidden;
    } 

    Delete your code and then type it out again to see if that works. Also try using !important like so.

    .news-excerpt > p {
    height: 19px !important;
    overflow: hidden !important;
    }

    Regards,
    Elliott

    • This reply was modified 9 years, 12 months ago by Elliott.
    #356019

    Thank you! but I would like to have a “read more” after my desired height. Is that possible?

    #356570

    Hi!

    You can framework > php > class-framework-widgets.php, find this code on line 558:

    the_excerpt();
    

    Below, add this code:

    echo "<a class='news-read-more' href='".get_the_permalink($the_id)."'>Read More</a>";
    

    Please create a change log of this changes in case you update the theme.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.