espenmn
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Twenty-Three] Missing $block[‘attrs’] (in blocks)Thanks a lot, I have updated and removed ‘all other things’, and I don’t get the ‘Undefined’ error.
Just to be sure: If a block has NO attributes (saved), or if one just changed from a non-block theme: Is there any reason this could happen (because I think I disabled all plugins when I tested, but I used a site that ‘came from pre 6’).Forum: Themes and Templates
In reply to: [Twenty Twenty-Three] Missing $block[‘attrs’] (in blocks)The code is here: https://github.com/espenmn/medialog-hideblock/blob/main/src/init.php#L73
(without the check, I got an error)Forum: Themes and Templates
In reply to: [Twenty Twenty-Three] Missing $block[‘attrs’] (in blocks)I am making Gutenberg blocks, and also some settings for ‘all of them’.
From what I know, it should be possible to get the attributes of the block in my render function. In all other themes I tested, I can get the attributes of the block by $block[‘attrs’]; but in TwentyTwentyTree attrs are undefined.
I will use the attrs of the block to change/edit/disable/modify the rendering of the blocks.
For example, the settings could be ‘disabled’, in which case the rendering returns nothing, it could be ‘promoted’, in which case the rendering could be adding a css class or some javascript or something else. Since I am adding the same to many blocks, it would be ok to do it in the rendering part.
Forum: Reviews
In reply to: [All-in-One WP Migration and Backup] Broken pluginI had a site that was just over the upload limit.
I discovered that there is a workaround (if you are only moving a site)
1) Export only some content ( for example the images)
2) Export the rest of the content
3) Import from 1)
4) Import from 2)You can also repeat step 1 with plug-ins, themes etc
Forum: Reviews
In reply to: [All-in-One WP Migration and Backup] UselessSince most other users don’t experience this, something is different with your setup.
I have used this plug-in 10 times, on different sites.
You might have a ‘max-file’ setting in your wordpress setup, which prevents you from uploading ANY file that is bigger than xxx Mb.
You can change the max file upload size by changing your config files or install a ‘change upload size’ plugin.
Google has the answer, try ‘change upload size wordpress’ or something similar