Tagged: customize, portfolio grid
-
AuthorPosts
-
August 25, 2017 at 5:51 pm #844081
Hi dear support,
i’d like to customize the layout of a single portfolio-entry of the portfolio-list when calling an portfolio-category-URL.
I found file:
enfold\config-templatebuilder\avia-shortcodes\portfolio.php
as well as file
enfold\single-portfolio.php
but didn’t get who is doing what.Best solution would be if i could add another list template to the portfolio-layout-selection of the portfolio-grid-element.
When selecting this, how i am able to influence full the rendering of a single entry?
(Should get a single columned list with image and text right of it plus button)How can i do this all in the child theme (do i have to copy whole class files? To which child folder then?)
Thank you a lot!
Cheers, Sam
August 26, 2017 at 11:24 pm #844456Hey subnoodle,
The single-portfolio.php file gets called if the portfolio item isn’t using the advanced layout editor. When using the regular visual editor then the single-portfolio.php is called for a single portfolio page.
The advanced layout editor uses the file named “template-builder.php” to render the content.
For example, the template-builder.php file is used if a fullwidth element (like “Color Section”, LayerSlider, “Fullwidth Masonry Gallery”) is used in the advanced layout. Otherwise WordPress will use the default single-portfolio.php template.
The single portfolio page uses the single-portfolio.php and the includes/loop-portfolio-single.php file as the main elements.
When adding your modified file to the child theme, you need to match the folder structure to the parent theme.Best regards,
MikeAugust 30, 2017 at 1:43 am #845540Hi Mike,
i put now the portfolio.php from folder:
/wordpress/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/
to folder:
/wordpress/wp-content/themes/enfold-child/config-templatebuilder/avia-shortcodes
It does not seem to take my changes from the child theme version. Do i have to include it manually from the child theme’s function.php?
Thank you,
SamSeptember 1, 2017 at 3:17 pm #846881Hi Sam,
Please refer to this post – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Best regards,
YigitSeptember 28, 2017 at 10:26 am #857918Thank you, the information and the further link helped both in combination.
I can edit now shortcode-file portfolio.php in my child theme.
Super, SamSeptember 29, 2017 at 10:21 am #858386 -
AuthorPosts
- The topic ‘customize portfolio grid’ is closed to new replies.