• Resolved vdmbasquet

    (@vdmbasquet)


    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 to see the link]

Viewing 1 replies (of 1 total)
  • 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

    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.