Mich_P
Forum Replies Created
-
Marked as resolved.
Thanks a million. This was very helpful and solved my problem.
p.s. if I temporarily delete the content of the repeater template, it shows exactly the same content as with the repeater template (the 100 first posts). If I make changes (f.e. category names) in the repeater template, it does not display. This may point towards a problem, that no template is loaded (and only my box-loop.php is loaded). Any hints how to solve this problem?
Forum: Plugins
In reply to: [WP Night Mode] Images in Post Grid disappear in Night ModeAny hints?
Any ideas?
Thanks Michael, I very much appreciate your note and super helpful hint!
It seems the theme’s support sketched the wrong path by blaming CPT UI for the problems. I managed to make the menu work again (before you got a chance to look at it) – by just setting an option in the menu item panel “Scroll to an anchor” (I don’t use anchors but it seems to have solved the problem).Now only the grid-problem is left (which somehow seemed to be related to the menu-problem at the beginning, but now seems to be a separate problem). Thanks for telling me about this specific function – I forwarded an excerpt of your lines to the theme support, although I think I won’t get a lot of help there. Maybe I can fiddle with the .js file myself…. the strange thing is that everything works if the grid element links to an external website, & if it links to an internal single post page, it doesn’t.
Franky. Thanks a million – I upgraded a week ago and missed this new upgrade. Now everything works perfectly fine. Thanks again.
- This reply was modified 5 years, 11 months ago by Mich_P.
Hi. My version is 4.3.13 and the problem persists, unfortunately.
Yes, thank you. It seems to be not possible at the moment for WPbakery to work with wp typography. Thanks for your support.
p.s. I have this code in functions.php – which worked with the previous version of Grid Plus
// Changing excerpt more function wpse_allowedtags() { // Add custom tags to this string return '<script>,<style>,<br>,<em>,<i>,<ul>,<ol>,<li>,<a>,<p>,<img>,<video>,<audio>'; } if ( ! function_exists( 'wpse_custom_wp_trim_excerpt' ) ) : function wpse_custom_wp_trim_excerpt($wpse_excerpt) { $raw_excerpt = $wpse_excerpt; if ( '' == $wpse_excerpt ) { $wpse_excerpt = get_the_content(''); $wpse_excerpt = strip_shortcodes( $wpse_excerpt ); $wpse_excerpt = apply_filters('the_content', $wpse_excerpt); $wpse_excerpt = str_replace(']]>', ']]>', $wpse_excerpt); $wpse_excerpt = strip_tags($wpse_excerpt, wpse_allowedtags()); /*IF you need to allow just certain tags. Delete if all tags are allowed */ //Set the excerpt word count and only break after sentence is complete. $excerpt_word_count = 75; $excerpt_length = apply_filters('excerpt_length', $excerpt_word_count); $tokens = array(); $excerptOutput = ''; $count = 0; // Divide the string into tokens; HTML tags, or words, followed by any whitespace preg_match_all('/(<[^>]+>|[^<>\s]+)\s*/u', $wpse_excerpt, $tokens); foreach ($tokens[0] as $token) { if ($count >= $excerpt_length && preg_match('/[\,\;\?\.\!]\s*$/uS', $token)) { // Limit reached, continue until , ; ? . or ! occur at the end $excerptOutput .= trim($token); break; } // Add words to complete sentence $count++; // Append what's left of the token $excerptOutput .= $token; } $wpse_excerpt = trim(force_balance_tags($excerptOutput)); $excerpt_end = ' <a href="'. esc_url( get_permalink() ) . '">' . ' » ' . sprintf(__( 'Read more about: %s »', 'wpse' ), get_the_title()) . '</a>'; $excerpt_more = apply_filters('excerpt_more', ' ' . $excerpt_end); //$pos = strrpos($wpse_excerpt, '</'); //if ($pos !== false) // Inside last HTML tag //$wpse_excerpt = substr_replace($wpse_excerpt, $excerpt_end, $pos, 0); /* Add read more next to last word */ //else // After the content $wpse_excerpt .= $excerpt_more; /*Add read more in new paragraph */ return $wpse_excerpt; } return apply_filters('wpse_custom_wp_trim_excerpt', $wpse_excerpt, $raw_excerpt); } endif; remove_filter('get_the_excerpt', 'wp_trim_excerpt'); add_filter('get_the_excerpt', 'wpse_custom_wp_trim_excerpt');That’s the answer from WPBakery (Visual Composer), in case anybody else has similar problems:
“Hi,
Yes, our standard grids are loaded via ajax and it pulls the excerpt directly from the WordPress text editor due to which it does not support any customisation for excerpt output.
However, we do have many third party add-ons: https://wpbakery.com/addons/ which might have such a functionality as many of them have their own grids. Do make sure that you re-confirm the same with the respective add-on author, before making any purchase.
Thank you,”Not very enlightening, I know.
Thanks a lot for your analysis. I will try to further investigate with their support.
Best wishes.Forum: Plugins
In reply to: [Lightbox Plus Colorbox] Transparent Background Image for Lighbox, ProblemsPlease any hints?
Thank´s Jodzeee!!!! that worked perfectly!