Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #946534

    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!

    #947628

    Hey Zest,

    Thank you for using Enfold.

    This documentation might help.

    // https://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    Best regards,
    Ismael

    #947957

    wonderful, it works like a charm, thank you!

    #947977

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to move the customization to a child theme’ is closed to new replies.