Hi there,
I got excellent help earlier with ACF and displaying the fields. Now I have added in the file config-templatebuilder/avia-shortcodes/av-helper-masonry.php to show in a masonry listing. It all works fine!
after row 301:
`$linktitle = ‘title=”‘.esc_attr($the_title).'”‘; <= ORIGINAL
$fromprice = get_field( “mynewfield1”, $entry[‘ID’]); <= NEW
$ribbontext = get_field( “mynewfield2”, $entry[‘ID’]); <= NEW`
and after row 327
`if(strpos($this->atts[‘caption_elements’], ‘excerpt’) !== false && !empty($content)){
$markup = avia_markup_helper(array(‘context’ => ‘entry_content’,’echo’=>false, ‘id’=>$entry[‘ID’], ‘custom_markup’=>$this->atts[‘custom_markup’]));
$items .= “<div class=’av-masonry-entry-content entry-content’ {$markup}>{$content}</div>”; <= ORIGINAL
}
$items .= “<p class=’class-mynewfield’ {$markup}>{$mynewfield1} </p>”; <= NEW
if(!empty($mynewfield2)) {$items .= ” <div id=’mynewfield’><div class=’class-mynewfield’>{$mynewfield2}</div></div>” ;} <= NEW`
And my question is, how do you suggest that I can move the customization to the child theme?
You rock!
Hey Zest,
Thank you for using Enfold.
This documentation might help.
Best regards,
Ismael
wonderful, it works like a charm, thank you!
Hi,
Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)
Best regards,
Vinay