Home Forums Add-ons Gallery Field Default Gallery Image


Default Gallery Image

  • Hi,

    We are using the Gallery Field plugin and wondering if there was a way to have a default image if we make the field non mandatory and people don’t add an image.


    • Elliot

    • September 11, 2013 at 4:38 pm

    Hi @cosmicfantasia

    It is not possible to have a default value for teh gallery field, but you can easily write some code in your template to test the value, and if no value exists, display a static image (or any other HTML)

    Check out the code examples and ‘hide empty values’ tutes to see how an ‘if’ statement works.

    Hope that helps


  • Thank you. Thought that would be the case, but wanted to check.

    It did help

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.