Title: configure all parameters by code
Last modified: January 17, 2019

---

# configure all parameters by code

 *  Resolved [vdmbasquet](https://wordpress.org/support/users/vdmbasquet/)
 * (@vdmbasquet)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/configure-all-parameters-by-code/)
 * Hello,
    Is there any way to configure by code the rest of the parameters of a
   gallery? such as: Row height, Item spacing, Directory title size, Autoload new
   images, etc … [sgdg path = “Folder name” autoload = false]
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fconfigure-all-parameters-by-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [genabitu](https://wordpress.org/support/users/genabitu/)
 * (@genabitu)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/configure-all-parameters-by-code/#post-11099383)
 * Hi,
    there is, but it is not (yet) well documented, because with Gutenberg (the
   new editor), there is also a nice UI for it.
 * If you are not using Gutenberg, then you can do it precisely how you did it, 
   only you need to know the right argument names.
 * Take a look at here: [https://github.com/skaut/skaut-google-drive-gallery/blob/master/plugin/class-options.php](https://github.com/skaut/skaut-google-drive-gallery/blob/master/plugin/class-options.php)
 * the argument names are the same as the variable names in the code – that is, 
   for example, “page_autoload” does, what you want.
 * So:
    [sgdg path=”Folder name” page_autoload=false dir_tile_size=”42em” grid_spacing
   =”42″]
 * This feature is there mainly as an afterthought though and I have to be honest
   that I didn’t test it in a while – I am using Gutenberg everywhere now and not
   shortcodes…

Viewing 1 replies (of 1 total)

The topic ‘configure all parameters by code’ is closed to new replies.

 * ![](https://ps.w.org/skaut-google-drive-gallery/assets/icon.svg?rev=3264618)
 * [Image and video gallery from Google Drive](https://wordpress.org/plugins/skaut-google-drive-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/skaut-google-drive-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/skaut-google-drive-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/skaut-google-drive-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/skaut-google-drive-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/skaut-google-drive-gallery/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [parameters](https://wordpress.org/support/topic-tag/parameters/)

 * 1 reply
 * 2 participants
 * Last reply from: [genabitu](https://wordpress.org/support/users/genabitu/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/configure-all-parameters-by-code/#post-11099383)
 * Status: resolved