Tagged: custom field
-
AuthorPosts
-
May 7, 2018 at 8:05 pm #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?
May 9, 2018 at 4:36 am #953660May 10, 2018 at 6:07 pm #954737Rikard,
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]
May 10, 2018 at 6:52 pm #954767Hi,
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,
YigitMay 10, 2018 at 7:06 pm #954785Yigit, Thanks! This gives me a reason and a direction for a solution.
May 10, 2018 at 8:04 pm #954834 -
AuthorPosts
- The topic ‘Enfold short codes on a custom post template’ is closed to new replies.