abigal2

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Comments not appearing since upgrading to WordPress 5.5 #106773
    abigal2
    Participant

    Thank you for this clarification, @Zed.


    @Parre
    –I have downloaded the zip file update, and verified that it incorporates the same change to the theme-comments.php file that I made — so following the instructions that @Zed gave for upgrading the theme should work for you.

    in reply to: Comments not appearing since upgrading to WordPress 5.5 #106739
    abigal2
    Participant

    If you are not comfortable editing the theme files, you might want to just wait for an upgrade. I contacted the theme developer via the comments form, and have received this response:

    Thank you informing us of this issue. We will release an update for Mantra as soon as possible to address it.

    They didn’t specify a date, but the changes I made were based on something they already have in another theme, so I don’t think it will take them long.

    If you do want to make changes, I would suggest you follow the instructions that @Rufus provided in post-106488, and simply add this line immediately after line 22. (So it would be a new line #23).
    case 'comment' :

    You’ll find the theme-comments.php template under the “includes” section of the theme editor.

    in reply to: Comments not appearing since upgrading to WordPress 5.5 #106628
    abigal2
    Participant

    Do you have FTP access? You can edit directly through the theme editor in WordPress– I prefer using SFTP for edits simply because it makes it easier for me to make a backup copy of the original file.

    I think that a functions.php modification would be preferable, but I personally wasn’t sure how to write one. Given that the Mantra theme hasn’t been updated since May 2019, there’s probably no downside to editing the theme file itself. (I’m sure that if and when a theme update is pushed out, it will address this issue).

    in reply to: Comments not appearing since upgrading to WordPress 5.5 #106542
    abigal2
    Participant

    Just thought I would share — I have modified the mantra/includes/theme-comments.php file, but I did it slightly differently than @Rufus suggested. I used the equivalent template of the Kahuna theme as a model — this can be found here –
    https://themes.svn.wordpress.org/kahuna/1.6.1.1/includes/comments.php – I just chose that one because it is the most recently updated free Cryout theme.

    So now my Mantra template contains this switch statement:

    function mantra_comment( $comment, $args, $depth ) {
    	$GLOBALS['comment'] = $comment;
    	switch ( $comment->comment_type ) :
    		case 'pingback'  :
    		case 'trackback' :
    		?>
    			<li class="post pingback">
    			<p><?php _e( 'Pingback: ', 'mantra' ); ?><?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'mantra'), ' ' ); ?></p>
    		<?php
    		break;
    		case '' :
    		default :
    	?>

    The pingback/trackback switch statements were at lines 55-60 of the original Mantra template. I moved them to the beginning of the switch statement following the Kahuna example, and also because I just thought it would be cleaner to have the default spec at the end.

    The main difference with my solution is that I am using “default” rather than “case ‘comment'”. Probably doesn’t matter … just a matter of coding preference.

    in reply to: Comments not appearing since upgrading to WordPress 5.5 #106493
    abigal2
    Participant

    I have this problem too. The fix suggested by Rufus did not work for me — so I ended up simply rolling back to WordPress 5.4.2 and restoring the database from before the upgrade. I’m hoping this will be corrected soon.

Viewing 5 posts - 1 through 5 (of 5 total)