Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
Hello,
is it possibly or supported to create my own custom Templates for Page Builder’s Post Loop (PB) Widget?
Kind regards,
Daniel
Hi,
I think I figured it out.
For everybody which want to make a custom template for your Post Loop, here some hints:
– Look at /wp-content/themes/vantage/Loops
– Your custom Post Loop Template has to begin with “loop”, to appear in the Dropdown-list of available Loop Templates
Regards,
Daniel
Hi Daniel
Any page template with the following names will be picked up by the widget:
*-content.php
content-*.php
*-loop.php
loop-*.php
Replace * with a name of your choice, for example:
custom-content.php would be picked up by the widget.
Ensure your page template is properly setup and that it’s all contained a child theme.
Andrew,
I know this is an old thread, but it seems to help with what I’ve been asking agout.
Does the renamed page go in here:
/wp-content/themes/vantage/Loops
or,
/wp-content/themes/vantage-child
And just to be clear, a page containing the “SiteOrigin Post Loop Widget” would use the appropriately renamed loop type template to display content. Is that right?
HG/mws
Hi :)
If you ever run a theme update, this folder gets completely overwritten:
Nothing should ever be changed or added/removed from that, the parent folder. Any changes or additions should happen in the child theme folder.
Yes, the Post Loop widget looks for templates with file names as I laid out above.
Is seems that page builder only searches the 1st level of subfolders in a theme? So if I place my loop template under mytheme/templates/loop, it will not find it. Correct?
I’m also struggling with this. I have a content-grid.php template on the top level of my theme, yet the Post Loop widget does not display posts in any type of grid at all. It just lists them down the page, taking full width. Perhaps the template needs some more work as it’s one of the default page/post templates with my theme.