• Resolved phillip415

    (@phillip415)


    I have created my own custom template, but I also edited the underscore-functions.php inside the plugin folder. Is there a way to not lose my changes after an update?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    If you want to overwrite the search results template, then you can use this filter to do so.

    The code has to go in the functions.php inside your active theme folder.

    Other filters listed here that you can use to overwrite template parts end with _template.

    Thread Starter phillip415

    (@phillip415)

    works perfect, thank you!

    I’m trying to do the same thing and I’ve used the code provided by @timenjsmit but it doesn’t load the results and shows the following error:

    “ReferenceError: my_textinput is not defined”

    Any ideas?

    Kind regards
    Liam

    Plugin Author Tijmen Smit

    (@tijmensmit)

    @netfuelltd remove the code that uses ‘my_textinput’ from the PHP template code, and the error should be gone.

    Thank you sir! Perfect!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Overwrite underscore-functions.php without losing changes after an update?’ is closed to new replies.