22314 comments found.
Hey AJ, any timeline on the new version with the WP Bakery update?
Hi,
The theme update should be available today or tomorrow. There are a couple small things I wanted to add before zipping it up.
If the WPBakery security vulnerability is a concern, keep in mind that it requires a user of Contributor or greater access. So as long as your site’s contributors, authors and admins can be trusted then your site is secure. And of course you should never add any user to your site with high privileges that you do not trust as they can do stuff like delete your whole site content or upload illegal/inappropriate content.
- AJ
Thanks AJ, just trying to plan my client’s software update schedule!
Just a heads up – It’s probably going to be a few more days.
I’m integrating a new method of activating licenses in “staging” mode (without API registration) so customers can setup dev sites and still receive theme updates. It’s taking a bit longer then expected and I want to make sure everything is very well tested before launching. There are also a couple bugs in the last WPBakery update I’m trying to resolve.
Thank you for your patience!
I’m thinking of sending out a quick survey to see when customers would like to get updates and how often. Of course, any critical security updates will still go out right away.
Are you signed up for the Total Theme newsletter?
There will also be a big sale next month, which I will announce there!
I’ve actually never sent out a newsletter before, as I was looking to switch to a more affordable service. I finally moved my email list from Mailchimp to Flodesk last week.
This means I can start sending out Total newsletters every now and then to gather feedback and share sales and major updates.
I could also share upcoming update dates and stick to a more consistent schedule. Do you think that would be helpful?
Sorry for the long message and thank you for any feedback!
- AJ
Hi AJ, I’ve been using Total for a long time now but never created a customer portal so they can check their bookings etc. Are there any tips or guides for this?
Hi,
Bookings are a complex functionality that is plugin-territory and not something you would find inside a theme itself.
Now, in terms of which plugin to use it really depends on your needs. There are tons of free and premium plugin plugins out there as well as 3rd party services you can use for bookings (outside of your own site).
I don’t have any personal experience with creating websites that allow for bookings, but if you want to provide more information on the site in question, what’s needed and what is the budget, I can do a little research and come up with some suggestions.
- AJ
Thank you AJ
The site in question is theglasshub.com and when I say a customer portal what I mean is to customise the look of the ‘Account Pages’ – when a customer logs in and can see their orders etc.
Ah ok, so you are using WooCommerce on this site, which means the account pages are created by the WooCommerce plugin.
There are no built-in options in the theme to customize these pages as it can break 3rd party plugins, customizing WooCommerce core pages (like account pages) is not something that should be done in a theme.
Depending what you want to customize it may be possible with some basic CSS or for more advanced edits using PHP hooks/filters. There may even be 4rd party plugins you can use to customize these pages. But it really depends on what they want to change.
- AJ
Hi Aj, quick questions: Is there any link, class, or something that allows me to close/open all elements (toggle vissible/hidden) at once? Or a way to toggle more than one element at once?
Hi,
There isn’t any global class you can use, but it would be fairly easy to add your own JS code for this and I could assist knowing more info on how the site is setup.
The problem with opening and closing all toggles at once though is accessibility, this can create issues with users using screen-readers. It’s generally best to simply show/hide a single element at a time. This is why I don’t offer the function built-in as it’s generally not recommended.
If you wanted to show/hide multiple toggles at once, how is that any different then just showing and hiding 1 single toggle element that has all the content you wish to show/hide at once?
Can you share the page in question to see what you are going for?
That said…
Notice there are 2 types of toggle visibility choices: normal and “Persistent”.
If you use a “Persistent” toggle, these will remain visible or hidden and you need to click it’s button to open or close it. On the contrary, whenever you click to open a toggle it will close any currently open non-persistent toggles within the same parent WPBakery section or row.
So, if you want to have multiple toggles where only one can be open at a time and you place them all inside the same WPBakery section or row, as long as they aren’t a “persistent” type, opening any will close any that are currently open so only one can be opened at a time.
- AJ
Thanks for the reply! I found a workaround, it was something not too important for a temporary promotion of a client 

