Forum Replies Created
-
Author
-
August 7, 2018 at 16:31 in reply to: Where to edit excerpt length and the “Read More” text on button after excerpt? #205689
Radu
ModeratorHi,
1.
The limit can be changed by addind the next codes to /wp-content/themes/kleo-child/functions.php
Replace 350 with your desired number or characters
Code below:
COPY CODEif ( ! function_exists( 'kleo_excerpt' ) ) { function kleo_excerpt( $limit = 50, $words = false ) { /*Force excerpt length*/ $limit = 350; $from_content = false; $excerpt_initial = get_the_excerpt(); if ( $excerpt_initial == '' ) { $excerpt_initial = get_the_content(); $from_content = true; } $excerpt_initial = preg_replace( '<code>\[[^\]]*\]</code>', '', $excerpt_initial ); $excerpt_initial = strip_tags( $excerpt_initial ); /* If we got it from get_the_content -> apply length restriction */ if ( $from_content ) { $excerpt_length = apply_filters( 'excerpt_length', $limit ); $excerpt_initial = wp_trim_words( $excerpt_initial, $excerpt_length, '' ); } if ( $words ) { $excerpt = explode( ' ', $excerpt_initial, $limit ); if ( count( $excerpt ) >= $limit ) { array_pop( $excerpt ); $excerpt = implode( " ", $excerpt ) . '...'; } else { $excerpt = implode( " ", $excerpt ) . ''; } } else { $excerpt = substr( $excerpt_initial, 0, $limit ) . ( strlen( $excerpt_initial ) > $limit ? '...' : '' ); } return '<p>' . $excerpt . '</p>'; } } function kleo_new_excerpt_length( $length ) { return 350; }Child theme needs to be installed and activated.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
They are looking good for me now

Did you had solved meanwhile ?
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorOk, let me know
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi, check twenty seventeen theme to can see the default behavior.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 6, 2018 at 17:32 in reply to: Probably a bug: Not displaying the forum answer of another user #205582Radu
ModeratorHi,
Did you have any kind of cache or speed optimization feature ? or cloudflare service ?
Caching it might be the reason so turn if off and check if you still are able to reproduce it.
Can you reproduce that issue using default wp theme ?
Let me know
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
I see now, all changes that you need may be done by pasting and modifying exacly as you need the next code
code : https://pastebin.com/raw/7xaPyPsv
So the code will be pasted under wp-content/themes/sweetdate-child/functions.php
So there i don’t have specific stepts to offer for points 1,2 and 3 since it’s a little custom.
The changes will be maden in the highlited funciton in functions.php from child.

You can inspire from here to can pull some profile fields informations
https://archived.seventhqueen.com/sweetdate/article/add-advanced-search-members-directory
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
In first instance please try if the exactly same behavior you encounter using default wp theme.
Depends by this yes or not.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Chrome on mac

Able to open the dropdown and also to scroll
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
That snippet can be easily overwritten by copying the function kleo_fb_footer with this additional check if ( ! function_exists( ‘kleo_fb_footer’ ) )
So paste the next code in functions.php from child theme and perform inside the changes that you need.
code : https://pastebin.com/raw/ntTtNi9wCheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Just add also this css and let me know
COPY CODE@media (min-width: 992px) { #main-container { max-width: 1200px !important; } }You can remove the last Kieran CSS
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorGreat
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Just use this css and change the red color with you desired color code or color name
COPY CODE.sidebar.sidebar-right { background: red !important; }For the left sidebar here’s the code
COPY CODE.sidebar.sidebar-left { background: green !important; }The css will be added to wp-admin -> theme options -> General settings -> Quick CSS
Let me know
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts

