• wmguk

    (@wmguk)


    Hey Guys,

    I currently have a widget that runs ajax login / register areas.. however I am struggling with setting it up.

    For some reason, it doesnt have a “title” area – how can I add this?

    In the admin panel it doesnt allow you to edit the title (but I need one to make it look right)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Michael

    (@alchymyth)

    download link for this widget?

    Thread Starter wmguk

    (@wmguk)

    Michael

    (@alchymyth)

    you could edit wp-content/plugins//ajax-login-widget/alw_template.php, quite near to the start:

    - alw_register, alw_loading_register
      - alw_lostPassword, alw_loading_lost
    */
    ?>
    
    <div>
    
    <?php
      global $user_ID, $user_identity;

    after the <div> you could add a widget title; for instance change it to:
    <div><h3>Login</h3>

    however, to have the same design as the rest of your widgets, you might need to use the same syntax as for the existing widget titles.
    you may even need to change the div into something else, or add a css class to it.

    details depend on your existing theme.

    make a backup copy before editing anything.

    have you tried to contact the plugin author?

    Thread Starter wmguk

    (@wmguk)

    Hi,

    Thanks for the help, problem is the headers are shown in a div, and for some reason if I add a div for title it inserts it inside the main widget div…

    I just wondered how to add a widget title in to the actual code.

    Michael

    (@alchymyth)

    my suggestion was only a starting point – you can add any code there, even before the div (as long as wou make sure the divs are all closed properly in the right order)

    so, if you need a title div before the widget code, add it before the <div>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Edit a login widget’ is closed to new replies.