WordPress.org

Ready to get started?Download WordPress

Forums

SuevaFree
Remove "read more" and show the entire post (10 posts)

  1. Deckey
    Member
    Posted 9 months ago #

    Hello everyone!
    I've read something about the code for remove the "Read More" button, but still doesn't resolve my problem.
    I would like to show the entire post, without the "Read More" link.
    I saw I'm able to remove the button, but still remain only 5 rows about my post.
    How can I do for show the entire post?
    I have the SUEVA theme and I've found something about "read more" in my main.php:

    /*-----------------------------------------------------------------------------------*/
    /* Custom excerpt more */
    /*-----------------------------------------------------------------------------------*/   
    
    function wip_new_excerpt_more( $more ) {
    global $post;
    return '<a class="button" href="'.get_permalink($post->ID).'" title="More">  ' . __( "Read More","wip") . ' </a>';
    
    }
    
    add_filter('excerpt_more', 'wip_new_excerpt_more');

    Instead in my index.php there's nothing about that:

    <?php 
    
    	get_header();
    
    	if ( (!wip_setting('wip_home')) || (wip_setting('wip_home') == "home-default") ) {
    
    		get_template_part('home-default');
    
    	} else if (wip_setting('wip_home') == "home-blog") {
    
    		get_template_part('home-blog');
    
    	} else {
    
    		wip_masonry(wip_setting('wip_home'));
    
    	}
    
    	get_template_part('pagination');
    
    	get_footer(); 
    
    ?>

    Could you help me?
    Thank you!

    Paola

  2. Samuel
    Member
    Posted 9 months ago #

    Hey,

    I am also trying to fix this did you have any luck? Going by the threads here I don't think developer is interested in free support.

  3. Deckey
    Member
    Posted 9 months ago #

    Hello Samuel.
    No, I couldn't find any solution too! :-(

  4. Samuel
    Member
    Posted 9 months ago #

    Hi Deckey,

    I found a plugin and used the plugin instead. I don't know if you want the plugin, its free and available on WP.

    Regards

  5. Deckey
    Member
    Posted 9 months ago #

    Ohhh Thank you so much! It's works now?

  6. PHPGator
    Member
    Posted 8 months ago #

    Took a little bit of digging, but here's how to do it:

    Go to your \core\post-formats\standard.php file.

    On line 38 (on my version), there is a line that says:

    the_excerpt();

    Simply change to:

    the_content();

    This should also remove the "Read More" button automatically as that is tied to the "the_excerpt()" function built into WordPress.

  7. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

    Note that if you modify theme files, your changes will be lost when the theme is updated. Much better and widely recommended to make changes using a Child Theme - http://codex.wordpress.org/Child_Themes

  8. alexvtn
    Member
    Theme Author

    Posted 8 months ago #

    Hi, i'm the developer of Sueva theme, sorry if i did not answered before, but i've seen only now these requests of support for the free version.

    You can replace, in all files into sueva/post-formats/

    if ((is_home()) || (is_category()) || (is_page() )):
    
    		the_excerpt(); 
    
    	else:

    to

    if ((is_home()) || (is_category()) || (is_page() )):
    
    		the_content(); 
    
    	else:

    But, for any update of Sueva, you will be lost these changes and is preferible using a Child Theme.

    Best regards

    Alex

    WPinProgress

  9. frenchlily
    Member
    Posted 3 months ago #

    Is it something you can change only on the paid version? I didn't find the line in my core/post-formats.php from my dashboard editor (see below for the text I have). I tried directly on my file (the one on my cPanel file manager) and changing that line changed everything... not just the "read more" button.

    Thanks for your help! I love that theme and that's the only thing so far that I would change.

    /**
    * Wp in Progress
    *
    * @author WPinProgress
    *
    * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
    * It is also available at this URL: http://www.gnu.org/licenses/gpl-3.0.txt
    */

    function suevafree_postformat_function() {

    if ( get_post_type( get_the_ID()) == "page" ) {
    $postformats = "page";
    }

    else if ( !get_post_format() ) {
    $postformats = "standard";
    }

    else {
    $postformats = get_post_format();
    }

    get_template_part( 'core/post-formats/'.$postformats );

    }

    add_action( 'suevafree_postformat','suevafree_postformat_function', 10, 2 );

    ?>

  10. alexvtn
    Member
    Theme Author

    Posted 3 months ago #

    Hi, download the last update, you can disable the read more button, from the option panel

    Best regards

    Alex

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.