Close

Account

Documentation

Forum

Menu

Custom Login element

  • Post count: 10
    bertux77
    March 1, 2018 at 6:55 pm #29146

    I need to change the login forms and login register form. Attached images showing what I need
    How can I do it? Thank you
    https://ibb.co/h1NVqx
    https://ibb.co/k4dgxc

    Post count: 9477
    Adek
    March 2, 2018 at 11:48 am #29189

    Hi bertux77,

    To change that element you need to modify this file wp-content/themes/jnews/class/Ajax/FirstLoadAction.php then find top_bar_account function.

    Thank you

    Post count: 10
    bertux77
    March 2, 2018 at 6:41 pm #29207

    Sorry, my programming skills are very basic. Could you help me a little bit more to know how to do it? thanksgiving

    Post count: 9477
    Adek
    March 5, 2018 at 9:14 am #29235

    Hi bertux77,

    Regarding this thing, can you tell me more detail about the changes that you want for the login & register element? So i can make sure the possibilities.

    Thank you

    Post count: 10
    bertux77
    March 6, 2018 at 7:28 pm #29304

    Hello again,

    Hello I would like the login element to link to a page, for example: http://www.soyfitness.fit/entrar and the register element with http://www.soyfitness.fit/registro.

    Both forms are created with ultimate member

    Post count: 9477
    Adek
    March 7, 2018 at 9:27 am #29320

    Hi bertux77,

    Please try to put this code below to the Customize > Additional Javascript:

    Thank you

    Post count: 10
    bertux77
    March 7, 2018 at 6:34 pm #29354

    Hi, I pasted the code just like you told me but it doesn’t work. The login and register elements are still linked to the default forms.

    Thanks

    Post count: 9477
    Adek
    March 8, 2018 at 10:00 am #29378

    Hi bertux77,

    Can you provide me your website URL? I will check it directly.

    Thank you

    Post count: 10
    bertux77
    March 8, 2018 at 7:33 pm #29388

    The web page where I am testing the code is: http://www.soyfitnes.com.

    If you want I can provide you with an administrator user to see the back end

    Post count: 9477
    Adek
    March 9, 2018 at 9:11 am #29401

    Hi bertux77,

    Please try to remove the JavaScript above and try to go replace the content of this file wp-content/themes/jnews/class/Ajax/FirstLoadAction.php with this one https://pastebin.com/rdUYYiQa

    Thank you

    Post count: 10
    bertux77
    March 9, 2018 at 6:06 pm #29426

    Hello again,

    Thank you very much for your help.
    I have changed the code and now if the new url appears behind each item but when I click it doesn’t link.
    I tried to remove the class: class= “jeg_popuplink” and that’s how it works! Is there a problem removing that class? or is there another way to show the forms in popup?

    Thanks!

    Post count: 9477
    Adek
    March 12, 2018 at 9:18 am #29456

    Hi bertux77,

    Glad to hear if you be able to solve the problem. Yes, you can remove that class, so it won’t trigger the default behavior which is open the popup form and I think it won’t be a problem if you remove that class. Let me know if you need something else.

    Thank you

You must be logged in to reply to this topic.