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

    Hello
    I need to add a custom field in my pages, just behind the main H1 title.
    I use Avia builder for all my page so I supposed that i have to make a copy of the template-builder.php file in my own directory child theme?
    But I look into template-builder.php i do not see any html output…
    I just see an : echo $content;
    Thanks

    #234688

    Hi pako69!

    How are you? I hope you’re doing well today.

    The theme is using shortcodes to build a page, template-builder.php is merely a wrapper to hold the shortcode. You can edit the shortcodes on config-templatebuilder > avia-shortcodes folder. Add this on the child theme’s functions.php:

    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
    $template_url = get_stylesheet_directory();
    array_unshift($paths, $template_url.'/shortcodes/');
    
    return $paths;
    }

    You can create a “shortcodes” folder inside the child theme’s folder then place the shortcodes file inside.

    Best regards,
    Ismael

    #236384

    Thanks Ismael
    There is 40 files in this directory, what is the file for a page?

    #236394

    Finaly what you said was not what i needed /-)
    I wanted to add a line just the main H1 of a page, and this is in the function avia_title() > easy to customize
    Anyway, thanks for the tips

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to customise template-builder.php ?’ is closed to new replies.