WordPress.org

Support

Support » Plugins and Hacks » [Plugin: SimpleModal Login] Simplemodal as menu link

[Plugin: SimpleModal Login] Simplemodal as menu link

Viewing 3 replies - 1 through 3 (of 3 total)
  • anandshahil11
    Member

    @anandshahil11

    hi all,

    i am also facing the same issue. I have header.php in which i have login menu. when i should click that , it display the login form.
    Log In .

    the strange thing is this plugin works with other themes but its not working with my theme.
    i can see in firebug that jquery.simplemodal.js , default.js & jquery.js but with 304 not modified http status.

    i donno what is going wrong?
    Any help ?

    thanks,
    Anand

    Hello Andy,

    I used this code to add class “simplemodal-login”. It may help you

    //Conditional classes
    add_filter('nav_menu_css_class' , 'special_nav_class' , 10 , 2);
    function special_nav_class($classes, $item){
        //replace "login with your login linkt title[must in lower case]"
        if(strpos(strtolower($item->title), 'login') !== false){$classes[] = 'simplemodal-login';}
    
        return $classes;
    }

    SadafChohan
    Member

    @sadafchohan

    I simply installed the plugin and just in my header.php used the following code
    ` <a href=”<?php echo bloginfo(‘url’); ?>/wp-login.php?redirect_to=<?php echo bloginfo(‘url’); ?>” class=”simplemodal-login”>Log In</a> |
    <a href=”<?php echo bloginfo(‘url’); ?>/wp-login.php?action=register” class=”simplemodal-register”>Register</a>`
    i used the code in header.php as i want my link to be shown on the top

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: SimpleModal Login] Simplemodal as menu link’ is closed to new replies.