23249 comments found.
I managed to write a script to transfer all my porto blocks to the new theme builder blocks. If any one is interested here is the script, add to functions.php in your child-theme and run it by visiting https://yourwebsite.com/?run_builder_script
Try on staging first!
if (isset($_GET['run_builder_script']) && !get_option('builder_script_complete')) {
add_action('init', 'builder_script_function', 10);
add_action('init', 'script_finished', 20);
}
function builder_script_function()
{
// WP_Query arguments
$args = array(
'post_type' => array('block'),
'fields' => 'ids',
'posts_per_page' => -1,
);
// The Query
$query = new WP_Query($args);
$posts = $query->posts;
foreach ($posts as $id) {
set_post_type($id, 'porto_builder');
echo 'set post id ' . $id . ' type to porto_builder<br />';
change_post_meta_after_posttypechange($id);
wp_set_post_terms($id, 'block', 'porto_builder_type');
echo 'set post id ' . $id . ' term to block<br />';
}
}
function script_finished()
{
echo 'set option builder_script_complete to true to make sure to only run once<br />';
add_option('builder_script_complete', 1);
die("Script finished.");
}
function change_post_meta_after_posttypechange($id)
{
$current_custom_postmeta = get_post_meta($id, 'porto_builder_type', true);
$newmeta = 'block';
if ($current_custom_postmeta) {
delete_post_meta($id, 'porto_builder_type');
}
echo 'set post id ' . $id . ' meta key porto_builder_type to block<br />';
add_post_meta($id, 'porto_builder_type', $newmeta);
}
Hello, @sitiweb,
Sound’s Good!!, You are the best… Thanks for sharing this with others. but now no need to change/insert any code.
Really sorry for all the inconvenience you faced, we have found a workaround for it and implemented it with our latest update 6.0.1, so, please update your Theme to the very latest version 6.0.1 and check back, you will find all of your Blocks back into Porto >> Page Builder as showing below:
Changelog:
https://themeforest.net/item/porto-responsive-wordpress-ecommerce-theme/9207399#item-description__change_logs
Hi There,
The 30 november I bought 10 licenses. The first 4 are working. But now I trie to add a license to a new website I receive the message “Purchase Code is not valid!!!”. How to fix this?
Hello, @thecreativelabnet,
Please go to Porto >> Theme License and try to activate the Theme again from there, if it will still not work for you then please try the below-listed solutions one by one.
It’s because your local environment can not access to our servers https://portotheme.com & sw-themes.com
Please try to ping our servers and let us know if it works? If the above addresses are blocked by your hosting provider and your site does not ale to request these addresses then you have to ask your hosting provider to remove the restrictions and solve this for you.
OR
Please enable curl extension from the server this will fix your issue. This extension is required for the registration process.
OR
The issue mostly occurs when the server has any kind of restriction and do not allow you to communicate your server with our internal server for activation, so please ask your hosting provider to remove all sorts/kinds of restrictions from your account and deactivate the firewalls for some time until you activate the theme.
I hope that helps.
Same here, after updating to 6.0 all my blocks (30 in 2 languages) are gone. After last update (changing some shop pages), I had 2 hours of work to fix this. Now it’s like to build whole website again.
Sorry, but really cant’t recommend this theme!
Hello, @rene_scrubei,
Really sorry for all the inconvenience you faced, we have found a workaround for it and implemented it with our latest update 6.0.1, so, please update your Theme to the very latest version 6.0.1 and check back, you will find all of your Blocks back into Porto >> Page Builder as showing below:
Changelog:
https://themeforest.net/item/porto-responsive-wordpress-ecommerce-theme/9207399#item-description__change_logs
Regards, P-THEMES.
Thank you, looks good now.
You’re Welcome!! 
FYI: Since most recent theme & plugin update (V6.0) Porto Blocks = Invalid post type.
So the new V6.0 theme’s custom product layout feature which now uses the Template Builder section for “Single product”, allows the creation of a layout (as the old blocks are no longer available or migrated on update FYI), with the new layout created, and a “Single > All Product” display condition set, then in theme options, I make sure the custom layout option is set and select the new single product layout from the drop-down.
After doing all of this, still, the product page does not render? Have I missed something maybe or is it simply broke?
This one oversight as part of the upgrade migration i.e. to migrate the blocks to the new DB tables is going to cause such a problem for so many people. You may lose large amounts of customers as a result of this I fear.
So glad this is only in our staging environment.
Hello, @StevenWillett,
Really sorry for all the inconvenience you faced, we have found a workaround for it and implemented it with our latest update 6.0.1, so, please update your Theme to the very latest version 6.0.1 and check back, you will find all of your Blocks back into Porto >> Page Builder as showing below:
Changelog:
https://themeforest.net/item/porto-responsive-wordpress-ecommerce-theme/9207399#item-description__change_logs
Regards, P-THEMES.
Thanks for this update,
This looks to resolve the blocks issue many are facing initially but even after the update to 6.0.1 the “custom product layout” set in theme options still does not apply. ???
Hello, @StevenWillett,
Custom Product Layout is working perfectly fine at my end on my test site with the latest version, now this is the only issue at your end on your site, so please contact us via our support system with your site WP-Admin Login details and with Theme purchase code PDF file and purchased account so that we will check it for you on your site and help you out.
Regards, P-THEMES.
I just get the wrapping div id=”product-XXXXX” then no content using the custom product layout feature. So on debugging I see the following:
Deprecated: Array and string offset access syntax with curly braces is deprecated in /wp-content/themes/porto/inc/functions/general.php on line 178
178: $rand .= $valid_characters{$which_character};
After updating to meet PHP7.4 requirements using the following fixes the depreciation issue above (needs to be done at your theme level going forward): 178: $rand .= $valid_characters[$which_character];
However, this is not what is stopping/causing the render of the custom product layout?
Hello, @StevenWillett,
We will look into it soon, thanks for your notify.
Regards, P-THEMES.
Some more bugs in the latest update also being seen here:
PHP message: PHP Notice: Trying to access array offset on value of type null in /wp-content/themes/porto/functions.php on line 192
PHP message: PHP Notice: Trying to access array offset on value of type null in /wp-content/themes/porto/functions.php on line 197
PHP message: PHP Notice: Trying to access array offset on value of type null in /wp-content/themes/porto/functions.php on line 202
PHP message: PHP Notice: Trying to access array offset on value of type null in /wp-content/themes/porto/functions.php on line 207
PHP message: PHP Notice: Trying to access array offset on value of type null in /wp-content/themes/porto/functions.php on line 212
PHP message: PHP Notice: Trying to access array offset on value of type null in /wp-content/themes/porto/functions.php on line 217
Hello, @StevenWillett,
These are not bugs but these are PHP warnings and these does not appear at my end or on any other customer site, this must be some misconfiguration from your server, try to switch your PHP version or change your server, and now if you have any issue remaining then please contact us via our support system with your Theme purchased account.
Regards, P-THEMES.
I will review, I did note that /woocommerce overrides in the child theme are not inherited and also shop pagination (default) appears to be hidden afterload? settings all look correct? same happens with load more and infinite scroll also the element renders but is hidden since the V6.0+ (same still in V6.0.1) update?
Hello, @StevenWillett,
Have you purchased the Porto WordPress theme? If yes, then please contact us through your theme purchase account to get the free support for the Porto WordPress theme.
Regards, P-THEMES.
Hi, yes under the company account.
Hello, @StevenWillett,
Then please contact us via our support system with your company account which has the purchase code and then ask anything there, our experts will check/verify and help you out.
Regards, P-THEMES.
I was testing the Header Builder through Templates in Porto 6.0. In WPBakery Porto Studio, Header templates are not showing up on the lefthand side. It starts with ABOUT.
Hello, @aashishbisht,
Those are simply the dummy templated of the header which we showed in the video, you have to create your own header using elements when you used the Porto Template Builder (Header Builder), this is how it works.
And also could you please purchase support extension to get further support? Your 6 months of support period is expired 26/02/2019. According to Envato support policy, renewing support is required for further support.
Thanks for your understand.
Is there a option to renew the purchase code?
Hello, @unwissend,
What do you mean by renew the purchase code? Do you want to reset the purchase code? If yes then it is already reseted and not used on any of the site.
Regards, P-THEMES.
“This block issue is a mess. I’m lucky I read the comments before updating. I have 67 Porto licenses and most of those websites use blocks. I’m going to refrain from updating the hope that you resolve this issue. Can’t you just copy the blocks to your new format without users having to do it manually? This is going to create MANY, MANY hours of work for me.”
I do agree ! redo all blocks manually on so many sites is not an option ! Please give us at least a routine to import them on updates !!!
Thanks !
Hello, @TheDigistork,
Really sorry for all the inconvenience you faced, we have found a workaround for it and implemented it with our latest update 6.0.1, so, please update your Theme to the very latest version 6.0.1 and check back, you will find all of your Blocks back into Porto >> Page Builder as showing below:
Changelog:
https://themeforest.net/item/porto-responsive-wordpress-ecommerce-theme/9207399#item-description__change_logs
You rock guys !
Thanks 
You’re Welcome!!! 
This block issue is a mess. I’m lucky I read the comments before updating. I have 67 Porto licenses and most of those websites use blocks. I’m going to refrain from updating the hope that you resolve this issue. Can’t you just copy the blocks to your new format without users having to do it manually? This is going to create MANY, MANY hours of work for me.
Hello, @bhoudek,
Really sorry for all the inconvenience you faced, we have found a workaround for it and implemented it with our latest update 6.0.1, so, please update your Theme to the very latest version 6.0.1 and check back, you will find all of your Blocks back into Porto >> Page Builder as showing below:
Changelog:
https://themeforest.net/item/porto-responsive-wordpress-ecommerce-theme/9207399#item-description__change_logs
Hello, How I can remove the slider in search page? Porto shop
Hello, @Joisberg,
Please read and follow the instructions written in the below given article:
https://smartwave.freshdesk.com/support/solutions/articles/12000059605--30-how-to-set-choose-change-search-result-page-layout-
Same here – updated Porto and now the blocks are missing in Admin, and the locations on front end are missing it on multiple websites.
Hello, @79design,
It is not disappeared but we have changed the options, please read the changelog of the 6.0 version again, here is one of the change:
+ Added: Porto Templates Builder( Header, Footer, Block, Shop, and Product ) using page builders including WPBakery Page Builder, Elementor, and Visual Composer
So please go to Porto >> Template Builder and create the new Block as showing below:
Now you will find that block in “All” tab and you can use the shortcode and also use the slug name of the block as well and use it anywhere on your site as per your requirements and it will work for you.
Please read more about this functionality in our Theme Documentation in the below given links:
https://www.portotheme.com/wordpress/porto/documentation/templates-builder/
https://www.portotheme.com/wordpress/porto/documentation/display-condition/
Firstly, why on earth move it away from somewhere we ALL know….. However, what happened to all the blocks that we had spent days building, as they are not in there?? These blocks were assign to footers, headers and Category pages.
They are all gone.
Hello, @79design,
Really sorry for all the inconvenience you faced, we have found a workaround for it and implemented it with our latest update 6.0.1, so, please update your Theme to the very latest version 6.0.1 and check back, you will find all of your Blocks back into Porto >> Page Builder as showing below:
Changelog:
https://themeforest.net/item/porto-responsive-wordpress-ecommerce-theme/9207399#item-description__change_logs
I would, but when i run the update, I get this: Update failed: Purchase Code is not valid or could not connect to the API server!. And I KNOW this is valid.
Hello, @79design,
Please go to Porto >> Theme License and try to activate the Theme again from there, if it will still not work for you then please try the below-listed solutions one by one.
It’s because your local environment can not access to our servers https://portotheme.com & sw-themes.com
Please try to ping our servers and let us know if it works? If the above addresses are blocked by your hosting provider and your site does not ale to request these addresses then you have to ask your hosting provider to remove the restrictions and solve this for you.
OR
Please enable curl extension from the server this will fix your issue. This extension is required for the registration process.
OR
The issue mostly occurs when the server has any kind of restriction and do not allow you to communicate your server with our internal server for activation, so please ask your hosting provider to remove all sorts/kinds of restrictions from your account and deactivate the firewalls for some time until you activate the theme.
I hope that helps.
Yep we can now update. Prob just a glitch. Awaiting news for a client who uses Blocks to see if they have appeared in all the right places.
Hope your client will find all the Blocks appeared back again.
Yep it’s all back. Hope you can appreciate though the pain and stress you have caused people here. Those new to Porto and those who have used it for years. With multiple websites that use Blocks in all areas of the site – suddenly… GONE. where Blocks were, is now moved. And when they were moved, they disappeared from ALL websites.
Why move them at all? They worked where they were. People understood it completely. I don’t really understand why you would do that, one one little text line in a change log… which you hope people see and understand.
Hello, @RomaaaRio,
Please make sure that you have set the correct value for the Icon size from Porto >> Theme Options >> Skin >> Mini Cart as showing below:
OR
Can you please share your site URL which has the issue so that I’ll check and provide you the best possible solution for it.
Regards, P-THEMES.
Thanks
Most Welcome!!
Dear support Team,
How to override the custom message for woocommerce_add_to_cart_message, on quick add cart and add to cart on single product page ?
Thank You
The block menu disappeared after updating the theme and we lost our footer! what are you doing? did we lost it?
I found out the block entries in posts table and recreatd them in your new structure, bu this seems to be so amateur or by purpose?
Also, the porto block widget is not that suppose to be, we have to add the shortcode in a text widget!
Hello, @perizitito,
It is not disappeared but we have changed the options, please read the changelog of the 6.0 version again, here is one of the change:
+ Added: Porto Templates Builder( Header, Footer, Block, Shop, and Product ) using page builders including WPBakery Page Builder, Elementor, and Visual Composer
So please go to Porto >> Template Builder and create the new Block as showing below:
Now you will find that block in “All” tab and you can use the shortcode and also use the slug name of the block as well and use it anywhere on your site as per your requirements and it will work for you.
Please read more about this functionality in our Theme Documentation in the below given links:
https://www.portotheme.com/wordpress/porto/documentation/templates-builder/
https://www.portotheme.com/wordpress/porto/documentation/display-condition/
Regards, P-THEMES.
you are more than welcome to introduce new organize features, but first you should create a patch to move old block structure to the new one, as many of us have hundreds of licenses with tones of blocks and furthermore to warning us about the whole change!
Hello, @perizitito,
Really sorry for all the inconvenience you faced, we have found a workaround for it and implemented it with our latest update 6.0.1, so, please update your Theme to the very latest version 6.0.1 and check back, you will find all of your Blocks back into Porto >> Page Builder as showing below:
Changelog:
https://themeforest.net/item/porto-responsive-wordpress-ecommerce-theme/9207399#item-description__change_logs
Regards, P-THEMES.
In new version 5.6 you have removed all blocks . Even block is not visible on admin menu ? Now my all blocks are not shown on website. You must have informed this first before making these crucial changes.
Hi Team kindly revert ASAP new version shows no blocks now i am helpless
Hello, @tjain91,
Please read this thread: https://themeforest.net/comments/25878413
Regards, P-THEMES.
Hi,
I have updated to porto version 6.0 (Reinstalled a back-up), but I have found the Blocks have disappeared from the Wordpress menu, the two blocks I have on my Footer (Payment and Contact Block) are not showing on my site anymore, (After the update) my foot widget 1 still contains the Porto: Block etc. I have no idea how to access the Block content anymore or how to add the Block content to the footer after the Version 6.0 update.
Cheers.
Hello, @Compact_Instruments,
It is not disappeared but we have changed the options, please read the changelog of the 6.0 version again, here is one of the change:
+ Added: Porto Templates Builder( Header, Footer, Block, Shop, and Product ) using page builders including WPBakery Page Builder, Elementor, and Visual Composer
So please go to Porto >> Template Builder and create the new Block as showing below:
Now you will find that block in “All” tab and you can use the shortcode and also use the slug name of the block as well and use it anywhere on your site as per your requirements and it will work for you.
Please read more about this functionality in our Theme Documentation in the below given links:
https://www.portotheme.com/wordpress/porto/documentation/templates-builder/
https://www.portotheme.com/wordpress/porto/documentation/display-condition/
Hello,
The blocks menu disappeared after updating the theme. Do you have an explanation ?
https://postimg.cc/vcKTz8Zn
Regards,
dan002
Version 6.0
Hello, @dan002,
It is not disappeared but we have changed the options, please read the changelog of the 6.0 version again, here is one of the change:
+ Added: Porto Templates Builder( Header, Footer, Block, Shop, and Product ) using page builders including WPBakery Page Builder, Elementor, and Visual Composer
So please go to Porto >> Template Builder and create the new Block as showing below:
Now you will find that block in “All” tab and you can use the shortcode and also use the slug name of the block as well and use it anywhere on your site as per your requirements and it will work for you.
Please read more about this functionality in our Theme Documentation in the below given links:
https://www.portotheme.com/wordpress/porto/documentation/templates-builder/
https://www.portotheme.com/wordpress/porto/documentation/display-condition/
It’s a joke ?
All my 30 old blocks have been deleted, there is nothing left. How do I go about finding them?
You make fun of people like me who bought your theme, why didn’t you let us know before changing the theme?
dan002
Hello PT-Support2,
Just an example to show you the work to be done again!
https://postimg.cc/Y4hYfsxb
“Add to wishlist” has disappeared too?
dan002
Hello, @dan002,
Really sorry for all the inconvenience you faced, we have found a workaround for it and implemented it with our latest update 6.0.1, so, please update your Theme to the very latest version 6.0.1 and check back, you will find all of your Blocks back into Porto >> Page Builder as showing below:
Changelog:
https://themeforest.net/item/porto-responsive-wordpress-ecommerce-theme/9207399#item-description__change_logs
Hello,
It’s too late, the damage is done. I have already redone all my blocks. I did not wait for your “work”
It’s an online store, with real customers, do you think we can work like that?
I asked another question:
“add to wishlist” disappeared on the single product page?
dan002
Hello, @dan002,
Add to Wishlist on the single product page is working perfectly fine at my end, please make sure that you have the correct setting for it, under Yith >> Wishlist as showing in the below-given screenshots:
https://postimg.cc/BPPxJmHv
https://postimg.cc/H8M7qV1c
https://postimg.cc/9Rr9BLxB
If the setting is the same and you will find the same issue then deactivate all the third-party plugins on your site and contact us via our support system with your site WP-Admin Login details so that we will check it for you on your site.
Merci ! Tout fonctionne parfaitement
You’re Welcome!!! 
hello dear, I found many people asking same question but i couldn’t figure how to insert google analytics code. if you can please check the link: https://ibb.co/Gcx1vtk i dont want to use another plugin as i’m using woocommerce and have many plugins 
Hello, @teetoz,
You cannot add <script> tag in the custom js because of security issues.
You need to add JavaScript code without <script> tag like this:
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-********-5', 'auto');
ga('send', 'pageview');
If you add this Google analytics code in “JS Code before body of theme options, it will work well.
help me, changing theme colors does not work. The settings in the Skin section do not appear on the web at all. no color change.
Hello, @vialux,
Please do the following debugging processes one by one listed below, I am sure it will help you in solving your issue.
|. Make sure you have everything up to date (Theme, Plugins, Translations files)
||. Remember to reset ALL cache etc after a plugin or theme update.
|||. Disable all plugins except WooCommerce and recheck if the issue persists
|V. Check the browser dev console on errors (F12, on most if not all browsers)
V. Double-check your own Custom CSS, or Custom Snippets in function.php is causing it
Regards, P-THEMES.
I receive an error Purchase Code is not valid!!!
Hello, @kadirguloglu1,
Please go to Porto >> Theme License and try to activate the Theme again from there, if it will still not work for you then please try the below-listed solutions one by one.
It’s because your local environment can not access to our servers https://portotheme.com & sw-themes.com
Please try to ping our servers and let us know if it works? If the above addresses are blocked by your hosting provider and your site does not ale to request these addresses then you have to ask your hosting provider to remove the restrictions and solve this for you.
OR
Please enable curl extension from the server this will fix your issue. This extension is required for the registration process.
OR
The issue mostly occurs when the server has any kind of restriction and do not allow you to communicate your server with our internal server for activation, so please ask your hosting provider to remove all sorts/kinds of restrictions from your account and deactivate the firewalls for some time until you activate the theme.
I hope that helps.
Regards, P-THEMES.
Hello, how are you?
I just bought the theme but im getting the following error with the purchase code: “Purchase Code is not valid!!!”, the thing is that im using the code that cant be downloaded from the downloads page which is on the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
I would love to get some help with this 
Regards
It fixed alone, dont worry
Sound’s Good!!!
You are the best 