• Resolved Demian

    (@demian85)


    Hi,

    Is there or will there be in the future an option to let the file in the theme folder work as a child theme template? In my environment I change this file to add a nofollow meta tag and other custom layouts. It would be good to have this, gives a little more freedom.

    With thanks,
    Demian

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @demian85,

    Thank you for contacting us and considering the Password Protected plugin.

    Currently, we don’t have such plans in our future roadmap to let the file in the theme folder work as a child theme template. Let me discuss your case with our technical team if there’s a filter available through which you can use custom templates.

    Let us know if you need further assistance.

    Thanks and regards,
    Support Team – WPExperts??

    Hi @demian85,

    You can use the following filter of password protected plugin to attach your template file for password protected login page.

    
    add_filter(
    'password_protected_theme_file',
    function ( $file ) {
    $file = your_template_file;
    return $file;
    }
    )

    I hope this will help you!
    Let me know if you need further assistance we are here to help you.

    Thanks and regards,
    Support Team – WPExperts?

    Thread Starter Demian

    (@demian85)

    Thank you. Is the variable $file a path or direct location of active theme?

    Hi @demian85,

    It’s the path of the file you want to use.

    Thanks and regards,
    Support Team – WPExperts?

    Thread Starter Demian

    (@demian85)

    Hi,

    I couldn’t get the filter for the variable $file path to work. But I discovered if I add the customized ‘password-protected-login.php’ file into the active theme path, it picks it up by itself. It means that this function is already present in the plugin.

    Demian

    • This reply was modified 8 months, 2 weeks ago by Demian.

    Hi @demian85,

    Thank you for updating us!

    Let us know if you need further assistance.

    Thanks and regards,
    Support Team – WPExperts?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Theme file as template’ is closed to new replies.