-
AuthorPosts
-
January 27, 2021 at 7:38 pm #1275860
I am using Events Manager. There is an option to call attributes to be displayed. When I choose to display shortcode it displays the shortcode as code and not the output element.
On other themes the actual shortcode is output. Can you tell me what I would need to do to allow the attributes to display shortcodes correctly?
take a look here to understand the issue. The Click for Access is a picture that displays , but the shortcode is not outputting correctly.
Thanks team!
January 29, 2021 at 5:42 am #1276240Hey KMC,
I can’t see a link in your post, please include one to where we can see the problem you are having.
Best regards,
RikardJanuary 30, 2021 at 6:16 am #1276484Thanks Rikard
https://meditation-dc.org/class-registration-benefactors-only/
Not sure what happened above, but you can see it on the linked page.
- This reply was modified 3 years, 9 months ago by KMC DC.
February 5, 2021 at 3:08 pm #1278041Hi,
Thank you for the update.
Are you referring to these shortcodes?
[av_button label='Member Access' icon_select='no' icon='ue800' font='entypo-fontello' link='manually,https://event.webinarjam.com/register/370/lx94nfl8' link_target='' size='medium' position='center' label_display='' title_attr='' color_options='' color='theme-color' custom_bg='#444444' custom_font='#ffffff' btn_color_bg='theme-color' btn_custom_bg='#444444' btn_color_bg_hover='theme-color-highlight' btn_custom_bg_hover='#444444' btn_color_font='theme-color' btn_custom_font='#ffffff' id='' custom_class='' av_uid='' admin_preview_bg='']
Did you switch to the Visual mode of the text editor before you added the shortcode? Please post the login details in the private field so that we could check the issue properly.
Best regards,
IsmaelFebruary 5, 2021 at 8:44 pm #1278174Thanks Ismael
It was in visual mode. The thing is, the shortcode is called using a plugin. I have utilized the exact same approach with other themes and it functions. But, with enfold, it doesn’t.
I appreciate your help
February 8, 2021 at 6:17 am #1278543Hi,
Thank you for the info.
We still do not quite understand how the button shortcode is added. We tried to modify one of the event items from the thursday-evening category but we cannot find the shortcode there. How did you add the following shortcode exactly?
[av_button label='Member Access' ...]
Best regards,
IsmaelFebruary 8, 2021 at 7:41 am #1278560Hi Ismael
I linked you to an event with the shortcode. It is inserted with the Advanced Custom Field plugin, then sent into the appropriate field for the Events Manager. I use this system with another theme, so I know it works. You may have to manually move the shortcode down to the events manager fields in the lower portion due to a coding issue I am working on with the field names.
Also, any other content called (such as an image) does work, but provides less flexibility for our finished backend. We have a lot of text edits to make on the buttons.
Cheers
February 9, 2021 at 12:03 pm #1279016Hi,
Thank you for that info.
You may need to add this filter in the functions.php file to enable execution of shortcodes or elements outside the advance layout builder.
function avf_custom_exec_sc_only_mod( $exec_sc_only, $obj_sc, $atts, $content, $shortcodename, $fake ) { return true; } add_filter( 'avf_alb_exec_sc_only', 'avf_custom_exec_sc_only_mod', 10, 6 );
Best regards,
IsmaelFebruary 9, 2021 at 9:05 pm #1279234That didn’t seem to work. The result is that the code no longer appears, but the button doesn’t appear. I tested the button alone in a text element and that works, just not when it is called via the shortcode.
Can you offer further advice?
February 10, 2021 at 1:16 pm #1279414Hi,
You may need to ask the plugin author to pass or include the do_shortcode function to the shortcode callback, or maybe there is a filter available that we could use to modify the shortcode content before it is returned. You have to ask the plugin author about that. It is possible that the shortcode (event_list) immediately returns the content without filtering the shortcode.
Best regards,
IsmaelMarch 23, 2021 at 9:21 pm #1289996Thanks Ismael
The plugin author provided a do_shortcode function, but that didn’t fix it.
Can you tell me more about the filter you are suggesting? I would like to share that idea with them, but don’t know how to express it. I appreciate your help.
April 1, 2021 at 4:29 am #1291656Hi,
Sorry for the late response, have been away for some days. Would you mind posting the login details again so that we could check this? The filter that we are referring to, if it is available, should be inside the function that the plugin is using to the output or render the content.
Have you tried using the new Custom Elements option from the theme? It should give you more flexibility with the button content and allow you to create custom dynamic elements, which can be modified globally.
// https://kriesi.at/documentation/enfold/custom-element-templates/
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.