• radmkt

    (@radmkt)


    Hi there,

    I’ve read the various items here: https://www.ads-software.com/plugins/login-with-ajax/other_notes/

    Specifically, I’m referring to overriding the default plugin templates via a child theme. I’ve tested this with multiple themes and have disabled all plugins except ‘Login With Ajax.’ Seems that despite copying plugin files to wp-content/themes/your-theme/plugins/login-with-ajax/ , no change overrides the plugin.

    Best

Viewing 15 replies - 1 through 15 (of 15 total)
  • caimin_nwl

    (@caimin_nwl)

    Hi,

    Which version of Login With Ajax are you using?

    bigubosu

    (@bigubosu)

    Same for me, I’m using shortcode [lwa template=”modal”] and other arguments (divs-only and default) but it’s still returning the same theme.

    bigubosu

    (@bigubosu)

    Sorry the template is working for me, I had server issues which wouldn’t transfer the file properly that I didn’t notice

    Thread Starter radmkt

    (@radmkt)

    Hi caimin_nwl, sorry for the delayed response.

    We are using:

    WP: 4.4.2
    Log in with Ajax: 3.1.5
    Twenty Sixtenn: 1.1

    We have just done a totally fresh install and have no other plugins activated.

    We’ve tried virtually every way we can using both shortcodes and the template tag to no avail.

    Thanks in advance!
    `

    Can you post the shortcode you’re using?

    Thread Starter radmkt

    (@radmkt)

    Hi caimin_nwl,

    Sure, the shortcode we’re using are several
    [lwa]
    [lwa template=”modal”]
    [login-with-ajax]
    [login-with-ajax template=”modal”]

    Essentially, what we’ve done is set up a completely clean, new install using the Twenty Sixteen theme and only the LWA plugin installed.

    Have you tried just using [lwa] and trying to custom templates in all of the alternate locations mentioned here;

    https://www.ads-software.com/plugins/login-with-ajax/other_notes/

    Thread Starter radmkt

    (@radmkt)

    Hi there,

    So, we finally got the template to work (was just a dumb mistake from our end).

    Now, I would like to know if it’s possible to override the .js file from within the /wp-content/themes/your-theme/plugins/login-with-ajax/ directory or if I actually need to override the .js from the plugin directory itself.

    Thanks!

    Which file are you trying to change?

    Thread Starter radmkt

    (@radmkt)

    Hi caimin_nwl,

    Thanks for the response and sorry for my delayed response.

    I’m trying to modify widget/login-with-ajax.js. When I try to override it via my theme (e.g. /wp-content/themes/your-theme/plugins/login-with-ajax/my-widget/login-with-ajax.js) the change doesn’t seem to take effect.

    Thanks!

    Are you trying this in a child theme or parent theme?

    Thread Starter radmkt

    (@radmkt)

    Hi caimin_nwl,

    I tried in a child theme.

    Thanks!

    Have you tried this structure:

    /wp-content/themes/your-theme/plugins/login-with-ajax/

    Thread Starter radmkt

    (@radmkt)

    Hi caimin_nwl,

    Yes, I have tried that structure and is what I’m using. To be specific, I’ve tried all of the following to no avail

    /wp-content/themes/my-child-theme/plugins/login-with-ajax/my-template/login-with-ajax.js
    /wp-content/themes/my-child-theme/plugins/login-with-ajax/my-template/widget/login-with-ajax.js
    /wp-content/themes/my-child-theme/plugins/login-with-ajax/widget/login-with-ajax.js

    Thanks in advance!

    Have you tried using the parent theme instead of the child theme?

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Template Override Not Working’ is closed to new replies.