gzhmr
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: No ‘Dimensions’ settings in Block EditorJust in case someone else runs across this, I was able to solve it by creating the settings in the theme.json file.
The padding and margin settings are disabled by default and need to be set within theme.json by one of the following two ways:
The first way is to set them individually:
{ "version": 2, "settings": { "spacing": { "padding": true, "margin": true, "units": [ "px", "em", "rem", "vh", "vw", "%" ] } } }Or, alternatively, you can enable AppearanceTools to enable these features in one single setting:
{ "version": 2, "settings": { "appearanceTools": true } }- This reply was modified 3 years, 12 months ago by gzhmr.
Forum: Fixing WordPress
In reply to: No ‘Dimensions’ settings in Block EditorIt’s just a generic block theme that I created to experiment with using Full Site Editing. I followed this guide to create a simple theme. I’ve activated other block themes, such as Ona, and they display the ‘Dimensions’ settings as TwentyTwentyTwo.
Forum: Fixing WordPress
In reply to: No ‘Dimensions’ settings in Block EditorThanks for you reply, James. Yes, the issue still persists even with Gutenberg deactivated.
Forum: Hacks
In reply to: $wpdb not being defined in functionThe function was being registered with the ‘init’ action hook but I could never get it to work. The anchor link that is clicked is on the plugin settings page which links to the delete-gallery.php file. This file is where the action hook is registered and the function is called.
I’ve since replaced the anchor link with a submit button on the settings page and have it working by just calling the function from the plugin file. Not sure if this is the best way to remedy the problem, but nonetheless, it solved it and it’s updating the db as expected.
Forum: Plugins
In reply to: Plugin links not workingughh!! simple syntax error!! Only had single underscores on the FILE paramater. _FILE_ -> __FILE__
Forum: Plugins
In reply to: Plugin links not working??