Forum Replies Created
-
AuthorPosts
-
August 13th, 2020 at 11:12 in reply to: Comments not appearing since upgrading to WordPress 5.5 #106491
Rufus
ParticipantI’ve found a workaround which fixed it for me.
The problem appears to be with the WP_Comment object.
It has an array key called “comment_type”.Mantra is looking for a comment_type which is which is an empty string (”).
It looks like WordPress 5.5 has set a specific value for comment_type, the value being “comment”.
My workaround involves editing one of the Mantra files (this can probably be done more elegantly in functions.php but I just wanted to demonstrate the problem).
This is for Mantra 3.2.0 by the way.
File is wp_content/themes/mantra/includes/theme-comments.php
Line 22 is
case ”:
Add a line after this with:
case ‘comment’:This will take both comment_type values into account and treat them the same.
-
This reply was modified 4 years ago by
Rufus.
August 13th, 2020 at 10:56 in reply to: Comments not appearing since upgrading to WordPress 5.5 #106488Rufus
ParticipantI have a workaround which fixed it for me.
The problem appears to be with the WP_Comment object.
It has an array key called “comment_type”.Mantra is looking for a comment_type which is which is an empty string (”).
It looks like WordPress 5.5 has set a specific value for comment_type, the value being “comment”.
My workaround involves editing one of the Mantra files (I’m not sure if this can be done somehow in functions.php – I suspect not).
This is for Mantra 3.2.0 by the way.
File is wp_content/themes/mantra/includes/theme-comments.php
Line 22 is
case ”:
Add a line after this with:
case ‘comment’:This will take both comment_type values into account and treat them the same.
August 12th, 2020 at 23:34 in reply to: Comments not appearing since upgrading to WordPress 5.5 #106481Rufus
ParticipantInteresting. I have comments for some posts which are split over multiple pages (I can’t remember how pagination is done, it may be a plug-in – but I did try disabling plugins).
in my case, with WordPress 5.5 and Mantra 3.2.0, users can comment, but once submitted the comment does not appear under the post.
An excerpt of the comment does appear in a widget (provided by the “Decent Comments” plugin) in the sidebar though, so whatever Decent Comments is doing to pull the comments seems to be different to Mantra.Rufus
ParticipantThanks! Will take a look.
Rufus
ParticipantClosest I can get is the rather suspiciously simple:
@media (max-width: 800px) {
img#bg_image {
content: url(“/path/to/my/replacement/image”);
}
}But this is, I think, just putting the image in front of the existing one. Both are being requested on browser widths at and below 800px when I check in a web inspector.
Rufus
ParticipantHi – yes. Previously with 2.6.1.1 (which I rolled back to) I disabled responsiveness and enable Jetpack’s Mobile module (our users seem to like it for some reason though I’d prefer personally just to use one responsive theme!). With Mantra 3.x the Jetpack mobile theme never seems to get triggered.
Rufus
ParticipantYep, I’ve had this issue. I didn’t have examples of heading sizes before the upgrade so basically looked at the post title size I have set (which is an h2, and set to 24px in my case) and then looked at the headings I see in Visual mode in the TinyMCE editor relative to that 24px and took those, and added this to custom CSS. It’s a hack and I don’t like it but it looks better. Your preferred font sizes will differ to mine of course.
This is my workaround and I suspect Cryout’s will be better..entry-content h1 {
font-size: 32px;
}.entry-content h2 {
font-size: 24px;
}.entry-content h3 {
font-size: 18px;
}.entry-content h4 {
font-size: 16px;
}.entry-content h5 {
font-size: 13px;
}.entry-content h6 {
font-size: 10px;
}Rufus
ParticipantHi – I’ve updated to 3.0.4 and it’s working fine now! I’m not sure why but the one change I made was to put in a functions.php with the newly-recommended enqueueing style so perhaps this was it (I’m sure I tried that earlier but… ah well!).
Thanks for your help!
Rufus
ParticipantHi – currently the site is using ‘old style’ enqueueing of the parent theme but I did try with the newer style too. I’m pretty sure I tried with no child theme as well. I’ll have to give the update another try at a quiet hour. There are no modified theme files in the child theme, just a few add_action & add_filter hooks.
Old style is:
<?php
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
}New style tried is:
<?php
// enqueue parent theme styling
function child_parent_styling(){
wp_enqueue_style( ‘mantra-style’, get_template_directory_uri() . ‘/style.css’, NULL, _CRYOUT_THEME_VERSION ); // main
style.css
if (is_rtl()) wp_enqueue_style( ‘mantra-rtl’, get_template_directory_uri() . ‘/resources/css/rtl.css’, NULL, _CRYOUT_T
HEME_VERSION ); // rtl style.css
wp_enqueue_style( ‘mantra-child’, get_stylesheet_directory_uri() . ‘/style.css’ ); // child style.css
}
add_action(‘wp_enqueue_scripts’,’child_parent_styling’);-
This reply was modified 6 years ago by
Rufus.
Rufus
ParticipantThis reply is private.Rufus
ParticipantI’m just using the Default Template for each page. In Mantra settings my layout is set to a sidebar on the right. Front page is a blog page so no static page. Actually now I think about it I might not have checked static pages or post pages, possibly only the front (blog) page. No, I’m sure I checked at least one post page and it was showing the sidebar below content. I don’t really want to try it again as it’s a live and quite busy site, with a lot of comments so rollback from a backup is quite slow.
Rufus
ParticipantI’m having the same issue, sidebar (on right) shows below content. Can’t figure what’s causing it. I use a child theme but tried removing all customizations and no joy. I’ve even copied the site elsewhere (using WP Migrate DB to preserve theme config) and bizarrely the copied site seems to work fine so I’ve no idea what’s going on. I tried as much as possible to eliminate the problem being caching of some description. Maybe I should copy the site and then re-import it…
-
This reply was modified 4 years ago by
-
AuthorPosts