Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1374881
    Jakub H
    Participant

    If I understand it correctly I need to place this to functions.php

    
    "function get_excerpt(){
    $excerpt = get_the_content();
    $excerpt = preg_replace(" (\[.*?\])",'',$excerpt);
    $excerpt = strip_shortcodes($excerpt);
    $excerpt = strip_tags($excerpt);
    $excerpt = substr($excerpt, 0, 40);
    $excerpt = substr($excerpt, 0, strripos($excerpt, " "));
    $excerpt = trim(preg_replace( '/\s+/', ' ', $excerpt));
    $excerpt = $excerpt.'... <a href="'.$permalink.'">more</a>';
    return $excerpt;
    }"

    Done… then I need to place somewhere
    <?php echo get_excerpt(x); ?>
    to call the function, but I can’t find where?

    #1374887
    Jakub H
    Participant
    This reply has been marked as private.
    #1375146
    Joao
    Moderator

    Hi There,

    Go to Appereance Customizer Blog.

    You have this option there.

    Hope it helps

    Joao

    #1381234
    Jakub H
    Participant

    The customizer limits by words, not characters

    WORD = 1 word
    WORD = 4 characters

    #1381544
    Nabeel A
    Moderator

    Hi again,

    Thanks for writing in! Regretfully this isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

    Thanks for understanding. Take care!

  • <script> jQuery(function($){ $("#no-reply-1374881 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>