-
-
Hi there,
There seems to be codesless builder shortcodes in my search results. How can I fix this?
https://1drv.ms/u/s!Ao66qgmoQOEBg6Ep8LRg1Euir2nHcw
Thanks!
-
-
Hello,
We have fixed this and will update the theme with this issue resolved.
For the moment you can fix this by replace the file \templates-parts\blog\parts\entry-content.php with the lines below:
<?php // Display excerpt if auto excerpts are enabled in the admin if ( codeless_get_mod( 'blog_excerpt', true ) && ( ! is_single() || codeless_get_from_element('blog_from_element', false) ) ) : if( get_the_excerpt() == '' ){ $content = get_the_content(); $content = preg_replace("~(?:\[/?)[^/\]]+/?\]~s", '', $content); if(is_search()){ preg_match_all('/\[cl_(.*?)\]/', $content, $matches_vc ); if ( isset($matches_vc[0]) && !empty($matches_vc[0]) ) return; } echo wp_trim_words( $content, codeless_get_mod('blog_excerpt_length', 40), ' [...]' ); } else { if(is_search()){ $content = get_the_content(); preg_match_all('/\[cl_(.*?)\]/', $content, $matches_vc ); if ( isset($matches_vc[0]) && !empty($matches_vc[0]) ) return; } the_excerpt(); } // If excerpts are disabled, display full content else : codeless_hook_post_content_begin(); $content = get_the_content(); $content = str_replace(']]>', ']]>', apply_filters( 'codeless_the_content' , $content )); $page_header = codeless_extract_page_header($content); $content = codeless_strip_shortcode_gallery( str_replace($page_header, '', $content ) ); if(is_search()){ preg_match_all('/\[cl_(.*?)\]/', $content, $matches_vc ); if ( isset($matches_vc[0]) && !empty($matches_vc[0]) ) return; } echo apply_filters('the_content', $content ); codeless_hook_post_content_end(); endif; wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'handel' ), 'after' => '</div>', 'link_before' => '<span class="page-number">', 'link_after' => '</span>', ));
Let us know.
Regards!
-
Viewing 2 reply threads
You must be logged in to reply to this topic.