WebDevStudios / WDS-Simple-Page-Builder

Uses existing template parts in the currently-active theme to build a customized page with rearrangeable elements.
GNU General Public License v2.0
136 stars 25 forks source link

Documentation inconsistency or incorrect usage of spb_locate_template() #71

Open PavelK27 opened 7 years ago

PavelK27 commented 7 years ago

Hi,

I'm trying to add custom templates in my theme using version 1.6 of the plugin. As per Page Builder Template Stack manual, I'm expecting the plugin to use "/pagebuilder" folder inside of my theme, but it uses "/parts" folder instead. I found that out by debugging spb_get_template_stack() call from /inc/class-wds-page-builder-functions.php. Looks like it might be connected to default path used prior 1.6, at least there is some indication of it in /inc/class-wds-page-builder-options.php, so I'm not sure what's the problem there - whether it's an inconsistency in wiki documentation or incorrect usage of spb_locate_template().

Thanks

PavelK27 commented 7 years ago

Also, it would be a good idea to mention files location for templates in Building Template Parts for Page Builder as it's an important part in templates creation process.