Okay
  Public Ticket #3157435
Kalium Project Gallery defaults
Closed

Comments

  • Dan Mahoney started the conversation

    The Portfolio items in my client's site use a Carousel layout, which is set as the default in the Kalium Theme Options.   But I don't see any way to set default values for the "Project Gallery" fields such as "Image Captions Position" and "Maximum Image Height" in the Theme Options.  It appears the only way to set defaults is to hard-code the ACF field values in /kalium/includes/acfpro-fields.php.

    So three bad options here: (1) hacking the theme file and having theme updates overwrite my values; (2) hard-coding the values each time Kalium is updated;  (3) having my client enter the same settings over and over as he adds new Portfolio items. 

    Is there a way to extending the Theme Options to set defaults for the 'Project Gallery' fields? 

    Thanks in advance.   

  •  1,558
    Laborator replied

    Hi Dan,

    Unfortunately there is no way to extend the Theme Options in order to include these settings too, the easiest way would be using a duplicator plugin such as Duplicate Post and then duplicating a post then replacing only the content such as  text and images.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  • Dan Mahoney replied

    Thanks for the quick reply, Art.  

    I know there are a lot of settings and a balance needs to be struck to make the Theme Options workable for your staff as well as users, but I giving users a better way to set defaults for the more granular portfolio settings would make Kalium a better product.  

    I think my use case is completely standard, so having to duplicate Project Gallery for each portfolio item by any means -- including duplicating an entire post and overwriting -- seems like a hack; like Kalium isn't yet fully developed.

    If extending the Theme Options to this extent isn't feasible, an alternative may be an add-on/plugin that creates a 'default' Portfolio post that serves as a basis for new posts.  The WP slider plugin Soliloquy does this through an add-on, which accomplishes the duplication without the hack of overwriting.

    As a developer, if a hack is required I assume it on my end so I ship a system that my client thinks is solid.  So until there is a better solution I will hard-code the default ACF field values in /includes/acfpro-fields.php and re-hack the file every time Kalium is updated. Not great, but more acceptable than passing a hack to my client.

    I hope my input seems reasonable and that gallery defaults are extended in some fashion in a future offering of Kalium.  Thanks again for your help and work on a really nice theme.


     

  • [deleted] replied

    Hi Dan,

    Sorry for the late reply. Art is on vacation and I will reply to your ticket.

    I read your comments and I want to thank you for your suggestion, this is a request that we receive for the first time but I like it very much, I also think that it can help other users too.

    For the moment we are making some drastic changes in the codebase of Kalium that we will introduce in 2023, those changes will also open the way for us to make other nice improvements in this portfolio area and other areas of the theme.

    For the moment we don't offer any workaround for this besides the option that Art wrote you, but I will write your idea now on our to-do list so we can get back to this once we finish some big tasks.

    I would like to thank you again for this amazing idea and your contribution to make Kalium better for all userssmile.png

    Please feel free to write us anytime you have questions.

  • Dan Mahoney replied

    Thank you very much, Ylli.  I look forward to the improvements you'll be making in the 2023 version of Kalium!  Cheers.

  • [deleted] replied

    Hi Dan,

    Happy to hearsmile.png

    Have a great week!