Jos Velasco
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Redirect after adding new product?Hi, @jax2!
I ran a test with this code, and it works on my end. I added it as a snippet using a plugin.
add_action( 'post_updated', 'redirect_to_add_new_product', 10, 3 );
function redirect_to_add_new_product( $post_ID, $post_after, $post_before ) {
// Check if the post type is 'product' and it's not an auto-save
if ( $post_after->post_type === 'product' && $post_after->post_status === 'publish' && $post_before->post_status !== 'publish' ) {
// Redirect to the Add New Product page
wp_redirect( admin_url( 'post-new.php?post_type=product' ) );
exit;
}
}If the product has not been published and you hit publish, it will take you to add a new one.
Regarding the server’s speed, have you tried adding indexes to improve the database’s speed? A plugin like Index WP MySQL For Speed has worked for me. Docket cache can also help.
Another option would be to upgrade your VPS.
Please don’t hesitate to contact DreamHost with any questions to help you further.
Forum: Plugins
In reply to: [Create Block Theme] Export theme, override and updateI don’t want the child theme to break if some code doesn’t work anymore. I want the parent theme to handle the code and save the customizations in the DB.
- This reply was modified 3 months, 2 weeks ago by Jos Velasco.
Forum: Plugins
In reply to: [Accordion Toggle] Browser crashes when synced patterns are insertedIt works. The site is way faster now. Thank you!
Thanks, Nick!
Page type > is any of the selected > Front Page (Homepage) from the Site Editor.
The HTML is simple.
Now that you mention Screen Size does not work, I’d better group the blocks because I’ll need that functionality later.
Forum: Everything else WordPress
In reply to: How to export WordPress native eventsHi!
As far as I know, WordPress does not handle a kind of post called Event. I guess probably your theme or plugin is defining them as a custom post type.
Can you confirm this by disabling all your plugins or changing to a default theme?
Then, with more information, we can help more.
Forum: Themes and Templates
In reply to: [Spectra One] Transparent header overlaps contentHey, @mohsinbsf. It’s almost three months since my last message. I still see the issue. Do you have any news? Maybe a workaround to replace the header could work.
Forum: Plugins
In reply to: [Add Custom Body Class] Body class not added to Woocommerce shop pageHello, I think the plugin causes a fatal error in PHP 8.1
PHP Fatal error: Uncaught Error: Call to undefined function is_shop() in ...wp-content/plugins/add-custom-body-class/add-custom-body-class.php:43
- This reply was modified 1 year, 9 months ago by Jos Velasco.
The same happened to me and it worked by logging in incognito mode. This would be an alternative to clearing the cache.
Forum: Plugins
In reply to: [Gutenberg] What is the difference if Gutenberg is Deactivated?The plugin is updated approximately every two weeks.
This beta plugin gives you access to the latest Gutenberg features for block and full site editing, as well as a peek into what’s to come.
If you want cutting edge beta features, including more experimental items, you will need to use the plugin.
Forum: Plugins
In reply to: [Gutenberg] Style whole pageYou could group blocks using the Group block and then assign a custom css class or Id to the group. Then you could copy all the content to another Group block.
Since Gutenberg Version 12.8 you can group groups from the block settings menu.
Alternatively you could add a css class to the page body using a plugin like Add Custom Body Class.
Thank you very much. Works as expected.
Forum: Reviews
In reply to: [Gutenberg] The best way to see the future of WordPressFor me that would be some minor CSS that I’d had to apply again since the HTML keeps evolving.
Forum: Reviews
In reply to: [Gutenberg] Nada bueno bajo el sol?Qué le falta?
My customer’s theme was old and not updated by the author.
The theme didn’t check if the plugin was activated so I disabled the call to the function yith_wcmg_is_enabled in wp-content/themes/makali/woocommerce/content-single-product.php
<div class="single-product-image <?php echo esc_attr($imageclass); ?> <?php if($enable_slider /*&& yith_wcmg_is_enabled()*/){ echo 'slider';} else { echo 'noslider';} ?>">
Forum: Plugins
In reply to: [404 Solution] Add redirects from JoomlaYeah, it will always be static. It is just the way Joomla defines the permalinks.
- This reply was modified 3 years, 7 months ago by Jos Velasco.