Hi,
When activated , toolset view make a lot of js conflit with wordpress.
Post are not loaded on the front home page,
How to solve ?
I have tested with another theme, ( base theme of wp ) it 's the same case.
enlace oculto
See js errors
I can give you a back office /FTP acces to the dev version of this website
URGENT
Thanks
I visited your site and could see a JS error in the console, but it's not related to Toolset.
It looks like it comes from something called "mojo signup forms".
If you are not sure what is responsible for that, I suggest you disable the plugins except for Toolset on your site, verify that there are no errors, and then re-enable the other plugins until you see the error appear.
Hi Nigel,
As you can see now, i had disabled all plugins except toolset and woocommerce, and it' s the same problem.
If you unactive toolset view, the blog load normally.
Thank to take a look.
Best regards,
Stephan
Hi Stephan,
Thanks for writing back.
I've performed some tests on my website with similar settings, but couldn't reproduce these errors.
This suggests that something specific to your website or server is involved.
Do I have your permission to download a clone/snapshot of the staging website? This will help us in investigating this on a different server, in more depth.
regards,
Waqar
Thank you for the permission and I've downloaded the website's clone.
I'm currently performing some tests and will share the findings, as soon as this testing completes.
Thank you for your patience.
Thank you for waiting.
During troubleshooting, I noticed that the errors shown in the browser's console are fixed, if the following embed code from the MailChimp is removed from the widget area:
( WP Admin -> Appearance -> Widgets -> Default Sidebar )
<script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us17.list-manage.com","uuid":"86b317d46547fd8bb35aadde4","lid":"0362c70588"}) })</script>
You can remove that code from the widget area and instead load it using a custom function attached to the "wp_footer" hook.
( ref: https://developer.wordpress.org/reference/hooks/wp_footer/ )
For example:
function function_for_mailchimp_form() {
echo '<script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us17.list-manage.com","uuid":"86b317d46547fd8bb35aadde4","lid":"0362c70588"}) })</script>';
}
add_action( 'wp_footer', 'function_for_mailchimp_form', 9999999 );
The above code snippet can be included through either Toolset's custom code feature ( ref: https://toolset.com/documentation/adding-custom-code/using-toolset-to-add-custom-code/ ) or through the active theme's "functions.php" file.
Thank you Waqar for your assistance.
By removing the code in the widget, js errors disapear, it's fine, but doesn't resolve the default display of the blog :
enlace oculto
By disabling toolset view, the blog is loading.
I found the part of the adjustment which generates the blockage :
enlace oculto
In loop selection, if accueil/blog is checked, the blog doesn't load, if unchecked, home page blog is loaded.
Why ?
Thank you for your help
Thanks for writing back.
Your observation is correct and this is expected.
When no WordPress Archive ( from WP Admin -> Toolset -> WordPress Archives ) is assigned to the loop "Home/Blog", the homepage is shown using the active theme's template.
If you'd like to keep using the theme's template for the homepage, then you should not override it using the Toolset WordPress Archive feature.
Yes i understand,
But there are filtered archives (a lot) that should appear when using the loop home/blog, but none appear when the option is checked, that the problem.
Best regards,
Stephan
I'm sorry, but I couldn't understand the issue mentioned in your last message.
On the staging website, I see that the WordPress Archive "Archive for Home-blog Archives" is set to show posts from the category "ACTUS" using infinite scrolling and it is showing correctly on the homepage.
Can you please the exact details about what you expected and what you're seeing instead?