Forum Replies Created
-
AuthorPosts
-
August 23rd, 2020 at 23:39 in reply to: Comments not appearing since upgrading to WordPress 5.5 #106773abigal2ParticipantAugust 22nd, 2020 at 11:20 in reply to: Comments not appearing since upgrading to WordPress 5.5 #106739abigal2Participant
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.
August 19th, 2020 at 00:02 in reply to: Comments not appearing since upgrading to WordPress 5.5 #106628abigal2ParticipantDo 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).
August 15th, 2020 at 12:41 in reply to: Comments not appearing since upgrading to WordPress 5.5 #106542abigal2ParticipantJust 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.
August 13th, 2020 at 14:03 in reply to: Comments not appearing since upgrading to WordPress 5.5 #106493abigal2ParticipantI 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.
-
AuthorPosts