• peter_lang

    (@peter_lang)


    Hi,
    i have reaaranged the “vsel-page-template.php” template. Now, on each update, it will be overwritten. I have tried to set it into the child theme by adding the folder name and template page like:

    /very-simple-event-list/vsel-page-template.php

    ..but this does not work. Any idea how to set the template page as master loaded from the child theme?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi,

    Unfortunately my plugin does not support this. The way it’s build, it’s also not possible to add this feature easily.

    There will be a plugin update soon, containing several extra settings to change layout.

    Guido

    Thread Starter peter_lang

    (@peter_lang)

    I found a function that seems to replace templates but i did not get to adjust it..does this may work?

    function custom_wc_locate_template( $template, $template_name, $template_path ) {
    $template_overwrite = dirname( __FILE__ ) . ?/templates/‘ . $template_name;

    if ( file_exists( $template_overwrite ) ) {
    $template = $template_overwrite;
    }
    return $template;
    }
    add_filter( ?woocommerce_locate_template‘, ?custom_wc_locate_template‘, 10, 3 );

    Plugin Author Guido

    (@guido07111975)

    Hi Peter,

    This will not work because my plugin is shortcode-based. This means everything should load inside the shortcode or at least inside the plugin. This includes the template (layout).
    Guess it is possible to make it work, but this means hours of work for me. I don’t have the time for it. Besides this, plugin gets more and more settings to change layout and by using custom CSS even more is possible.

    Guido
    ps. if you add code here, please click the “code” button before and after your code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Import template in Child’ is closed to new replies.