Or how can I change it to only the 3 dots?
Thanks in advance!
Hi Alchymyth,
Thanks for the quick answer!
Yes, I tried that, and also other ones from the forum, but none of them worked…
maybe your theme is already using the filter in its functions.php?
or the dots are hard-coded into the tempalte?
what theme are you using?
possibly, a link to your site might also help to illustrate the issue.
Hi Man,
No my theme doesn’t use the filter, and the dots are not hard-coded.
It is my own template. I started from a Blank Template though.
Still no solution… π
Ok guys. Maybe I overlook something but still cannot make those 3 dots to disappear:
Here is my functions.php code:
<?php
// Add RSS links to <head> section
automatic_feed_links();
// Load jQuery
if ( !is_admin() ) {
wp_deregister_script('jquery');
wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"), false);
wp_enqueue_script('jquery');
}
// Clean up the <head>
function removeHeadLinks() {
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');
}
add_action('init', 'removeHeadLinks');
remove_action('wp_head', 'wp_generator');
// Declare sidebar widget zone
if (function_exists('register_sidebar')) {
register_sidebar(array(
'name' => 'Sidebar Widgets',
'id' => 'sidebar-widgets',
'description' => 'These are widgets for the sidebar.',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>'
));
}
if (function_exists('register_nav_menus')) {
register_nav_menus(
array(
'main_nav' => 'Main Navigation Menu'
)
);
}
// Featured image support
add_theme_support( 'post-thumbnails' );
// Summary Length
function new_excerpt_length($length) {
return 25;
}
add_filter('excerpt_length', 'new_excerpt_length');
//This should remove the 3 dots at the end of the excerpt
function new_excerpt_more($more) {
return '[.....]';
}
add_filter('excerpt_more', 'new_excerpt_more');
// THIS INCLUDES THE THUMBNAIL IN OUR RSS FEED
function insertThumbnailRSS($content) {
global $post;
if ( has_post_thumbnail( $post->ID ) ){
$content = '' . get_the_post_thumbnail( $post->ID, 'full', array( 'alt' => get_the_title(), 'title' => get_the_title(), 'style' => 'float: left;' ) ) . '' . $content;
}
return $content;
}
add_filter('the_excerpt_rss', 'insertThumbnailRSS');
add_filter('the_content_feed', 'insertThumbnailRSS');
?>
Any suggestions?
Hi, just add this to your functions.php
function excerpt_abooze($text) {
return str_replace('[...]', 'Allanon\'s text goes here...', $text); }
add_filter('the_excerpt', 'excerpt_abooze');
Enjoy..! π
Thanks Man! Works perfectly! π