• Resolved Allanon27

    (@allanon27)


    Hi All,

    I spent many hours trying to find a solution for this. I tried the one which is in the wordpress codex and multiple ones on the forum, but none of them worked.
    The […] is still there.

    Any ideas how to remove it?

    Thanks in advance!

    Best Wishes,
    Matt

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Allanon27

    (@allanon27)

    Or how can I change it to only the 3 dots?

    Thanks in advance!

    Thread Starter Allanon27

    (@allanon27)

    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.

    Thread Starter Allanon27

    (@allanon27)

    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… πŸ™

    Thread Starter Allanon27

    (@allanon27)

    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..! πŸ™‚

    Thread Starter Allanon27

    (@allanon27)

    Thanks Man! Works perfectly! πŸ™‚

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘How to make the 3 dots and 2 brackets disappear from the end of the excerpt?’ is closed to new replies.