Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #952840

    Hi, I’m building a custom post template to display custom fields in prescribed locations. Is it possible to use Enfold layout shortcodes in my template?

    So far it looks like I can’t.

    This does not work:

    [av_heading tag='h3' padding='10' heading='Hello' color='' style='' custom_font='' size='' subheading_active='' subheading_size='15' custom_class='' admin_preview_bg='' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' margin=',,,,']<?php the_field(‘the_bottom_line’); ?>[/av_heading]
    **I’m using Advanced Custom Fields to get my custom field data.

    Is this possible?

    #953660

    Hey Killick,

    Did you try the do_shortcode function?

    Best regards,
    Rikard

    #954737

    Rikard,
    Thanks! I did not know about do_shortcode. Works great so far for everything I’ve tried except the Enfold Color Section.

    [av_section min_height='' min_height_px='500px' padding='default' shadow='no-border-styling' bottom_border='no-border-styling' bottom_border_diagonal_color='#333333' bottom_border_diagonal_direction='scroll' bottom_border_style='scroll' scroll_down='' custom_arrow_bg='' id='' color='main_color' background='bg_color' custom_bg='' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attach='scroll' position='top left' repeat='no-repeat' video='' video_ratio='16:9' video_mobile_disabled='' overlay_enable='' overlay_opacity='0.5' overlay_color='' overlay_pattern='' overlay_custom_pattern='' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' av_element_hidden_in_editor='0' av_uid=''][/av_section]

    If I wrap the above in the do_shortcode function the closing div tags don’t get processed? The section doesn’t close. It is curious because this shortcode with the closing tag does work in the do_shortcode function:

    [av_one_full first min_height='' vertical_alignment='av-align-top' space='' margin='0px' margin_sync='true' link='' linktarget='' link_hover='' padding='0px' padding_sync='true' border='' border_color='' radius='0px' radius_sync='true' background='bg_color' background_color='#efefef' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attachment='' attachment_size='' background_position='top left' background_repeat='no-repeat' animation='' mobile_breaking='' mobile_display='' av_uid='av-jh0plgpg' custom_class='']content[/av_one_full]

    #954767

    Hi,

    Fullwidth elements such as Color Section would only fullwidth, that is probably the reason why it breaks the layout. It is not impossible but such customization would be out of the scope our support. If it is really important for you, please consider to hire a freelance developer for the task.

    Best regards,
    Yigit

    #954785

    Yigit, Thanks! This gives me a reason and a direction for a solution.

    #954834

    Hi,

    Great! Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Enfold short codes on a custom post template’ is closed to new replies.