Hello AJ, what would you say is the best approach to create a bento grid (for example https://www.figma.com/community/file/1417266217644346660/bento-grid-template-3)?
I’ve tried using the Grid Container, but it doesn’t work because the rows can’t overlap or span multiple rows, which is essential for a true bento layout.
Would love to hear your recommendations or if you know any better methods for this.
cheers, flipstar
Hi,
Unfortunately there is no way with pure CSS to create these sort of layouts (there is something in the works but it will likely never be released or if, so not for while – https://caniuse.com/mdn-css_properties_grid-template-rows_masonry ).
If you are displaying posts, you can use the Post Cards element and set the “Grid Style” to “Masonry”. You can always create a custom post type just for this if you need the masonry – https://totalwptheme.com/docs/adding-custom-post-types/ – it is common to create post types for things like “services, features, etc”.
It’s also not possible to use a modern CSS grid along with popular masonry scripts like the one used in Total which is called Isotope JS – https://isotope.metafizzy.co/
It would be possible to use WPBakery rows and columns, but it would require adding your own custom setting to enable this and load your custom JS scripts. I am hesitant to add an option myself for various reasons:
- Issues in the front-end editor.
- Masonry layouts require waiting for images to load before rendering so placements can be correctly calculated.
- Scripts may need re-triggering after the masonry layout is rendered (sliders, toggles, carousels, etc)
Now, I wouldn’t be against adding a new “Masonry Grid” element similar to the Grid Container. I think this could be very useful and cool. So it would only support certain elements like the Icon Box, text block, etc. Thoughts? I could work on it and send you a beta version of the Total Theme Core plugin when ready so you can try it out.
- AJ
Hi AJ,
thanks for the detailed answer and explanation.
Just a quick note that masonry and bento are not the same thing.
Masonry is an auto-flowing layout that stacks uneven items, whereas bento grids use fixed cells and intentional sizing for visual balance and hierarchy.
I really aim for that structured, intentional grid. Much like you can see on https://bentogrids.com.
That’s why I think that Post Cards with Masonry will not work in that case.
Having a dedicated bento grid module would be awesome of course. Also using some elements like icon-box, text, image, list, etc would be perfect. Just like in the grid container.
But there also needs to be a way to control the sizing of each card (tile inside the grid). Meaning row and column span for individual items. So we can really control the layout.
Do you think it would be possible to extend the existing Grid Container logic for that? Maybe by adding optional row span and column span parameters for each item.
Best, flipstar
Hi,
Thank you for explaining!
I understand what you mean now and I’m trying to think how this could be accomplished in the theme.
Where things get complex is when items span vertically into the row below. If you didn’t care about having items that extend multiple rows, then it would be very simple (and still considered Bento). You could do this using multiple “flex” containers or WPBakery rows with different column widths assigned to each.
Allowing items to span multiple rows, as you mentioned, would require the ability to define the grid-column and grid-row for each item as well as setting the grid’s grid-auto-rows property (to create equal height rows).
Adding a setting to the Grid Container to define the parameters for each item could work. Perhaps a repeater field (like the Leader element). But you would need to be able to set the values at different breakpoints so that it can look good responsively or define a single breakpoint at which point everything stacks (much easier).
But I think it might be best to add utility classes in the theme – https://totalwptheme.com/css-framework/ – for row-span and col-span. Then you would use those utility classes on each item you insert into the grid. This way it’s defined on the item itself in the extra CSS classname field.
One thing that concerns me is that elements like the Icon Box will need to stretch/shrink without overflowing or clipping (while being responsive) – which is impossible since the user can customize image sizes, text, padding, margin…etc.
Another concern is with elements like the Image element, which allows you to define a height/width, aspect ratio, etc…but inside a Bento Grid all that would need to be ignored since it needs to fill in the defined row/column span. This can cause major confusion to the end user.
This is why it may be best to use utility classes and have a guide on how to use them rather then adding a built-in setting to define the row/col span. This way only users proficient enough, would make use of the functionality.
From what I can see, many examples in that URL you provided are perfectly coded to have the exact amount of text, image size, etc to create the Bento design. Take for example the first item on that site: https://a.cl.ly/NQuXQN0k
Notice how it’s just creating 3 vertical columns but the items added inside each column are designed to fit perfectly. If I add a bunch of text into one of the items it breaks the Bento design.
At the end of the day it will still require the user to be smart about how they set things up so that it all looks good and is also responsive. But I guess that’s just a common thing when it comes to creating these Bento layouts?
I would love to figure out something if you have any added feedback or suggestions please share!
And of course, you could always target the theme’s Grid element with custom Custom CSS to do what you want.
I would also never recommend this…but it would also be possible to use a slider plugin (Revslider or Depicter) to create a bento layout – since you can easily insert content exactly where you want it. I’ve seen quite a few popular themes that do this to create more complex layouts in their demos.
- AJ
ps: I found this article with a pretty decent guide on creating the Bento layout using a CSS grid: https://iamsteve.me/blog/bento-layout-css-grid
Thanks again, AJ.
I understand that is not an easy task and its not a feature request that I cant live without.
Its just something that might help to create even more individual designs and since I know no other theme that compares to Total when it comes to freedom of create and customization I wanted to ask for your opinion.
>> Where things get complex is when items span vertically into the row below.
Exactly my thoughts. Thats the main issue I have. My scenario is 2 rows, 3 cols, 6 cards in total.
row 1: card 1: 2/8 width, 5/8 height card 2: 4/8 width, 5/8 height card 3: 2/8 width, 4/8 height
row 2: card 4: 3/8 width, 3/8 height card 5: 3/8 width, 3/8 height card 6: 2/8 widht, 4/8 height
card 6 ignores the boundaries of the row. I might be able to hack it with overflow, position, etc. but a dedicated tool in Total would make it easier.
Here a fiddle I made: https://jsfiddle.net/moypbnuz/1
>> But I think it might be best to add utility classes in the theme
That would make it easier 
>> Notice how it’s just creating 3 vertical columns but the items added inside each column are designed to fit perfectly. If I add a bunch of text into one of the items it breaks the Bento design.
True, but this is something we also take care with multiple horizontal icon boxes or other columns next to each other. If we want them to be one height without a lot of empty space to some.
>> ps: I found this article with a pretty decent guide on creating the Bento layout using a CSS grid: https://iamsteve.me/blog/bento-layout-css-grid
I saw that too but it does not solve my case. Creating the layout in the guide is already possible without too much customization I would say. Because each item lives in one row only.
>> I would also never recommend this…but it would also be possible to use a slider plugin
I agree, I dont want to use that.
Overall I think if you could create helper classes with grid-column and grid-row that maybe are responsive by default that could be something valuable for customers. A builder module would be a lot nicer but like you said, maybe to confusing to use.
Does the fiddle help to visualize what I mean?
Best, flipstar
I need to push out an update today because there is a new WPBakery update available, but I’ve added your Fiddle to my github issue for this feature request.
One possibility is to create a “Bento” element that only accepts adding a new “Bento Item” element (with some preset styles perhaps). This way you are constrained to the Bento element, which means the element itself could have a field for choosing the column and row span (at each breakpoint).
The concern with this, is we are stuck with a “Bento Item” element and if users wanted to display posts it’s not possible and they can only choose from some preset bento item designs/layouts.
I will keep brainstorming and if you have any ideas or more inspiration let me know, free free to also email me directly at wpexplorer [at] gmail dot com
- AJ
Working on adding some utility classes. I will likely only add col/span 1, 2,3,4 and 5. They will be responsive as well: https://totalwptheme.com/css-framework/responsive-breakpoints/
Sample video with basic usage in WPBakery front-end editor: https://a.cl.ly/6qunjBJN
And since we aren’t defining a height for your rows, as content grows so should our inner elements: https://a.cl.ly/yAuqwvBN
Granted this example is with basic text blocks, but it should be the same with icon boxes (with backgrounds or borders) and with images where the “fill column” is enabled.
Here is a sample with images: https://a.cl.ly/rRuR46dx
In my videos I’m using the general classes so they aren’t responsive. If your grid stacks at a certain breakpoint you would instead use the breakpoint prefix.
For example, if the grid stacks at the “md” breakpoint your class would look like “wpex-md-row-span-{number} or wpex-md-col-span-{number}
You can also use multiple classes to alter the spans at different breakpoints if you wish to move things around as the browser width changes.
I know I could do something more complex and perhaps easier to use for non-developers, but I think the addition of these utility classes should be enough to make some cool looking Bento layouts without introducing a ton of bloat and complexity.
These utility classes are included in the upcoming update to be released today/tomorrow.
- AJ
Awesome, AJ.
Didn’t expect this to drop that fast 
Looks great to me and seems to cover a ton of use cases. Is it possible to combine row and col span with this?
Really appreciate you adding a feature just because one person asked for it. That’s some next-level service. Seen this a few times from you already. You’re honestly one of those rare devs who just gets it and keeps pushing to make this theme as flexible and dev-friendly as it gets.
Can’t wait to play with it.
Thanks ❤
- flipstar
Hi,
Yes you can combine row and col spans. Sample: https://a.cl.ly/bLuL4Lbx
I will write a dedicated documentation for this once the update is live! I’m also working on making the Grid and Flex containers available in Elementor for customers using that builder.
These new utility classes should allow for some pretty nifty layouts with images, icon boxes, text blocks, image banner…etc. So thank you so much for the suggestion and helping figure out how to implement it! The next step would be to add a few patterns that you can use as a basis (already added to my todo list) and then last figure out how we could do this with post/term cards (maybe in v7.0).
Thank you for the kind words 
- AJ
Hello. I have a question. What exactly is the PORTFOLIO folder that is configured in the admin panel? https://prnt.sc/6bJ-RCsvLCHC
Does it count as a category or not? Are the publications I create in it posts or pages?
I’m asking because neither the portfolio nor the pages published there appear in the sitemap.
If the Post Type Shortcut settings currently say “portfolio” and the URL is https://mysite.com/portfolio/page1,
but I want to change the name “portfolio” to “works,” the link will then look like https://mysite.com/works/page1.
Will this be reflected in SEO? Will it be a different page?
Hi,
This is a a custom post type – https://developer.wordpress.org/themes/classic-themes/basics/post-types/
In WordPress pages are technically “posts”, so are images in the media library and even your menu items. The reason WordPress has posts and “pages” separate is to make it easy to separate your blog from your main site content. And this is what custom post types (like portfolio) are for.
Now, if you don’t need or want to use the Portfolio post type you can disable it via the Theme Panel. The same goes for the theme’s built-in testimonials and staff post type.
And if you need to create more custom post types I created a free plugin for that – https://totalwptheme.com/docs/adding-custom-post-types/
In fact, if you wish you can disable the Portfolio post type via the Theme Panel and instead use my plugin to create a post type named “work” if you prefer to have the items saved using that word instead of portfolio in the database.
By default the Portfolio actually uses “portfolio-item” for the slug not “portfolio” – but if you imported a demo that had a main portfolio page then perhaps that is the /portfolio/ you are referring to – in which case you would just rename the page itself. To change the default “slug” for individual portfolio posts you would do it via the Settings page – https://a.cl.ly/nOuOOy9w
Now, because of how WordPress works, if you want standard pagination on the main portfolio page that displays your items like page-1, page-2, page-3…it’s important that you do not have a regular page with the same slug as your post type slug as it will break pagination. That’s why by default the theme uses “portfolio-item” for the slug and not “portfolio” to prevent issues with pagination.
When working with post types like the Portfolio I also want to mention that it’s a good idea to set them up in a way that makes it easy to add and manage your items. In Total, this would be done primarily via Dynamic Templates – https://totalwptheme.com/docs/dynamic-templates/ – this way when you create new portfolio items you are not using a page builder every single time. Instead you create the design for all the portfolio posts using the page builder via a dynamic template that’s assigned to the post type. Generally, post types should have a consistent design across each post.
Again, the Portfolio and other default post types are 100% optional and you can disable them in the Theme Panel. If you don’t need to showcase many works, it may be best to just use a single page to display sample work and disable the Post Type.
- AJ
Hi
My sticky header and scroll link don’t work, but when I’m logged in everything works correctly. What could be the cause?
Hi,
If it all works when logged in, most likely the issue is related to a bug with an optimization plugin that is modifying the theme’s javascript files incorrectly. These optimization plugins generally only run for logged out users.
The theme uses modern techniques to optimally load theme scripts and there are some plugins out there that will strip out these optimizations and cause them to break. More specifically, Total uses the defer attribute on it’s JS files but adds them in the <head> of the site this can help the site load more optimally. If a plugin removes the defer attribute, the file won’t work as expected anymore because it will cause the script to run before the site has rendered, so elements like the sticky header or local scroll link won’t “exist” when the script is executed. I’ve seen this issue with a few minify/combining plugins.
If you share the URL in question I can tell you exactly what’s going on 
- AJ
Hi! I recently buyed a font awesome pro. I wish use thin icons in your modules with icon. Is that posible? thanks
Hi,
Yes you can use the FontAwesome Pro icons in the theme’s elements.
You will need to download the SVG files for the icons you wish to use.
Then, if you are using WPBakery you can use the theme’s custom button when selecting an icon – https://a.cl.ly/DOuYY704
And if you are using Elementor you would use this option: https://a.cl.ly/E0uvvpGD
SVG uploads are not allowed in WordPress by default, so you will need to first install a plugin like Safe SVG so you can upload the icons you want to use to the media library. Or add some custom code to your site to enable SVG uploads.
It’s also possible to replace the theme’s icons entirely with your icons via a child theme. See here: https://totalwptheme.com/docs/snippets/custom-icons-json/
It’s worth mentioning, that the reason you would upload the individual icon SVGs, is because this way you are only adding the icons you need on your site. If you were to instead use FontAwesome as an icon font, that requires loading a bunch of CSS and all of the icons. This is very inefficient and it will slow down the site and lower it’s page speed scores. Also SVG’s are simple HTML so they render inline, it’s the best way of displaying icons on a site.
- AJ
Hi AJ
In Settings > Permalinks I have a custom structure:
/resources/blog/ category / postname /
Now the issue with this is that it also prepends /resources/blog/ to all other post types too.
PTU has this setting to stop that happening:
With Front (default: true) Should the permalink structure be prepended with the front base (example: if your permalink structure is /blog/, then your links will be blog/{post_type_slug}/ if enabled).
But Just Events doesn’t seem to have this setting, so my single Event URLs are including resources/blog
Can you let me know how to make this adjustment to Just Events URLs?
Thanks
James
Hi James,
WordPress has a couple filters you can use to modify the arguments of any registered post type. Here is a sample snippet for hooking into just_events and changing the with_front to false:
// Modify the just_event post type args
add_filter( 'register_just_event_post_type_args', function( $args ) {
if ( isset( $args['rewrite'] ) && is_array( $args['rewrite'] ) ) {
$args['rewrite']['with_front'] = false;
} else {
$args['rewrite'] = [
'with_front' => false,
];
}
return $args;
} );
I personally would recommend keeping the URL’s much slimmer (site/post-slug/ or site/cpt/post-slug) not just for SEO reasons but also for readability.
- AJ
Hi AJ
These blog posts, eg
https://shorturl.at/NPBoaUse a Dynamic Template for layout. The template includes the Featured Image immediately beneath the date / author meta.
However it’s not showing up.
Any idea why?
Thanks
James
Hi James,
There is no way I could know why it’s not working without logging in and looking. Inspecting the source code I don’t see any image element, so the element itself is not being added to the code. This means either there isn’t any element added to the template or there isn’t any image being fetched.
To confirm, you’ve inserted the theme’s Image element and set the source to “Featured Image” like this: https://a.cl.ly/GGujjg4P
I do see the post has a featured image defined and there aren’t any known issues with theme’s element fetching the featured image so it should be showing up. Can you double check the template and if you still can’t get it working please send me temp access so I can log in and see what’s going on. Thanks! https://my.totalwptheme.com/
- AJ
Thanks AJ
I have opened a ticket for you to look. It’s probably something simple, or something I did and have forgotten !
Got it and replied back 
Hi,
I can see in the error log that the security nonce is not validating if you try loading items and check the browser console you will see the following error:
vcex_ajax: atts nonce did not verify
By any chance were you manually overriding the vcex_post_type_grid.php file via a child theme inside a “vcex_templates” folder? If so, the file will need to be updated according to the changes made in Total 6.4 – specifically the following line:
$output .= vcex_get_loadmore_button( 'vcex_post_type_grid', $atts, $vcex_query );
which needs to be:
$output .= vcex_get_loadmore_button( 'vcex_post_type_grid', $raw_atts, $vcex_query );
So the variable $atts needs to be $raw_atts.
This is because in Total 6.4 I modified the security check so it uses the element settings in the check to prevent someone from arbitrarily trying to load more items with different settings (like a different post type for example). Previously I was using a basic nonce which for most cases is fine, these changes hardens things. So if you are getting the error I mentioned from the console, it means that the security didn’t validate so the settings passed to the load more functionality aren’t matching the settings used on the element. The only reason I can think of this happening is if the file was modified via a child theme and it’s not up to date. Please check and let me know otherwise.
If you wish you can email me directly to wpexplorer [at] gmail dot com as well if you want me to log in and look.
- AJ
Thanks very much indeed AJ. Yes, I can see that error in the console. I do indeed have a child theme but can’t see any vcex_templates folders and don’t know how to track this down. Nor do I know how to keep a child theme “up to date” as I am not a coder. I will email you. Thanks again!
Got your email, will reply back to you shortly. Thank you for your patience!
Thanks so much for your email AJ and I have replied with the info you needed.
Hi, AJ I would like to know if it is posible to use jetpack Social to automatically share our new posts to Facebook, Instagram. Is there other options with total?
Thanks in advance
Sonia
Hi, AJ what we want to share automatically are portfolios, not just posts. Is that posible with jetpack social or maybe is there any other plugin to do that? can you help me with that?
Hi Sonia,
Auto sharing posts is not theme territory so you would definitely need a plugin to do this. I’m not familiar with JetPack social but according to their landing page – https://jetpack.com/social/ – it should be possible to do what you want. But from what I understand it shares the post when it becomes published so you have to check a box to share it while it’s drafted.
This free plugin – https://wordpress.org/plugins/social-media-auto-publish/ – has some decent ratings and it also supports custom post types (portfolio).
Personally, I don’t think it’s worth installing and maintaining extra plugins when it only takes a couple minutes to manually post to social media when you publish new posts. I’m also not sure how good of a strategy it is, manual publishing is likely more effective.
- AJ
thank you so much, AJ for your answer. I will take your advice into account
Hi AJ. I thought I’d ask this question here, instead of using the Support portal as I think this might be a question a lot of users have.
How can I make all of the tabs open by default in WooCommerce when they are set to appear next to the image?
There is a setting to have the first tab open by default (when set to use the accordion format). and an option to allow tabs to remain open. But, I want them all to be open when the product page loads.
Many thanks, Nick
Hi Nick,
Having all tabs open wouldn’t make too much sense as it defeats the purpose of tabs/accordion – which is to slim down content.
I’m thinking perhaps what you actually want is to have all the sections visible always. Is that correct?
If so, what you would need to do is use the default WooCommerce tabs then add custom CSS to the site to force them to be visible (similar to the option I have called “Expanded Tabs on Mobile”). Here is the CSS you can use:
.woocommerce-tabs .wc-tabs { display: none !important; }
.woocommerce-Tabs-panel,
.woocommerce-Tabs-panel > h2 { display: block !important; }
Alternatively you can create a custom WooCommerce template, this way you don’t need to have the details inside tabs and you can design the products how you’d like: https://totalwptheme.com/docs/woocommerce-single-product-template/
Now, if you really want an accordion (so the user can close sections) and have them all visible to start, it is possible with a little code added to your child theme functions.php file or via a code snippets plugin: https://totalwptheme.com/docs/snippets/woo-product-accordion-open-all-toggles/
- AJ
Awesome reply as ever! Thank you. Gave me every option I wanted.
Hi. Can you tell me where I can find instructions for setting up Dark Mode? How can I make the toggle switch so it’s not in the menu, but next to the menu like in the screenshot? https://prnt.sc/6PizPeBQk5UD
Hi,
The Dark Mode docs are here: https://totalwptheme.com/docs/dark-mode/
If you want to have the dark mode toggle next to the menu and not inside it you will want to use a Flex header style: https://totalwptheme.com/docs/header-styles/
The Flex Header styles allow for adding content via a ‘Side Content” field: https://totalwptheme.com/docs/header-aside/
The side content will display next to the header on desktop and also on mobile.
I made a little video example: https://a.cl.ly/OAuydqyq
Let me know if you have any issues or questions!
- AJ
Thank you very much for the detailed instructions and video!
Hi AJ
Can you take a look at this for me: https://shorturl.at/rx8xSThe cards are sorted using the AJAX filter, but there are two issues with it.
1. When a filter is active, pagination doesn’t work, it leads to a blank page. I am not sure if this has always been an issue, or whether it is has occurred recently.
2. The filters are not working as intended. If you click any filter to activate it, clicking it a second time should deactivate it. But it’s not behaving. Example, click “Caring” and it correctly shows the 12 items. But click it again, and although the all cards are shown the filter buttons have not reset, and look like they did when “Caring” was active. I think this issue has crept in since I built this page, as I tested it extensively and would have noticed this.
Thank you
James
Hi James,
1. Your site appears to be missing the crucial data-vcex-pagination=”numbered_ajax” data attribute on the Post Cards element. Can you edit the Post Cards and make sure the pagination is set correctly to the “Numbered (Ajax)” pagination type and not just “Numbered”.
2. I see what you are saying, this does appear to be a bug with the filter’s caching function when using one of the multiple selection filter types. As you mentioned, it’s resetting the grid but not the buttons. I will need to hold a cache of the filter buttons as well so they can return back to their previous state as well. I am able to recreate the issue locally and working on the fix right now. I will reply back as soon as the fix is ready!
- AJ
Ok, I fixed the filtering cache issue. Here is a video showing it working correctly now on my test site: https://a.cl.ly/7KurwL7N
Thank you so much for reporting the bug!
If you want the fix now so you don’t have to wait for the official update you can simply delete and re-install the Total Theme Core plugin via the WP admin – I patched the plugin version that gets downloaded when installing it via the Appearance > Install Plugins. You will need to clear your site and browser cache after updating though, because it is a javascript fix and the plugin version is still 2.4.2 since it’s not an official update – so there won’t be any cache busting.
Let me know about the pagination issue!
- AJ
Thanks AJ.
Re 1. , the option to change pagination is not available, see screenshot:
https://ibb.co/p6xZnyrRWhere in the Customizer can I find it? I had a look round but wasn’t sure.
Thanks
James
Hi James,
The option for the pagination is under the Query tab – https://a.cl.ly/YEuEYX52 – this is because depending on what option you select, the Pagination tab may or may not show up, so the setting can’t be in that same tab.
Sorry not sure what you mean about the Customizer….Reading through the thread I’m not seeing any mention of the Customizer.
If what you are wondering is how to update the plugin, what you do is log into the site and go to Plugins. Find and delete the Total Theme Core. Then go to Appearance > Install Plugins and re-install/activate it.
- AJ
Thanks AJ – it all works. No idea why I was looking in the Customizer ! 
Just remembered why I looked in the Customizer, it’s because of this wording on the Pagination tab (I realise I should have been looking under the Query tab) – but anyway this is where my confusion arose:
https://ibb.co/p6xZnyrRHi AJ, I’m using a navigation bar in conjunction with Post Cards as described in the Total docs. It shows taxonomy terms for a custom post type, and I’ve set it up with the Ajaxed filter mode, as shown in this screenshot https://prnt.sc/_bpBlVxVVnZH so that clicking one of the nav buttons filters by the custom post type’s category.
This has been working for a year or so, but recently it’s started sporadically failing, with the result that it shows all categories in the post type and is no longer limiting to the categories selected with the query in the Post Cards UI. I also have “show post count” enabled, and this no longer works either, just shows (-) next to the button label.
This feels like it’s got to be a caching issue, because when I use Chrome the page loads broken, but it fixes itself when I reload. Oddly, when i do the same in incognito, reloading the page does not fix the problem. Except sometimes when I turn the Siteground cache off and on again, refreshing the page in incognito mode does fix it. In all cases, the page loads broken whether the SG cache is on or not, so the only thing that’s sporadic is whether it works or not in incognito. WUT? Oh, and if that’s not interesting enough, the whole problem is sporadic, i.e. sometimes it works as intended, just as it has for months and months, until now.
FWIW, the site is using the free CloudFlare plan’s CDN, but I put it in development mode and that seemingly has no effect on this issue. Any insights?
Hi,
Can you share the URL in question?
AJAX functionality is generally not cached by the server, if you are seeing the (-) and not the counters most likely what’s happening is that the server is timing out or crashing. AJAX generally also by-passes CloudFlare because it needs to send the direct request to your database to get results in “real time”.
It actually somewhat makes sense if the issue only happens sometimes, because more likely your server is running out of resources or blocking the request.
Now, the counter functionality is somewhat intensive I would recommend you first try disabling that option. This requires actually sending a second request to the server that loops through all your posts in order to calculate how many are in each category – this is done when the page loads and also after each request. If you have many posts and/or terms it’s possible your server is timing out or throttling the requests.
A good way to tell if the issue is server related is to open the browser console and refresh the page until the issue happens and when it does check the error logs and if you see a 500 error, it means it’s a server error. Also the theme does record it’s own errors in the console which could be helpful.
If you aren’t on a high end server, you may want to consider not using AJAX because of the whole fact that it by-passes caching. Instead just link to the categories directly. You can create a dynamic template to insert a menu at the top of all the archives – https://totalwptheme.com/docs/dynamic-templates/ – for example this demo which uses a dynamic template for the blog with a navigation bar to link to each category: https://totalwpthemedemo.com/boomerang/blog/
Ajaxed filtering may seem cool, but in reality it’s not the best solution in terms of site speed, accessibility, seo and server resources. I generally recommend linking to cacheable pages whenever possible.
- AJ
Thanks for the thorough answer. I’ve turned off the document counts for simplicity’s sake, and if this helps, I can likely convince the client to do without those. I tried setting the navbar’s filter type to Simple Show/HIde and flipping back and forth between that and Ajax, but either way it seems to choke, with the loading spinner churning away for a painfully long time. I don’t see any 500 errors in the browser console, but I’m not too experienced in using that feature, so I may be missing something. The URL in question is https://westhamptonma.gov
I understand the speed and SEO differences for having dedicated pages for this, but the use case here is to give users a way to see a quick look at these doc types without having to navigate away from the main page. SEO isn’t important at all for this application, and instantaneous loading isn’t crucial either, just as long as it’s not agonizing to use. The client has low traffic and doesn’t want to spring for premium hosting just for a feature or two, but to me it seems like there should be something fixable, as just loading this one query shouldn’t feel like it should take 10-15 seconds.
Note that I think you’re onto something regarding server processing speed, because if I turn the doc counts back on, the problem with showing unfiltered content and (-) counts comes back, BUT something I didn’t notice is also happening: it usually eventually loads if you wait long enough. It’s double-digit seconds, so I never did wait it out until now, and I’m sure no regular user would either, but if there’s a way to make the query happen faster, I think I could find something that’s good enough.
To clarify one bit of background: if I have the Filter set to Ajaxed, it takes forever to load if I click the filter buttons, but the initial page load seems reasonable most of the time. If I have it set to Simple Show/Hide the page loads quickly enough, and it filters quickly, but if I hit Load More, it takes forever to run that query and redraw the list of posts. Either way, the query seems to be the problem, and choosing Ajaxed or Show/Hide just puts the painful loading time in different moments.
Hi,
Oh, I remember this site 
Ajaxed means that each time you click a filter it will send the request to the server to get the posts for the filtered item. When you use the simple show/hide it’s only going to filter items already on the page. The later is generally only if you have a set number of posts without any pagination (load more). If you have a lot of posts and you need pagination, then you would want to use AJAX to fetch the posts.
I’m not seeing any errors in the console and the items do load but it does take a long time. Unfortunately that’s just server related, it means the server is taking a lot of time to process the ajax request: https://a.cl.ly/nOuOOx7G
In WordPress ajax requests are sent to admin-ajax.php it’s possible there are other plugins on your site that are running in the WP admin when not needed that could be slowing things down. But it’s also possible it’s just a slow server response. Troubleshooting why it’s so slow can be a bit tricky and may require disabling plugins to see if any of them are causing the slowness and/or reaching out to the hosting company to see if they can assist. But there isn’t anything that can be done from the theme’s perspective as it’s just a basic request for posts using a WP_Query.
It’s also very possible, depending on what server your site is running on that this isn’t “slow” but rather the default server speed (which is slow).
And yes, for this specific page it wouldn’t make any sense to have standard (non-ajaxed) pagination or filtering because there is a lot of other content, so it would be weird.
- AJ
Hi AJ
I’ve made a single blog template using Dynamic Templates. I like the “Blog grid” element as a quick way to show latest articles in the sidebar. However I notice the date does not have a calendar icon, so it’s not consistent with the “meta” element seen in the content.
Any way of adding it? Or, I suppose I could create a custom card for the latest articles instead? Would that work?
Thanks
James
Hi James,
I think creating a custom card is best as it’s the easiest and you will have full control. Also the Post Cards element is slightly faster. Plus, when you use elements like the Blog Grid it means you can’t enable WPBakery Slim Mode – https://totalwptheme.com/docs/wpbakery-slim-mode/ – which really slims down the backend as a lot less elements are registered.
To create a similar custom card can be a bit tricky if you aren’t sure how to do it because of that left aligned image. But it’s very simple to do using the theme’s Icon box with some shortcodes and dynamic variables.
Here is a video example showing how I would setup the custom card: https://a.cl.ly/4guEGzx6 (i’m just doing it on the homepage, you would of course create a custom card)
Here is the code if you want to copy/paste into a custom card – https://gist.github.com/ (past via the WP classic editor in “code” mode).
Alternatively you can use the Blog List 1 default Card style
- AJ
Hi AJ Hope you’re keeping well.
I’d like to use one of your demos: https://totalwpthemedemo.com/modern-agency/ for my existing website: https://quantumleapgolf.com/
But if I use the demo importer function, Im guessing it will chnage the entire website, and i dont want to do that.
I think (still figuring it out) that i’d just like to use the homepage design from the demo.
If i didnt have you to direct me, i would set up a temporary sub-domain and import the demo into that. Then i could copy the page code across into a new page on my current website and take it from there.
Is that about right? Or is there a better way?
Thansk again AJ. All the best, Tony
Hi Tony,
You are 100% correct, you wouldn’t want to import a demo into an existing site. But if you want to replicate any demo page you can use the Demo Inspector Tool – https://totalwptheme.com/docs/demo-page-inspector/ – so you can paste in any demo page and it will spit out the code used for that page which you can copy/paste onto your site – https://totalwptheme.com/docs/how-to-add-demo-inspector-code-to-your-site/
I would recommend not overriding the homepage of your site yet, rather create a new page and edit it and once happy delete the old homepage and rename the new page and set it as your new homepage.
Couple things to mention:
1) When you copy over the page content it will not include the images, post types, etc. So it may not look exactly the same but it will give you the general layout to work with.
2) This specific demo is using a transparent header set for the homepage only – https://totalwptheme.com/docs/overlay-header/
- AJ
Hi AJ
Thank you for your help. Your demo inspector tool is brilliant – love it!
I’ve drafted up my new homepage based on the demo – please see here: https://quantumleapgolf.com/test/ (password = test)
You’ll see I’ve used the Portfolio Grid element as you do in your demo, looks great but I’ve not been able to make it work properly. Of course it’s intended to link to portfolio items, but I want to link it to specific pages. If you click the first one you’ll see it works. That’s only because I’ve ‘fudged it’ by using a 301 redirect to send it to the required page – but of course that’s not good practice.
So… how can I keep the new home page looking like it does but with the 6 images (currently displayed with the potfolio grid) linking directly to the required pages?
Thank you in anticipation, Tony
Hi,
Instead of the Portfolio Grid you can use the Post Cards element. Set the Card Style to “Image” then you can add the hover effect via the Media tab.
I will actually update the demo to do the same, since the Post Cards is the newer/preferred element. I made a video of me making the changes so you can see how it’s done: https://a.cl.ly/6qunAel7
For linking to pages choose “Page” as your post type and then use the “Query specific posts” setting to show specific pages: https://a.cl.ly/nOuO4kyO (in WordPress pages are technically posts as well under-the-hood).
- AJ
Thank you AJ – spot on!
Hi AJ
Is it possible to use the Header builder for mobile only?
I have a tricky design to build, and the desktop header is absolutely fine using standard headers (no header builder needed) but the mobile design can only be achieved with the header builder.
I know I could do BOTH desktop and mobile in the header builder, but I don’t want to change the desktop header as it works so perfectly.
Thanks
James
Hi James,
Once you define a template for the Header Builder it’s applied always, so it’s not possible using that functionality. But it’s 100% possible to create a template to use on mobile and hide the default header on mobile.
I had some snippets already to show you how to hide the header on mobile and also how to insert template content on the site, but not a dedicated snippet for what you were asking so I added one.
See here: https://totalwptheme.com/docs/snippets/mobile-header-template/
Let me know if you have any issues or questions!
- AJ
Thanks AJ, that looks great. Just one other thing, I would need to hide the top bar on mobile too – is that included in this script or if not can you tweak the code to include hiding the top bar on mobile?
You can hide the top bar on mobile using the existing settings under Customize > Top Bar > General > Visibility.
Is there a way to order WPbakery templates in alphabetical order when choosing a template to add in frontend editing. I have a lot of templates and it takes a long time to find the one i need every time. Thanks.
Hi,
Re-ordering the templates depends on how they were created. I had a look at the code in WPBakery and if your templates were created using the Templatera plugin, there is no way to sort them. However, if your templates were creating without templatera and just using the WPBakery popup that looks like this – https://a.cl.ly/Z4u42QQ9 – these are actually already sorted alphabetically by default.
This is an inconsistency in the plugin, I will let the Templatera plugin developers know and hopefully in their next update they can have the Templatera templates also sorted alphabetically.
I can suggest that they add a search field as well, but I’m not sure that’s something they would do as it’s a bit niche.
May I ask why you have so many templates?
I generally do not recommend using templates (at all) for a couple reasons:
- These are just patterns so they can’t be edited globally, if you are adding hundreds of “templates” on a site and you ever want to update all of these sections you will still need to do so manually.
- For most sites it’s simply not needed to re-use the same design so many times that you need to store them as templates. If a site has many sections that use the same layout, there are methods in WordPress and in the theme that can be used to create these in a more dynamic/global way.
If you would like to share some examples, perhaps I can suggest more future-proof and easier to manage alternatives (if possible).
For example, I have seen sites where the user was creating templates that they inserted in every single post (and they had hundreds of posts). Something that would have been much better done via a Dynamic Template and controlled globally – https://totalwptheme.com/docs/dynamic-templates/
- AJ
Hi AJ,
Thanks so much for your reply.
I create templates in both ways – I sometimes save a layout I’ve been working on as a template and sometimes I create from scratch in WP page builder.
On this website we run courses using The Events Calendar. Most of our templates are for course descriptions i.e. content. We run many different types of unique courses. With the events calendar we are unable to simply duplicate a course (event) and so each event must be manually added. To save time I made templates for each course and then when I create a new event (course) I add the template for that course in page builder. This means that when something changes on all our One Day Glassblowing classes for example or if I need to add a new image or change text – I just alter the template, and this changes all instances of this template on event posts. Sometimes we don’t run a course for a couple of years, but the template is still there for when we do.
So currently the way I use templates does mean that I can effect changes globally for specific events as the templates are used for global content than layout although I tend to use the same layout for courses.
I haven’t investigated dynamic templates yet, but do you think this will work for supplying global course ‘content’?
This is why there are so many templates. I haven’t found a better way to do this, and this is why it’s hard when adding the relevant course template to my event – scrolling through them is a bit of a pain. As a workaround, I just recently changed the date of my most used templates (One Day Glassblowing etc. ) to put them at the top of the template list when adding in page builder (as the ordering appears to be by date).
Again, thank you for taking the time to reply.
Hi,
If I understand correctly, this changes things…I thought you were doing this: https://a.cl.ly/jkukjDg1 – which just creates “patterns” that can’t be edited globally.
Based on your information, it sounds like you are using Templatera and inserting the templates via the Templatera element. This way you can still edit them globally. In which case the dropdown you want to change is this one: https://a.cl.ly/NQuXn1RJ
Correct?
If so, it’s possible to modify this field in various ways. In fact you can turn the field into a searchable field. I wrote some code that you can add to your child theme or a code snippet plugin that will turn the dropdown into an autocomplete field. This way you can start typing and it will search the templates and return the ones who’s name matches your search.
Here is a new snippet with the code: https://totalwptheme.com/docs/snippets/templatera-select-autocomplate/
And here is a video of the code in action: https://a.cl.ly/rRuRdoqr
This will be much easier than sorting alphabetically as long as you know the name of the template you want to add 
I hope this is what you were referring to and you find this helpful, if not please let me know!
- AJ
Hi AJ, That’s exactly right! and a searchable autocomplete would be great.
I did put the snippet you provided into my child functions file and it did make the template field into an autocomplete/searchable field, however on my site it didn’t work – i.e. when i add anything it just gives me back ALL the templates in the same order (date) as before. For some reason it isn’t working at finding templates.
Thanks for your help. - Kim
Hi Kim,
Sorry about that, I did make a little mistake in the code. I’ve updated the snippet: https://totalwptheme.com/docs/snippets/templatera-select-autocomplete/
I forgot to pass the variables $search_string in the second function and $value in the 3rd function.
Sorry about that!
- AJ
Thanks AJ – Works perfectly – you’re a star!
Hi AJ, I’m posting this in Comments, rather than on your support site, in case it’s useful for someone else using The Events Calendar from Modern Tribe.
A couple of years ago, you provide a nice little code snippet that allowed me to override TEC’s default single event template with a Dynamic Template from Total. That code still works perfectly on the site you designed it for, but when I paste it into functions.php for a new site, and swap out the template ID for the one in use by the new site, it doesn’t work. No idea what I’m missing, can you provide any insight? Here’s the code:
// Set template for singular events.
add_filter( ‘wpex_single_template_id’, function( $template_id ) {
if ( is_singular( ‘tribe_events’ ) ) {
return 53500; // I’ve added the ID from the new site here and triple-checked to make sure I have the number right
}
return $template_id;
} );
Unfortunately I’m stuck with TEC instead of your light and tidy calendar plugin, since I need functionality that they have and yours doesn’t (yet?).
Hi,
I’ve tried many times to get the Events Calendar plugin to work with dynamic templates but because of how it’s coded it’s nearly impossible. The plugin has changed a lot over the years, so I’m not 100% what could be going on, but I think in order for the dynamic template to work using the code you mentioned requires setting the Display > Events Template to “Default Page Template” like this: https://a.cl.ly/Z4u42QqZ
Which was how the plugin worked originally, before they introduced the new and default “Events Template” option.
Let me know if changing that setting doesn’t work!
- AJ
Aw, that sounded so promising, just the kind of janky maneuver that always seems necessary with TEC. . . but nope, hopes dashed. For what it’s worth, the site where the template redirect is actually working is using Default Events Template, not Default Page Template anyway.
Got any other ideas? Happy to provide a login if that’s helpful.
Wait, stop the presses. . . I just noticed my FTP program was waiting at the “do you want to overwrite the remote file” prompt
Geez. Once I said YES, it worked! Thanks for saving the day.
(as always)