Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #166181

    I’ve added a tiny piece of PHP code to the single-portfolio.php file right below:
    <div class='template-page template-portfolio content <?php avia_layout_class( 'content' ); ?> units'>

    The piece of code works perfectly fine, but as soon as I activate the Advanced Layout Builder of a Portfolio Item, my bit of content disappears and is replaced by the content of the layout builder. But what I need is that piece of code to stay visible, right above the content of the layout builder.

    Any way to do that please?

    #167137

    Hey DavyE!

    Yes the advanced layout builder uses a secial template (enfold\template-builder.php ) but you can’t easily paste code and the template builder framework to build the layout content. I’d suggest to use a plugin like: http://wordpress.org/plugins/php-snippets/ to add your php code to the advanced layouts.

    Cheers!
    Peter

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Adding to single-portfolio.php in combination with Advanced Layout Builder’ is closed to new replies.