3D FlipBook - problem with wordpress flipBook

t***n@gmail.com
2022-09-19
2022-12-06

I've purchased your plugin "3D FlipBook - WordPress plugin". I'm using Elementor to build my site. and now I need Elementor to override the default template of the single book page. I'll use the shortcode to show the PDF itself, but I need more elements in this page.

I've created a new file, as you can see in the attached image, but still it doesn't work. This is the link to a test book: https://green-english.co.il/3d-flip-book/level-5-test/

Please let me know how to override the default template with elementor or with my custom code.

Thank you.

image.png

Replies

a***r@3dflipbook.net
2022-12-06
2022-12-06

Have no idea how to implement this using Elementor, but if you can use PHP it should be like this:

  function custom_template($single) {
    global $wp_query, $post;
    if($post->post_type===POST_ID) {
      $template = TEMPLATES.'/single-3d-flip-book.php';
      if(file_exists($template)) {
        $single = $template;
      }
    }
    return $single;
  }

  add_filter('single_template', '\iberezansky\fb3d\custom_template');

where POST_ID='3d-flip-book'

Log In to leave a comment