Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1486939

    I use Accordion to show/hide a button (see example page in private content).
    I am trying to create a custom layout with some ACF custom fields. Among these the button should contain a ACF field = text (area_name) and a ACF url (the link to download a document)

    However when I add the button in the Accordion and use Dynamic Content instead of Button Label and Link settings, the button after toggling the accordion looks broken. This is the shortcode inside the accordion

    [av_button label='{acf_field_6878d372becf1:ISRA name}' icon_select='yes' icon='ue82d' font='entypo-fontello' link='manually,https://' link_dynamic='{acf_field_6878d26880177:Factsheet download link}' link_target='' size='medium' position='left' label_display='' title_attr='' size-text='20' av-desktop-font-size-text='' av-medium-font-size-text='' av-small-font-size-text='' av-mini-font-size-text='' margin='' margin_sync='true' padding='20px' padding_sync='true' av-desktop-margin='' av-desktop-margin_sync='true' av-desktop-padding='' av-desktop-padding_sync='true' av-medium-margin='' av-medium-margin_sync='true' av-medium-padding='' av-medium-padding_sync='true' av-small-margin='' av-small-margin_sync='true' av-small-padding='' av-small-padding_sync='true' av-mini-margin='' av-mini-margin_sync='true' av-mini-padding='' av-mini-padding_sync='true' color_options='' color='theme-color' custom_bg='#444444' custom_font='#ffffff' btn_color_bg='theme-color' btn_custom_grad_direction='vertical' btn_custom_grad_1='#000000' btn_custom_grad_2='#ffffff' btn_custom_grad_3='' btn_custom_grad_opacity='0.7' 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' btn_color_font_hover='white' btn_custom_font_hover='#ffffff' border='' border_width='' border_width_sync='true' border_color='' border_radius='' border_radius_sync='true' box_shadow='' box_shadow_style='0px,0px,0px,0px' box_shadow_color='' animation='' animation_duration='' animation_custom_bg_color='' animation_z_index_curtain='100' hover_opacity='' sonar_effect_effect='' sonar_effect_color='' sonar_effect_duration='1' sonar_effect_scale='' sonar_effect_opac='0.5' css_position='' css_position_location=',,,' css_position_z_index='' av-desktop-css_position='' av-desktop-css_position_location=',,,' av-desktop-css_position_z_index='' av-medium-css_position='' av-medium-css_position_location=',,,' av-medium-css_position_z_index='' av-small-css_position='' av-small-css_position_location=',,,' av-small-css_position_z_index='' av-mini-css_position='' av-mini-css_position_location=',,,' av-mini-css_position_z_index='' id='' custom_class='' template_class='' av_uid='av-22oe9u' sc_version='1.0' admin_preview_bg='']

    On the other hand if I create a simple button in a column everything works fine. My problem is that I need to use the button inside the accordion styled as it is now.

    Do you have any suggestion?

    #1486951

    Hey Elena,

    Thank you for the inquiry.

    Unfortunately, you cannot directly add shortcodes with dynamic content in the Accordion item or any element with a text field. Dynamic content will only work in designated fields marked with the database icon, and you cannot combine them with shortcodes. Hope this clear things up a bit.

    Best regards,
    Ismael

    #1486965

    I see, thanks for the answer. That would be an interesting improvement however! In this way I should avoid creating a custom template from scratch.

    Just one question in terms of mysql optimization. I am dealing with hundreds of portfolio items. Until now I was using the application of a Avia Layout Builder template (i.e. creating the page layout ans save it as a template), which I uploaded every time a new portfolio item had to be created and substituting text/images inside. The mysql wp_posts and wp_posts_meta tables are obviously quite big. By using ACF custom fields for the content and apply a Custom Layout with dynamic contents looks to me a “lighter” solution in terms of mysql tables. Am I correct? Thanks

    • This reply was modified 3 weeks, 1 day ago by elenapoliti. Reason: I added a further question
    #1487016

    Excuse me Ismael could you please answer my question above? Thank a lot

    #1487059

    Hi,

    Sorry for the delay. Yes, you can create a custom layout and use dynamic content to display specific information about the portfolio items, instead of manually adjusting the template for each item. It’s also true that this approach could be more optimal for the database as it avoid saving and retrieving unnecessary data from the portfolio items.

    Best regards,
    Ismael

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