Home › Forums › WoodMart support forum › Update theme – html blocks
Update theme – html blocks
- This topic has 7 replies, 3 voices, and was last updated 5 years, 3 months ago by Artem Temos.
-
AuthorPosts
-
September 11, 2019 at 8:58 pm #143285
Stanley BlackParticipantHello,
If you update product which was made before theme was updated html blocks disappeared.
All products made after theme was updated work normally. Them you can update without a problem.Also extra content block on product page now show up maximum 200 html blocks but I have more than 1400.
How to fix this issue?
Kind regards
September 11, 2019 at 9:12 pm #143287
Stanley BlackParticipantTo be more clearly, html block disappeared from product page(extra content block).
They still exist when you go to HTML Block > All items.
But I can’t choose them from product page.
Only html blocks cretaed after theme was updated will show up.Kind regards
September 12, 2019 at 10:09 am #143416
Stanley BlackParticipantHello,
Can you provide me any answer?
Is it possible to fix this or I need to create again more then 1000 html blocks.
Kind regards
September 12, 2019 at 10:46 am #143427
Elise NoromitMemberHello,
I am checking product which was created in June, before the theme update and I see the drop-down with the possibility to chose HTML block https://gyazo.com/1b10382065346d70c0c8dea1474a0953
It is shown on the product page.
Please provide the product page example with the problem. Please try to check the problem in condition of all the third parties plugins deactivated.
Best Regards
September 12, 2019 at 11:02 am #143435
Stanley BlackParticipantIt is possible to choose only latest 200 html blocks.
You chose Blava html block created 2 days before.
Limit is problem. Theme updated is not a problem.
How to icrease limit to 2000 in extra content block.
You can see in screenshot when I add new html block latest one disappeared from extra conetent block.
Html block Dining chair just disappeared because limit is 200.
Kind regards
Attachments:
You must be logged in to view attached files.September 12, 2019 at 11:28 am #143452
Artem TemosKeymasterTry to add the following PHP code snippet to the child theme functions.php file to do this
function woodmart_get_static_blocks_array( $new = false ) { $args = array( 'posts_per_page' => 2500, 'post_type' => 'cms_block' ); $blocks_posts = get_posts( $args ); $array = array(); foreach ( $blocks_posts as $post ) : setup_postdata( $post ); if ( $new ) { $array[ $post->ID ] = array( 'name' => $post->post_title, 'value' => $post->ID, ); } else { $array[ $post->post_title ] = $post->ID; } endforeach; wp_reset_postdata(); return $array; }
September 12, 2019 at 11:45 am #143455
Stanley BlackParticipantThank you!!!
Best support!
September 12, 2019 at 1:11 pm #143487
Artem TemosKeymasterYou are welcome.
-
AuthorPosts
The topic ‘Update theme – html blocks’ is closed to new replies.
- You must be logged in to create new topics. Login / Register