ZedCryout Creations mastermind
The official Mantra 3.3.0 update released this week includes the fix for the missing comments issue.
Thank you all for suggesting corrections and for the patience.
Hi Zed – I tried replying to this thread last week but it’s not appearing – I even tried starting a new thread to highlight it. Now when I try it says duplicate content!
-
This reply was modified 6 years ago by
encoreservices. Reason: Additional info
Apologies if this has been covered or discussed. On my stock Nirvana Blog page, the Linkedin, Facebook, and Twitter icons are not displaying correctly. There’s a white square box in the center of the icons instead of the company’s symbol. These icons display correctly for me (in Chrome) when I open the post. I’m not sure how to troubleshoot this.

-
This topic was modified 6 years ago by
jgrafe. Reason: Change link to image
Hi, I wamt to have different backgroun images for every “content area” page but i cannot figure out how to do it in Mantra I have tried with several plugings but it is not wotking.
Any ideas please how to accomplish this!!!
Thanks in advance
I want to add a video I’ve uploaded to Text area 1 on the Presentation Page which I’ve been able to do using the code:
[video src="https://cswgardening.co.uk/wp-content/uploads/2020/08/myvideo.mp4"]
However it is left aligned when the rest of the Text area is centred and I’ve tried for about three hours to find a way to centre it including custom CSS, Widget / shortcode plugins and plain old HTML aligning and I can’t get it to centre.
Somebody must have done this in the past so any advice for a simple gardener would be much appreciated.
Perfect, Zed – Thanks. For my site, I found a .25 opacity was what I liked. A distinct roll-over effect that brightened the image but didn’t overshadow the feature image itself. It still unifies.
ZedCryout Creations mastermind
@StudioDangerboy: how are the videos embedded (which shortcode/widget/block)?
@tomppa28: JS optimization shouldn’t cause issues, it’s only the CSS that needs to be applied in the correct order (and optimizations sometimes mess with the order). But that really depends on what the plugin is actually doing under the hood.
ZedCryout Creations mastermind
The theme uses an icon font for its social icons. Did you modify this icon font or loaded your own icon font to add the extra icon for Telegram?
Without it, CSS is insufficient to perform such a change.
ZedCryout Creations mastermind
If I remember correctly, we identified the issue via the support service as being caused by a JavaScript error on the frontend.
ZedCryout Creations mastermind
The theme does not implement custom layout functionality for posts – it only has this feature for pages (via page templates).
To achieve the same result for posts you’d need to create a custom handling template (starting from the default single.php file) based on the template hierarchy and customize it to use the desired layout class and force display the desired sidebars.
ZedCryout Creations mastermind
Does the site have a general header image set? The search page appears to indicate that it doesn’t.
When a general header image is set, that image will be used on the blog section (this is a special section for which WordPress ignores any page attributes set on the placeholder page) and on the ‘portfolio’ section (which appears to be a standard posts archive, not a static page using Jetpack’s portfolio shortcodes).
The featured image in the header functionality is only available for individual posts and individual static pages that display their actual content (and are not placeholders).
ZedCryout Creations mastermind
The slider transitions cannot be entirely disabled, but you can set the animation type to fade, animation time to zero to make transitions instantaneous and also set the pause time to a large number of seconds (multiplied by 1000 as the value is entered in milliseconds).
Setting the pause time to zero makes the slider cycle continuously, which uses up CPU time.
ZedCryout Creations mastermind
We did consider such an option when we created the landing page’s functionality, but decided not to include it because we didn’t have many possible configuration values for it.
WordPress doesn’t have a popularity attribute – what criteria would be this based on? most views? (WordPress itself doesn’t log views), most comments? (comments are a separate post type).
We did, however, include a anima_boxes_query_args filter that can be used to directly customize the WP Query as needed. Below are the existing parameters that are passed along to the query:
$args = apply_filters( 'anima_boxes_query_args', array(
'showposts' => $options['anima_lpboxcount' . $sid],
'cat' => cryout_localize_cat( $cat ),
'ignore_sticky_posts' => 1,
'lang' => cryout_localize_code()
), $options['anima_lpboxcat' . $sid], $sid );
$custom_query->query( $args );
$sid is the section’s number (1, 2 or 3 for boxes).
ZedCryout Creations mastermind
The theme’s meta layout options are only applied to the standard pages (in the free edition) and extended to posts and jetpack portfolio posts in the Plus edition.
To activate the dashboard controls further, you’ll need to duplicate the respective meta functionality defined in includes/meta.php to apply to your custom post type slug. The frontend should get handled automatically as the existing code doesn’t check for post type.
ZedCryout Creations mastermind
The opacity of the featured images gradient overlay is not directly configurable. To customize it you can use the following custom CSS:
body .post-thumbnail-container:hover .featured-image-overlay::after {
opacity: 0.5;
}
Our Blog page (currently hidden but accessible via the footer menu) and Portfolio (Jetpack) pages will not display the featured image in the header section. I have tried a variety of images, many of which will work if used on any other static page.
I am using a child theme so any minor code tweaks will persist through updates. However, this problem is identical using the parent theme.
Thanks for any help!
-
This topic was modified 6 years ago by
flabeachbum. Reason: Added Clarity
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.
ZedCryout Creations mastermind
I am sorry for the slow reply, but we’ve been kept somewhat occupied for the past week with some personal matters.
We are aware of the issue since @abigal2 pointed it out and have already implemented the necessary correction in our development code to support WordPress’ 5.5 change making comments to always have a type.
Unfortunately, due to guideline changes and requirements imposed on repository themes since the last Mantra release, submitting the next update requires from us to perform extra changes in the theme and these will need some additional time to implement.
Until then, if you’re not comfortable with the manual edits described above I’ve added a theme zip that includes the necessary correction to our own archive.
You can use this plugin to update an already installed theme via manual zip uploads.
Alternatively WordPress 5.5 theoretically implements this feature as well, however it hasn’t worked in my tests (if it does work for you, then that’s great). Later edit: apparently this was an issue for sites hosted on Windows only and is fixed in 5.5.1.
-
This reply was modified 6 years ago by
Zed.
Hello!
I’m having an issue with the CTA button not showing on one of my slides, even though the fields are filled in. What makes it even more strange is that they are showing on other slides. Help!
Hi!
I am trying to aline my quotes to the left and right, but unfortunately, they all stay centred?
It is visible as left and right in the editor, but when I look at the preview they appear centred.
I use the ‘quote’ block in the visible editor.
Hope somebody can help me.
Kind regards,
Geke Woudstra
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).
Hi, the dropdown menu items do not appear on any browser on my tablet. When you click on the dropdown arrow nothing happens. They do work well on pc desktop or mobile phone.
Based on previous post replies in this forum, I checked my pages for errors but I could not find any. Pls help.
Sergio
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.
Hi Zed
I’ve migrated from Mantra to Esotera with Arcanum. Really like the gradient, though I had to fiddle with Accent colours to find ones that work for both links and overlays. (it would be nice to set Link colours distinctly)
My question – I’ve got the opacity for the gradient set for the banner but there isn’t an opacity setting for the Blog page roll-over effect. The opacity is so high it almost hides the post image. Is there a way to adjust this opacity with custom CSS?
Thanks!
I broke 50 pieces. Disabled splitting – didn’t help. Temporarily switched to another topic.
I’m also having the same. Thanks for sharing your experience, Rufus. Saves me the testing.
Note that Mantra still has the bug of displaying categories (poorly formatted) when set not to.
Website: davidya.ca
-
This reply was modified 6 years ago by
davidfb. Reason: update
ZedCryout Creations mastermind
From what I see in the plugin’s documentation, the image file needs to be a SVG for the plugin to do its job (it doesn’t replace regular jpg/png images with SVGs dynamically).
Did you assign a SVG image file as the header image of the site? The theme does not care about the file format that’s being used, it just retrieves and outputs the correct image URL as returned by WordPress.
Dear Zed,
Thank you for your reply. I did ty to add that to read:
if (isset($himgsrc) && ($himgsrc != ”)) : echo ‘
‘; endif;
But as you predicted it didn’t work. It’s a pity as the SVG functionality works with all other images including the sliderimages on the presentation page – but that’s not where the priest wants it, lol!
Thought it might work if i placed the interactive part as an image within the header widegt, but no joy.
The plugin automatically adds class=”style-svg” to the
tag. Hmmmm.
I suspect i may be near the limit of my understanding/competence. I don’t want to impose, but if there is an easy fix please let me know.
Thank you for your patience and assistance.
John
ZedCryout Creations mastermind
The line responsible with the output of the markup is the last one in that function
if (isset($himgsrc) && ($himgsrc != '')) : echo '<img id="bg_image" alt="' . get_bloginfo( 'name' ) . '" title="" src="' . esc_url( $himgsrc ) . '" />'; endif;
This is where you’d need to add the class attribute. But is this sufficient to make your SVG plugin work? Adding the classname there will not replace the source image used by the theme for the header.