22315 comments found.
Hey AJ, just a quick question: What would be the best way to have a taxonomy filter tree showing only parent terms, which can be expanded to show the child terms.
I want to create a filter like element for the WooCommerce products page, which I create with post cards. Neither the current “navigation/ filter” wbakery element nor the https://totalwptheme.com/docs/snippets/advanced-ajax-filter-example/ do support such an accordion function. The list would be too long in my case.
Thanks in advance 
Hi,
If you want an AJAX filter than you would want to use the advanced ajax function – https://totalwptheme.com/docs/snippets/advanced-ajax-filter-example/
To create your “accordion” you would do just need to add the proper HTML. I assume if you want to display parents that can be expanded to show children you are probably going to be adding this to a sidebar so it’s vertical and you probably don’t want the parent categories filterable. So the best way is using the modern html details element – https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/details
Here is a basic example based on my snippet (I actually had chatGPT write this for me):
function woo_cards_product_filter_shortcode( $atts ) {
if ( ! function_exists( 'totalthemecore_call_non_static' ) ) {
return;
}
// Load AJAX filter scripts
totalthemecore_call_non_static( 'Vcex\Ajax', 'enqueue_scripts' );
// Get target grid ID from shortcode attribute
$target = isset( $atts['target'] ) ? $atts['target'] : '';
if ( empty( $target ) ) {
return;
}
// Get all parent categories in 'product_cat' taxonomy
$parent_terms = get_terms( [
'taxonomy' => 'product_cat',
'hide_empty' => false,
'parent' => 0,
] );
ob_start();
?>
<div class="woo-cards-product-filter" data-vcex-ajax-filter="1" data-vcex-ajax-filter-target="<?php echo esc_attr( str_replace( '#', '', $target ) ); ?>" data-vcex-ajax-filter-multiple="0">
<?php if ( ! empty( $parent_terms ) && ! is_wp_error( $parent_terms ) ) : ?>
<?php foreach ( $parent_terms as $parent ) :
// Get child terms
$child_terms = get_terms( [
'taxonomy' => 'product_cat',
'hide_empty' => false,
'parent' => $parent->term_id,
] );
if ( empty( $child_terms ) || is_wp_error( $child_terms ) ) {
continue;
}
?>
<details class="woo-filter-group">
<summary><?php echo esc_html( $parent->name ); ?></summary>
<ul class="wpex-mt-5 wpex-ml-10 wpex-list-none">
<?php foreach ( $child_terms as $child ) : ?>
<li><a href="#" class="theme-txt-link" data-vcex-type="product_cat" data-vcex-value="<?php echo esc_attr( $child->term_id ); ?>">
<?php echo esc_html( $child->name ); ?>
</a></li>
<?php endforeach; ?>
</ul>
</details>
<?php endforeach; ?>
<?php endif; ?>
<!-- Reset Button -->
<button class="theme-button" data-vcex-type="reset">Reset Filter</button>
</div>
<?php
return ob_get_clean();
}
add_shortcode( 'woo_cards_product_filter', 'woo_cards_product_filter_shortcode' );
Usage:
[woo_cards_product_filter target="YOUR_GRID_ID"]
Sample video: https://a.cl.ly/Kou5lQrJ
- AJ
ps: I think using the details element is better, but you could instead modify this code to use the theme’s vcex_toggle_group and vcex_toggle_shortcodes for the output. Really you can anything, since it’s just basic HTML – the important thing for the filters to work is the data attributes.
ps: I edited the snippet above, there was an extra ”#” in data-vcex-ajax-filter-target which shouldn’t be there – a mistake by chatGPT that I didn’t catch.
Hello we would like to redesign our web design / SEO company website, does anyone know if this WordPress theme has an AMP version?Digital Tailors SEO
Hi,
This is AJ the theme author.
So first of all, no theme should ever have an AMP version of the theme, this is plugin territory. You really should use a plugin to add AMP support to your site and any plugin will work with any theme.
Now, AMP is quite old school and not really recommended anymore. There are several reasons for this and I can post them here if you’d like. But generally speaking, AMP is not recommended by top experts anymore. It’s more important to focus on responsive design & Core Web Vitals (which will mostly be dependent on your hosting).
If anything, what you would want to consider is using a plugin to convert your site to a progressive web app – these plugins will also work with any theme, but could be limited by your server. Also, depending on the site it could be completely useless. For your site specifically, it wouldn’t make any sense to set it up as a PWA (or even have an AMP version for that matter).
- AJ
Hi AJ,
I’ve been a longtime fan and user of Total. I was wondering if you had any plans for implementing more advanced animations and page styling options into the theme.
I’ve been trying out some themes (Salient Wordpress theme in particulair) recently, and although Total easily wins from a feature perspective, I do feel that Salient offers more modern animation styles and options that could elevate Total to an even higher level and give even more creative freedom.
Are these animations perhaps something you’re planning in the future for the Total theme?
Thank you very much!
Cheers
Hi,
You’ll need to be a bit more specific what you mean by “advanced animations and page styling options” – it’s possible what you are looking for is already included in the theme. These are 2 very different things and specifically when it comes to “page styling options” I’m confused because you can literally style anything in the theme and create templates for anything section of the site, so you have full control over the page styling.
Regarding animations specifically, many site animations are now considered somewhat “old school” (not modern). In fact, most modern websites tend to avoid animations, as they often rely on extra scripts that can slow down performance, negatively impact SEO (depending on how they’re implemented), and create accessibility issues for some users.
That said, some animations could be ok such as micro-interactions or subtle transitions. Things that may be possible already in the theme.
Feel free to email me directly to wpexplorer [at] gmail dot com if you wanted to share some examples from other sites/themes of what you are referring to.
- AJ
ps: Total is also fully compatible with Elementor and Elementor Pro – older customers that have been using WPBakery for a long time may not be aware of this. And Elementor does have not only many built-in animation functions (in the pro version) but there are also many free and premium add-ons for Elementor you can use for added animations. But again, depending on what you want to do, it may not be ideal to do so.
Hi AJ
Is it possible to output content from a different page on a current page? Sorry that does not sound clear does it?
I know this is possible if the content is set up as a Dynamic Template, but what if the content is a Custom Post Type? Is there a way of calling the post ID.
Templatera has a shortcode for just that, eg [templatera id=”4216”] and it would ouput the content of that post ID. But I don’t use Templatera any more.
I know I could just use Dynamic Templates but I want to avoid that and be able to call by post ID instead.
Is there any way?
Thanks
James
Hi James,
You can write your own shortcode for this, but you can also just use the Post Cards element, use the “Post Content” card style and under the Query tab you can use the ‘Query Specific Posts’ field to define the post to display.
- AJ
Hi, I imported the Webmag demo and am wondering how I can changed the site name title to
tag. Do I need to create a new dynamic header template? Thank you.
Hi,
This demo has a custom logo text which is defined and can be changed under Appearance > Customize > Header > Logo > Logo Text.
The reason why I used this specific field for this demo (rather then having it automatically pull the site name) is because I wanted the dot between the words. If you just leave that field blank it will pull your site title as defined in WordPress under Settings > General.
- AJ
Hi AJ, I do give the specific field with the Logo Text, how can I give h1 tag to the Logo text? Thank you.
HI,
It’s very bad for SEO to set your logo to an h1 heading. I can give you some custom code you can use to do this, but I would not recommend it at all – this will hurt you more then help.
Now, this demo itself doesn’t have an h1 on the homepage, so you may want to add one. Simply edit the homepage with the page builder and insert the theme’s Heading element which you can set to an H1 and give it a good h1 based on your website, generally this would not be the same as your logo.
I didn’t add one to the demo as it wouldn’t look very good and it’s not usually needed for most sites, of course it can help with SEO to add one.
- AJ
Hi, I imported the Webmag demo and am wondering how I can changed the site title to
tag. Do I need to create a new header dynamic template? Thank you.
Hi,
This demo has a custom logo text which is defined and can be changed under Appearance > Customize > Header > Logo > Logo Text.
The reason why I used this specific field for this demo (rather then having it automatically pull the site name) is because I wanted the dot between the words. If you just leave that field blank it will pull your site title as defined in WordPress under Settings > General.
- AJ
Hi, I have a site where I am using Ultimate Member to restrict content. Most posts are only visible to logged in members. When I have the Customizer Customizing ▸ Blog Archives & Entries▸Pagination Style set to “Standard” I get the message to login to view the content on all pages of the blog archive. But if I change the Pagination Style to “Load More” or “Infinite Scroll” when the 2nd and further pages of post display it shows the full post rather than the login message. The first page displays properly but the equivalent of the second and further pages show the whole post. I would like to use something other than “Standard” pagination but can’t have full posts display. Thank you for any help on this.
Hi,
Can you share the URL so I can have a look?
From what it sounds like, you have the posts set to display the full post content on the archives and the Ultimate Member plugin displays a notice when the post content is rendered to display a login message if the user is not logged in, but it doesn’t have the proper checks for when posts are loaded via AJAX.
Have you already tried contacting the plugin developers to see if there is a built-in setting or fix for this?
Now, of course one way to easily “fix” this would be to only display excerpts on the archives so the user needs to click a button to go to the full post where they will see the login notice. Generally you wouldn’t want to display the full post content on the archive anyway – of course this depends on the site and context.
Now, if all your posts were restricted to members then it would be very easy to setup a custom template where if the user wasn’t logged in they would see a notice otherwise they would see the posts. This could be done via a dynamic template – https://totalwptheme.com/docs/dynamic-templates/ – here is a quick sample video: https://a.cl.ly/wbudWd4o
If you wanted to do the above recommendation, while having both private and public posts, you could do so by adding the member posts into a specific tag or category. Then you can use this add-on – https://wordpress.org/plugins/term-based-dynamic-post-templates-for-total/ . This plugin will allow you to have a global dynamic template while also creating a separate one specifically for the member only posts tag/category.
Displaying a single notice for anyone logged out rather then the posts and a notice on each one would likely look better. Of course the downside to this is that you wouldn’t be able to categorize/tag them into other categories/tags. In which case, the other consideration is to use a custom post type for all the member-based posts to keep them completely separate from the public blog – this is most common.
One thing I do want to mention though, most WordPress hosting and optimization plugins do not cache AJAX requests. This means functions like load more or infinite scroll will always make the request to the server and can be much slower and put on more stress on the server. Standard pagination is the best for SEO and speed and generally recommended.
- AJ
Hi AJ
Thanks for answering all my questions, I have sent quite a few recently 
I have created a Custom Card using the “Image Banner” element. I have set the image to crop 410×212
However, it’s being cropped 410×273
Can you think of a reason why that might happen?
Thanks
James
Hi James,
There is definitely a bug in the Image Banner element, it’s basically ignoring the height 212 so it’s cropping proportionally. I’ve fixed this for the upcoming 6.3 update.
If you want to patch the issue yourself it’s quite simple!
Edit the file located at plugins/total-theme-core/inc/vcex/templates/vcex_image_banner.php and locate line 183:
'height' => $att['img_height'] ?? '',
Where you see $att it should be $atts.
Here is a video showing how you can edit it in the WP admin if you have the plugin editor enabled: https://a.cl.ly/9ZuOjOmv
Sorry for the troubles and thank you for reporting the issue!
- AJ
Hello, we recently attempted to update Total Theme from 5.19 to 6.2 and it resulted in a lot of formatting issues with the menus and content. Everything else is up to date on our site:
https://biodiversitygroup.orgAny idea what may be going on? I can provide screenshots in an email if you reply to info@biodiversitygroup.org
Hi,
This is AJ the theme author.
I’m not seeing any issues on the site, can you be more specific?
Now, I do see that your site is using WP-Rocket, perhaps you simply needed to clear your WP-Rocket settings?
If you want access to private support you can renew your support license and submit a ticket here – https://my.totalwptheme.com/ – otherwise if you want to share screenshots you can easily do it by uploading them online and sharing the link here. You can use Google Docs, Dropbox or Imgur to share screenshots here in the public forum.
- AJ
ps: If you are using WP-Rocket I do recommend you check out this guide – https://totalwptheme.com/docs/wprocket-setup-recommendations/ – it can help prevent issues when updating.
Hi AJ,
Yes I restored the website to a previous state because the errors were untenable. You’re right to suggest clearing WP-rocket cache and we did to no avail. You can see how it affected the menus here:
https://www.dropbox.com/scl/fi/co2iruk096om0ualp133w/Screenshot-2025-04-17-154132.png?rlkey=826mgjs7c9h86lpn1mcqwl7v4&dl=0Other main content boxes were narrowed by maybe 50%. Any suggestions are appreciated.
Hi,
The issue with the icons would suggest a caching issue (of course hard to know without actually updating and inspecting the updated site). When updating to Total 6.0+ the icons have all been modernized to use SVG’s – https://totalwptheme.com/docs/changelog/6-0/ – if they are rendering large like your screenshot, it would suggest that your site is not loading the new CSS for the SVG based icons which ensures they display at the same font size as the text where they are rendered. The issue in the screenshot could also be caused if the page is showing cached HTML but the CSS is updated.
I’m not sure which “main content boxes” you are referring to, but I do see you are using full width WPBakery rows on the site, which the theme uses advanced CSS to render. There was a known WP-Rocket issue (not sure if they’ve fixed it since) which could cause full-width rows to not render properly if the theme’s CSS files were minified by WP-Rocket as the plugin was incorrectly changing 0px to 0 in the theme’s CSS. This could cause content to not render at their proper width.
I would recommend first making sure WP-Rocket is setup as per the docs – https://totalwptheme.com/docs/wprocket-setup-recommendations/ (this should only take a couple minutes).
Then after updating, be sure to fully clear your site cache and browser cache.
From inspecting your site headers, I can also see you are using CloudFlare as a CDN. It’s very possible you cleared WP-Rocket but not cloudFlare. So make sure to also clear CloudFlare.
Most WordPress hosting solutions also have their own cache you need to clear – so be sure to do that if applicable.
So…update, then clear WP-Rocket, then clear your hosting cache (if applicable), then clear CloudFlare cache, then clear browser cache. In this specific order.
If you do have issues after that, let me know so I can inspect the site.
If there are concerns with having issues updating a live site and waiting for assistance, you could always create a staging version of your site and update the staging version. This way any issues can be sorted out before updating the live site.
Now, I am releasing Total 6.3 most likely tomorrow, so you may want to wait and proceed with the update after that version is released so you don’t have to update twice.
- AJ
ps: I had a quick look at your child theme and didn’t see any CSS that would cause issues with updating per-se. However, I see some CSS that is targeting dynamic classes such as the following CSS:
.vc_section.vc_custom_1631169663711.wpex-vc_section-has-fill.wpex-vc-row-stretched.bg-fixed-top{padding:0px!important}
or
.vc_custom_1663783762176 h2{font-size:37px!important;margin-top:0px!important}
The “vc_custom_{uniqid}” classes are generated dynamically, which means they can change if you edit the element or even the page.
When targeting specific rows or elements make sure to give them unique classnames or ID’s and reference those in you custom CSS.
There are a few other problematic declarations in the child theme such as:
h1{color:#fff!important}
This code will make it impossible to modify the color of an h1 added via a theme element such as the heading element as well as override the customizer setting under Customize > Typography > H1> Color.
These sort of declarations could cause confusion for others using the site and thinking certain settings are broken.
This may not be a concern depending how the site is managed, but it’s worth mentioning since I did notice it.
Hello. My license is no longer active. Help me please activate it again. License from Nov 28, 2017
Hi,
You mean not active in your WordPress dashboard? If so, you should be able to re-add it and if that doesn’t work, it may be because the license is currently in use on another domain or your current domain has changed. If this is the case simply log into the license site here – https://my.totalwptheme.com/ – where you can view and manage your licenses so you can de-activate any currently active licenses.
- AJ
Yes, the license is not active in the Theme License section. https://prnt.sc/GIHp8TCWHaq- I copied and pasted it again, it did not help. The domain was not changed. On the page https://my.totalwptheme.com/license-manager/ the license has the Active status and the current domain. I clicked Refresh Licenses but it did not help. If I click Deactivate will the license be completely deleted irrevocably?
If you click de-activate here – https://my.totalwptheme.com/license-manager/ – it simply removes it from any site where it may have been registered so you can properly add it to your site.
Your license itself is part of Envato so you will always own that license. My website is simply for registering your Envato license to specific sites.
What may have happened is perhaps a long time ago the theme allowed to activate the license twice (one for a developer and one for a live site) but I had to change that to comply with Envato rules. It’s possible your license may have been activated in dev mode so you simply need to de-activate it from our site and then re-add it.
- AJ
Thank you! It helped. The license became active.
I’m preparing a website in which the menu is always mobile with option FullScreen Overlay. I have some primary menu item and submenus. Actually when you click on primary the submenu open down, pushing all the other items down. I need the submenu to open on the right side. Is it possible?
Hi,
The Full-Screen menu does not have the ability to open menu items to the right side, you would need to use custom CSS to modify how the menus are displayed. You would probably need to modify the design so that the menu is displayed to the left, this way if items open to the right there is enough room. Now, the biggest issue you are going to have and why these sorts of menus generally open down and not to the side is that the only way to display the items to the side (without complex JS) is using absolute position which means the window needs to be large enough to display the items on the side – which is likely not going to be the case on smaller devices such as phones. So you would probably want to wrap your custom CSS inside a media query so it only targets larger screens – or use advanced JS instead so when items are clicked it generates a new container with the sub-items which can be placed statically.
Example CSS using basic re-positioning the menu to the side.
.full-screen-overlay-nav-menu {
text-align: start;
width: 500px;
}
.full-screen-overlay-nav-menu li {
position:relative;
}
.full-screen-overlay-nav-menu ul ul {
position: absolute;
inset-inline-end: 0;
inset-block-start: 0;
}
Another concern you will have besides mobile support is that the theme’s menu by default doesn’t close items when others are opened (aka accordion effect) as that causes jumpiness on a vertical menu. So you may need to also add javascript to the site to close the open dropdowns when clicking on other dropdowns to prevent them from going on top of each-other.
It would probably be best though to locate a 3rd party plugin or script that works exactly how you want, then use the header builder – https://totalwptheme.com/docs/header-builder/ – to insert the custom menu.
And it would honestly be easier to use a custom script (even if you don’t want to use a 3rd party plugin) to register your own shortcode for use with the header builder, then trying to modify the default behaviour of the theme’s menu. For example:
- AJ
Hi AJ
I’m trying to add the “Proxima Nova Thin” font using the Font Manager: https://fonts.adobe.com/fonts/proxima-novaBut it is rendering on the site as more like a regular version, it is not “light” at all. Fiddling with the font weight settings – eg changing it to 100 – doesn’t change anything.
Wondering if I’ve missed something. (Site in dev so can;’t link to it, could open a ticket?)
Thanks
James
Hi James,
If you want to share the site privately you can open a ticket.
The way the typekit (adobe) fonts work, is basically you set it all up on Adobe – so you need to make sure to select the font weights you want to use.
Now, in your comment it looks like you are linking to “proxima-nova” not “proxima-nova-thin” – not sure if they are different fonts or not. But perhaps just want to load Proxima Nova and include only the thin (100) font weight to use on your site. If you do that, you will still need to define your font weight wherever you have defined your font. For example, if you are assigning this font to the whole site via Customize > Typography > Body, you will still need to change the font weight for your body font as well to match the font-weight you want to use on the site – just changing it on the Adobe end won’t work as you need to change it in the theme to tell the browser what font weight you want.
Now, if you inspect your site you should be able to locate the URL to your typekit CSS file (search for proxima and locate it in the head). You can copy and open that URL to see what font weights are being loaded via the @font-face declarations. This way you can confirm at least if the correct font weights are being loaded on the site.
- AJ
Hi AJ
Thanks, I worked it out. I had named the font “Proxima Nova Thin” in font manager when it should have been just “Proxima Nova”. Now, when I choose weight 100 it correctly loads “thin” – thank you !
However, before figuring it out I tried to open a ticket but saw this message:
“It looks like your support has expired so you do not have access to premium email based support. You can renew your support by purchasing a new standard license or renewing support.”
However I renewed my support on 12th April.
I probably won’t need to open a ticket as the support here is so good, but I wanted you to know I have an active support licence.
Thanks
James
Hi James,
Awesome, I’m glad it was an easy fix!
The support site does cache your licenses (to prevent constantly sending requests to the Envato API) so if you had logged into the site previously, you may just need to click the refresh button. I believe I put a refresh button after this notice, if not there is one on the license manager before the table on the right side – https://my.totalwptheme.com/license-manager/ – this will send the request to Envato to get the latest license data.
-AJ
Thanks – yes that worked.
Hi AJ
I’ve used the Meta element to output post categories in a Custom Card.
In this case, I have styled the categories in such a way the comma separator is not wanted.
How can I get rid of the commas?
Thanks
James
Hi James,
The Meta element is intended to display a comma separated list of terms.
You should use the Post Terms element instead, this will allow you to choose from various styles including buttons. And for more advanced displays use the new Term Cards element – if you wanted to display categories or other taxonomy cards in more advanced ways, with photos, excerpts, etc.
- AJ
Hiya AJ. I hope you’ve been well.
I run 2 websites using the LearnPress LMS plugin and after the recent WordPress 6.8 update, I’m getting a critical error on specific LearnPress pages only. https://thedronecoach.com/course/faa-part-107-practice-exams/ https://thedronecoach.com/course/I tested with Twenty Twenty-Two and the issue doesn’t appear so I’m hoping you might be able to take a look to see why this is happening.
I can log in as a student and access the course material okay, but the issue is just with those two LearnPress pages. I did try disabling all other plugins and the issue remained.
This website does not receive a lot of traffic so I’m leaving it with 6.8 installed so you take take a peek under the hood.
Cheers!
Frank
Hi Frank,
I setup a local site with LearnPress and WordPress 6.8 and I don’t get any errors on the courses. It doesn’t look too great, but I don’t have any errors: https://a.cl.ly/4guvym7O
Since your site is showing a generic error, this isn’t very helpful. So you will want to temporarily enable WP_Debug on the server – https://totalwptheme.com/docs/enabling-wp-debug/ – or if your server already has error logs (most of the top WordPress hosting lets you view your error logs via their admin) look at the server logs to see what the actual error is.
Once we know the actual error, it should be easy to troubleshoot.
Now, just because you test with a different theme doesn’t automatically mean it’s a theme issue. I’m more than happy to help, but I do want to mention this as it is a common misconception that if switching themes fixes the issue it means the error is caused by the theme. Sometimes the error could be located in your child theme for example, or perhaps the theme you switch to doesn’t make use of specific core functions which are actually causing the error.
- AJ
ps: I do see a few issues with the LearnPress plugin though – for example the main courses page returns an AJAX error so nothing displays. Also in the WP admin there is a notice to update the database, running the update doesn’t remove the notice – it’s constantly saying I have to update my database. These issues are happening with any theme I use.
As always AJ, your replies are not only helpful but educational as well. I will follow your recommendations and will get back to you.
And yes, regarding the LearnPress plugin, over the years, I’ve seen other coders with your level of knowledge state just how poorly their code is written. I’ve reported that update error to them a few months ago but they choose not to do anything about it. I also stopped using one of their recommended themes because they had provided over a dozen CSS snippets just to keep the theme working with the LP plugin. Really, really buggy!
Anyway, I digress. Time to troubleshoot. 
Cheers!
I know what I’m looking at, but I certainly have no idea how to interpret this information. Something about the [path] I surmise, likely pointing back to LearnPress.
Warning: Trying to access array offset on value of type null in /home/u932491700/domains/thedronecoach.com/public_html/wp-includes/block-template.php on line 104
Deprecated: file_get_contents(): Passing null to parameter #1 ($filename) of type string is deprecated in /home/u932491700/domains/thedronecoach.com/public_html/wp-includes/block-template.php on line 104
Fatal error: Uncaught ValueError: Path cannot be empty in /home/u932491700/domains/thedronecoach.com/public_html/wp-includes/block-template.php:104 Stack trace: #0 /home/u932491700/domains/thedronecoach.com/public_html/wp-includes/block-template.php(104): file_get_contents() #1 /home/u932491700/domains/thedronecoach.com/public_html/wp-includes/template.php(66): locate_block_template() #2 /home/u932491700/domains/thedronecoach.com/public_html/wp-includes/template.php(571): get_query_template() #3 /home/u932491700/domains/thedronecoach.com/public_html/wp-includes/template-loader.php(81): get_single_template() #4 /home/u932491700/domains/thedronecoach.com/public_html/wp-blog-header.php(19): require_once(’/home/u93249170…’) #5 /home/u932491700/domains/thedronecoach.com/public_html/index.php(17): require(’/home/u93249170…’) #6 {main} thrown in /home/u932491700/domains/thedronecoach.com/public_html/wp-includes/block-template.php on line 104 There has been a critical error on this website.
I’m going to check to see if I should update to current or more recent PHP version as my server is still on 8.2.
Hi AJ,
I wanted to let you know that I added a line of code that I obtained from the LearnPress GitHub page and it corrected the problem. LearnPress will likely have an update.
Thank you as always for providing the BEST theme on the planet!
Happy Easter weekend!
Frank
Hi Frank,
I hope you had a nice weekend!
I’m glad you got the issue resolved, thank you for letting me know. Hopefully they patch the plugin sooner than later.
- AJ
Hi AJ. Yes, had some great time off and I hope you did as well. Have a great week! Frank
Hi AJ
Can you look at the mobile menu on this site https://shorturl.at/DwyqXIt’s the full screen overlay.
When a parent menu item is tapped, it reveals the child menu just fine, however I was expecting a further click on the parent menu item to collapse it – but it doesn’t.
Same goes for the mega menu “headings” – they expand but will not collapse.
Thanks
James
Hi James,
The issue is happening because the way this mobile menu is coded on first tap it opens the items and on second tab it goes to the link (if there is one). The way the theme determines if there is a link or not is by checking if the URL is a # symbol (which is generally used when you don’t want any links). On your site specifically there is no link at all in the code, the href attribute is no where to be found.
See here: https://a.cl.ly/o0ulDKPo
So your links are just an empty tag, which is also invalid HTML.
To fix edit these links and make sure they all are using a # symbol for the link. Additionally you can apply the theme’s class if wanted – https://totalwptheme.com/docs/adding-non-clickable-menu-links/ – this isn’t really needed anymore as the theme uses modern CSS that can detect if the link is a # symbol, but nevertheless it can be a good idea to tag these links with the added classname.
If adding the # symbol as your links for these menu items, doesn’t fix the issue let me know, but it should!
- AJ
Hi AJ
I wonder if I’ve encountered a bug.
Trying to use the “Toggle 1” card with a custom post type (set up using PTU), and nothing is output at all.
Using “Posts” as the query seems to work OK, but when trying a custom post type is outputs nothing.
Can you recreate this? If not the problem must be my end, and I will show you a test page or give you admin access via a ticket.
Thanks
James
Hi James,
This card style by default displays the post title and then the post content inside the toggle.
When you say “nothing is output at all” that makes me think the issue isn’t with the card style, but rather with the post type. Does any card style work? If not, most likely your post type isn’t public so it can’t be queried.
One common issue people have is that they enable the “Exclude from Search” option for their custom post type, which unfortunately also removes it from all custom queries. This has been a known issue for over a decade in WordPress – https://core.trac.wordpress.org/ticket/17592
So, if you can’t see your posts no matter what card style you use, first double check your post type settings to ensure the post type is public and that the exclude from search option isn’t enabled.
- AJ
Hi AJ
Using “Blog style 1” works fine, but “Toggle 1” fails. Here’s a test page with both cards on: https://shorturl.at/PDigO“Exclude from Search” is not enabled, so it’s not that.
Now, when you say “post content inside the toggle” ... these posts are made up entirely of ACF fields, there is no “normal” content and the default editor is turned off. I suppose I was expecting the excerpt to be revealed inside the toggle.
Unless there is an easy way I could ge that to work, I’ll rethink it. Do you think it can be achieved using Custom Cards?
Thanks
James
Hi James,
The toggle element displays the post content, not the post excerpt. So if your posts don’t have any content then nothing will show up. If you want to use the excerpt you can achieve this using a custom card – either by overriding the cards/toggle/toggle_1.php file via your child theme or making a custom card via Theme Panel > Custom Cards. If you make a custom card via the WP admin, you can use the theme’s dynamic variables – https://totalwptheme.com/docs/dynamic-variables/ – so you can use {{post_title}} for the toggle heading and {{post_excerpt}} for the toggle content. I believe I coded the toggle element to parse those variables but if it’s not working let me know.
- AJ
Hi AJ – i trust all is well?
Just a simple one for you. I’m using one of your templates as a table in this page: https://quantumleapgolf.com/draft-page/
At the top of each column is a star graphic. You’ll notice they are currently aligned to the left of the space. I would like them in the centre but there is no option to just centre the image (all the text centres as well when i use the only available setting) – is there a way to do that please?
Hi,
Looks like you are using the Icon Box element set to the “Top Icon” style – by default this style centers the icon (image). This style aligns the icon and the text in the same place. By default the aligment is in the center, but if you change the text alignment the icon will also move for consistency. Example video: https://a.cl.ly/JruYWAgO – so there isn’t any built-in option you can use to center align the icon/image but also left align the text.
You can add some custom CSS to your site to align the image by giving your icon boxes a unique classname and then targeting them like such:
.center-icon-box-image .vcex-icon-box-symbol{ text-align: center; }
Where “center-icon-box-image” is the class given to each icon box.
Or you can use the Teaser element instead, which is an i mage focused element and does have it’s own image alignment setting.
- AJ
ps: When inspecting the site code I see a bunch of data attributes added in your text – https://a.cl.ly/5zukyWdx – usually this is a sign that someone copied and pasted the content from somewhere else. I mention this, because it can be a huge security concern to do this. If you are copying and pasting from somewhere else, always paste it first into the “text” mode in the editor to ensure there isn’t any fishy code or paste it into a text editor (like Visual Studio) first.
Teaser element works perfect – thank you
re: the code, thanks for pointing that out too. I’ve been generating some of the copy with AI. I did notice this and did my best to remove it. Now you’ve told me the dangers, i’ve reviewed the whole site. Hopefully found and removed it all.
Thanks again AJ
Hi AJ! I have inherited a site to redesign and not too familiar with Total theme. I have a main menu with logo and would like the logo centered. I selected in Customise – Header – General – the nr5. Centered Inline Logo Style. But the logo is not centered. There are 4 menu items to the left of the logo and 2 to the other side. Could you please help me solve this?
Hi,
It’s very hard to know what’s going on without the URL, but I’m guessing what may be going on is your header also has other items such as the search icon, which the theme counts towards figuring out where the middle is.
You may need to use the setting under Customize > Header > General > Logo Position to enter a different number for the logo offset based on the specific menu setup.
Depending on the site you may also benefit from using the option at Customize > Header > Menu > Fill Space – which will make your menu items stretch to fill up the whole header.
Last, depending on what you need for the site you could also choose to instead create a custom header – https://totalwptheme.com/docs/header-builder/ – I have a sample centered logo pattern you could start with – https://totalwptheme.com/pattern/header-13/
If you create a custom header you will need to make 3 menus though (left menu, right menu, mobile menu) where the last basically contains all the items from the left/right menus.
But the custom header will give you a lot more control over item placements and adding custom content to the header.
- AJ
Thank you so much for your reply AJ. The URL is www.jennastorey.com I will try the fixes you suggested. Thank you.
The primary issue with the site, is that the theme is extremely outdated (multiple years outdated). You will want to make sure the Total theme is fully up to date – https://totalwptheme.com/docs/update-theme/
If your client doesn’t have their license registered on the site, they may need to purchase a new license and activate it so they can update. It’s very important to update the site, because this old version most likely isn’t compatible with latest versions of WordPress, PHP and could have bugs/security concerns.
Additionally, on this site the theme’s folder was renamed to “broodenbotter” – this prevents updates from working correctly. One should never rename a theme’s folder as it can break many things and there is no reason to.
So I would highly recommend first going to Theme Panel > Import/Export and copying the settings, then renaming the theme folder via FTP back to “Total”, then going back to the Import/Export panel and importing the site settings. This way the site will be setup correctly so it can receive proper updates and prevent other potential bugs.
- AJ
Thanks so much AJ. Yes, the original designer clearly left some problems that I have to sort out, obviously running deeper than I thought. Thank you for your help.
Coupon Discount on Checkout page – not working
NOT a major issue as i have always told people to apply the coupon at the basket stage before checkout and that works fine
fenori.co.uk
NOT Sure when it happened may have been from years ago , may have been from the start around 2020 ish I think i applied the coupons.
As the Checkout page seems to be influenced by the theme , i thought i would ask here first
I applied the coupon Discount facility to woocommenrce many years ago and its been working and still is except, NOT on the checkout page and may have been like this for years – not sure when i last tested that part of the process or if i ever did
On the basket page (which i have always told people to use) , there is an option to add a coupon code in a text box and then use a button to apply that discount to the basket. This works and my coupons only apply to the total basket price – all works well I have many codes for coupons and we have used quite a few.
Now when you then proceed to the checkout – it still applies and shows the discount ALL GOOD
BUT if you did NOT apply the discount code at the basket
On the checkout page it asks you the following
Have a coupon? Click here to enter your code
if you click on that line – then a Button appears
APPLY COUPON
BUT nowhere for you to enter the coupon code – no text box – just the button
there is also a login part at the top of the checkout page
Returning customer? Click here to login
That works and opens text boxes and buttons and they all work ok and i can login to be honest i have never tested that part of the page either until now
I’m happy for that coupon question to be removed from the checkout page and ONLY available at the basket page, OR for a text box to appear for a coupon code to be applied
if you have already applied a coupon at the Basket stage – then I would NOT want that question to be on the checkout page anyway
so probably better to remove it completely from my view
BUT if a theme thing , and you want to keep , then whatever you want the theme to do is fine , just need the text box to appear
Thanks one again
Hi,
What’s happening on your site is that the theme adds the following CSS:
.woocommerce-form-coupon p:first-child { display: none; }
Which was intended to hide the default description WooCommerce adds to the coupon form. Here is a video to show what I mean: https://a.cl.ly/4guvmAre
Now, WooCommerce removed this text and changed how the coupon form works in their 9.8.0 update which causes the issue.
I’ve already fixed this for the upcoming theme update.
If you want a temp fix add this CSS to your site:
.woocommerce-form-coupon p:first-child { display: block !important; }
So the issue would have happened when you updated to v 9.80 which came out a weekish ago.
I wasn’t aware of the problem since this change wasn’t mentioned in the WooCommerce changelog, but another customer reported it to me recently so it’s been patched. I plan to release Total 6.3 most likely tomorrow or the next day.
- AJ
brilliant , thanks AJ as always – I will wait for the new release to fix, as I’m also looking forward to seeing the error handling on the page too
Just a heads up…
Right now, I’m waiting on WPBakery as they are releasing an 8.4 update shortly and I want to be sure to fully test and include the updated WPBakery with this theme update. That way I don’t have to send out another update afterwards just for the WPBakery update. I try and not update so frequently as it can be a hassle constantly dealing with updates.
thanks aj, no rush for me. i see wordpress has an update as well now 6.8 – so i may do that first and test
There is 1 debug notice that I could see coming from WPBakery when updating to 6.8 – but it’s a warning, not an error so as long as you don’t have WP_Debug enabled (which you shouldn’t unless you are troubleshooting) there shouldn’t be any concerns updating WP – at least in terms of the theme and it’s supported plugins.
fantastic – updated yesterday 18th April and all good – look forward to the updated theme in the coming days – once WPbakery gets its update and you are happy to release the new theme update Thanks again for all the help and advice
I hope you had a nice weekend. WPBakery released it’s update and I’ve been fully testing it out (found one small CSS bug in their editor which I patched in the theme temporarily). The official Total 6.3 should be ready to download by tomorrow.
- AJ
thanks AJ , look forward to it , I see woocommerce has an update today -version 9.8.2 details , so i may leave that till after the theme update – once i get a FTP copy
Just pushed out Total 6.3.
And I reviewed the WooCommerce 9.8.2 changes and made sure no theme files required any updating.
- AJ
thanks again AJ – good to know -will update over coming days , lookforward to testing the missing fields handling on checkout & Coupon – Thanks
Hello AJ,
I have a problem with scrset functionality of images in a postcards grid. Hope you can help.
Situation is: I have a portfolio grid with postcards which uses responsive design. Standard is three columns, but it can be less on tablets and phones. The images I use, are larger than the max. dimensions of the grid elements, because I want to use them in another place on the website in higher dimensions. Because of this I use a srcset, which actually provides the sizes for the grid as well as for the larger use.
Problem is: The selection from the srcset only works correctly, if the grid is in its responsive 1-column-style. As soon as there are more columns, browsers unnecessarily load too large versions. The reason seams to be the 100vw in the sizes attribute, as it doesn’t reflect the column width.
sizes=”auto, (max-width: 1920px) 100vw, 1920px”
If I changed this manually in the dev tools to for instance 33vw for a 3-column layout, it works ok. So the question is, how can I make sure, no matter of the grid layout, the necessary image size is selected based on the column width and not on the viewport width?
You can check it here: http://s357715114.online.de/ Under Films -> Fiction you find 6 Test elements with the images named accordingly. Please ignore the other elements as some of them contain older images, which are not yet dimensioned and replaced for the new purpose.
The widths of the srcset are (all 16×9): thumbnail: 480px (for standard portfolio grid) medium: 960px (for retina portfolio grid) large: 1740px (retina use for the larger presentation)
Lazy load is activated.
Thank you!
Ben
Hi Ben,
The srcset functionality is actually a core WordPress function outside of whatever the theme is doing. Personally, I like disabling it so that my sites use the same images across all devices. Since my images are well optimized (I pass them through tinypng) this is not a concern at all. The theme has a built-in option to disable it via Theme Panel > Image Sizes.
Also, I don’t like to define any image cropping on the site as this creates unnecessary image sizes on the server which bloats up backups (so creating backups takes a lot longer and takes up much more space). I recently wrote a full guide on this if interested: https://www.wpexplorer.com/stop-wordpress-from-creating-extra-cropped-image-sizes/ – there are likely images being created on your site you aren’t aware of. I actually need to double check to ensure I’m doing this on the total demos (I had it on my todo list but can’t remember if I implemented the code yet).
You are correct about the WP implementation using vw units not being accurate as the width of the images is based on the columns they are located in and not necessarily the viewport. Having the image srcset based on the column width would literally impossible to do without advanced Javascript. You would need to set up the site so none of the images load when the site loads (or load the smallest one) and then use javascript to dynamically add the images based on the widths of their parent container. Which is a terrible solution for many reasons and I would never recommend it (not hard to do though – chatGPT could probably spit out the code for you if you really wanted this).
Now, you could add some custom code to your site to modify the WordPress sizes attribute – https://developer.wordpress.org/reference/functions/wp_calculate_image_sizes/ – but in order to target your specific grid, you will need to make sure the grid uses a specific image size (not custom, but a defined/named image size) so that you can target that specific image. Or you will need to apply the filter on the wpex_hook_post_cards_loop_before loop (so you can check to see what post cards element is being shown) and then remove the filter on the wpex_hook_post_cards_loop_after hook – this way your code will only apply to the post cards element you want it to apply to.
Remember also that some devices, even though the screen is smaller should actually have larger images (aka Retina) – which is another reason I prefer not messing with srcset and uploading large enough images that are pre-optimizes prior to upload that will simply look good on all devices while being as small as possible. If you were to take a photo from your site for example this one – http://s357715114.online.de/wp-content/uploads/2025/04/Test_1.jpg – it is 242kb and a smaller variation – http://s357715114.online.de/wp-content/uploads/2025/04/Test_1-960x540.jpg – is 85kb. The original image is 2088×117, which is quite large and perhaps not really needed to be this large. If I were to resize it to 1500px width then optimize it, the image will only be 93kb – https://a.cl.ly/jkuByNlj – which is really quite small for an image and will load quickly on all devices, while still looking good on retina. Then you don’t have to have all these extra images cropped on your servers and slim down the html and rendering but not needing srcset attributes.
- AJ