Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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!

    #1276240

    Hey 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,
    Rikard

    #1276484

    Thanks 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.
    #1278041

    Hi,

    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,
    Ismael

    #1278174

    Thanks 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

    #1278543

    Hi,

    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,
    Ismael

    #1278560

    Hi 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

    #1279016

    Hi,

    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,
    Ismael

    #1279234

    That 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?

    #1279414

    Hi,

    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,
    Ismael

    #1289996

    Thanks 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.

    #1291656

    Hi,

    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

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.