April 26, 2020 at 10:44 pm #1207388
I would like you guys to modify your theme code to include shortcode parsing for Enfold’s media gallery copyright text meta-field for uploaded images or files. I am not asking you guys how to add shortcodes or how to make them work in my own code, but I am more so asking you guys to improve your code so shortcodes can be parsed.
The fix is simple, in the file /config-templatebuilder/avia-shortcodes/image/image.php please add a new line above line 631 and place the following piece of code:
$copyright_text = do_shortcode($copyright_text);
This will allow anyone to add shortcodes in their copyright meta field for images and also allow users to make their copyright text here consistent across the site.
May 1, 2020 at 4:16 pm #1208861
- This topic was modified 3 years, 7 months ago by Michael. Reason: rephrased things to make it easier to read
Thanks for contacting us!
I am afraid some shortcodes would break the layout, especially if you choose to display copyright field on hover.
I will forward your request to our devs and ask their opinion :)
YigitMay 1, 2020 at 5:33 pm #1208887
Well, if the shortcode in the copyright meta field for the image breaks the layout, then the customer shouldn’t put the shortcode that breaks the layout, into that field. This is no different than any other locations in wordpress where shortcodes can be inserted, but break the layout. It’s a “use if you know what you’re doing” kinda thing.
As for the copyright field on hover, I don’t have a concept of how that scenario is valid.
May 1, 2020 at 5:35 pm #1208889
- This reply was modified 3 years, 7 months ago by Michael.
If anything, allow us to add a filter or action to that field that we can define in our functions file to add our own shortcode support in that field.May 4, 2020 at 6:09 pm #1209636May 6, 2020 at 12:27 pm #1210305
- You must be logged in to reply to this topic.