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

    I am using the Woo plugin Sensei to have a training site. The site works just fine, but I want to have the advanced layout capabilities for the custom post types that sensei uses: lesson and course.

    So, I added a filter to avf_builder_boxes to turn on the advanced builder for those types.

    That worked, so now I can use the builder.

    But for the post type of “lesson” it needs to use the custom template file single-course.php – but it doesn’t.

    Where can I read more about how the advanced layout works because it is acting strangely.

    On a course that doesn’t use the advanced builder, it uses the single-course.php file. I can look at the HTML code for the page and see that it is using that theme file.

    On a course that DOES use the advanced builder, I can look at the code and see that it does NOT use the single-course.php file. It also does not use the loop-page.php or single.php or page.php theme files from Enfold parent?

    I know this because I added custom classes to those theme files and those classes don’t show up.

    How can I ensure that single-course.php is used when the advanced layout builder is activated?

    #955871

    Hey ahouglum,

    You can use something like the plugin here

    to get things working out properly by having the option to review which file is been used.
    Maybe – as there is no file on your child theme / theme it cant find it to load.

    That is the best we can do although to assist to further help you would need to get things going by communicating it with a developer that you can hire.

    Best regards,
    Basilis

    #955923

    I did figure part of it out. It looks like when the advanced builder is in use, the theme reverts to using the file called “template-builder.php” no matter what kind of post type it is.

    It seems to me that this is very counter productive. No matter if we are using the advanced builder or not, the theme should follow the same template hierarchy.

    I had to create a custom version of that file in my child theme and then riddle the file with is_singular(‘lesson’) checks.
    Why doesn’t the advanced builder use the_content filter? Or something that makes using other post types easy to customize.

    #956981

    Hi,

    Thanks for the update. Yes, that’s correct. Unfortunately, you can’t use another template when the ALB is active.

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.