Tagged: x
-
AuthorPosts
-
February 17, 2017 at 6:49 am #1374881
Jakub HParticipantIf 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?February 17, 2017 at 6:51 am #1374887
Jakub HParticipantThis reply has been marked as private.February 17, 2017 at 9:55 am #1375146
JoaoModeratorHi There,
Go to Appereance Customizer Blog.
You have this option there.
Hope it helps
Joao
February 22, 2017 at 6:48 am #1381234
Jakub HParticipantThe customizer limits by words, not characters
WORD = 1 word
WORD = 4 charactersFebruary 22, 2017 at 10:07 am #1381544
Nabeel AModeratorHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1374881 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
