Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter gzhmr

    (@gzhmr)

    Just 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
             }
    }

    Link to source

    • This reply was modified 3 years, 12 months ago by gzhmr.
    Thread Starter gzhmr

    (@gzhmr)

    It’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.

    Thread Starter gzhmr

    (@gzhmr)

    Thanks for you reply, James. Yes, the issue still persists even with Gutenberg deactivated.

    Thread Starter gzhmr

    (@gzhmr)

    The 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 working
    Thread Starter gzhmr

    (@gzhmr)

    ughh!! simple syntax error!! Only had single underscores on the FILE paramater. _FILE_ -> __FILE__

    Forum: Plugins
    In reply to: Plugin links not working
    Thread Starter gzhmr

    (@gzhmr)

    ??

Viewing 6 replies - 1 through 6 (of 6 total)