Support » Plugin: Clean Login » Changing the form/template/s

  • Resolved Richard Foley

    (@richardfoley)


    Firstly, thanks for this very useful plugin.

    I have changed the forms displayed on my site by modifying the code under plugins/clean-login/. This is clearly not ideal, as with every upgrade I have to re-change those files.

    If the form template was included as a proper template/ then it would be possible to override it using the standard wordpress theme/template/ method. Do you have plans to support a proper template?

    Have I missed something obvious and is there a reliable way to override the form structure without changing the plugin code directly?

    Many thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Alberto Hornero

    (@hornero)

    Hi Richard,

    You can do it either in your WordPress default theme or through a customiser plugin (e.g. https://en-gb.wordpress.org/plugins/simple-custom-css/), so in that way, changes won’t be overwritten in the next plugin update.

    Alberto.

    Richard Foley

    (@richardfoley)

    hi Alberto,

    very much appreciate the fast response. However, it’s still not clear to me exactly what you mean.

    I have a child theme, and I want modify the form template which is displayed via clean-login. I do NOT want to simply mark one element “invisible” via CSS. I want to change the displayed form substantially, and with the otherwise excelleng clean-login plugin it seems I have to modify the code, or override a hook or somesuch, which seems overkill (so I’m probably wrong).

    Perhaps I’m showing my ignorance here, but I’d appreciate a little clear guidance or maybe a docs/examples where the correct way to do this (preferably with the child-theme) is explained…?

    R.

    Richard Foley

    (@richardfoley)

    Alberto,

    to be clearer what I mean: it’s not the display of the form I wish to change. I need to change the structure of the form. If clean-login used templates, this would be naturally be a simple solution via the child-theme. My problem is that because clean-login does not use overrideable templates my child-theme cannot override your form structure.

    It is possible I do not understand your original answer, and I would appreciate a little assistance with this, please.

    Many thanks in advance

    Plugin Author Alberto Hornero

    (@hornero)

    Hi Richard,

    Yes, you can uses templates, they are already defined here: /clean-login/content/*-form.php

    The plugin looks for the templates in your theme β€œtheme_folder/clean-login/” if exist. So place them there and futures updates of the plugin wouldn’t overwrite them πŸ™‚

    I hope that helps. Best regards,

    Alberto.

    Richard Foley

    (@richardfoley)

    hi Alberto,

    yes, <slaps head>, and I stand fully corrected. Thank you for putting me on the (obvious and) correct path. For some reason I was looking at the files with *.php and not seeing the templates (*.php) which were looking right back at me. I can only apologize for wasting your time on my wild goose chase.

    Many thanks for your prompt and helpful assistance!

    Richard

    Plugin Author Alberto Hornero

    (@hornero)

    Hi Richard,

    No apologies, we are here to help. Maybe it was not super clear, in any case let me know how it does work.

    BTW, if you are happy with that please leave a review.

    Regards,

    Alberto.

    ps. already left a 5-star review many moons ago. πŸ™‚

    • This reply was modified 1 month, 2 weeks ago by  Richard Foley.
Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.