Header Login Widget Question

This topic contains 8 replies, has 4 voices, and was last updated by  directory 10 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #5205
    #5213

    Vikas
    Full Member
    Post count: 1128

    Hi,

    No there is not such plugin at this moment.

    #5240

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    our GDF theme has similar functionality.

    Thanks,

    Stiofan

    #5268

    directory
    Expired Member
    Post count: 1502

    Hi Stiofan,

    Where or how can I use that functionality like the My Account menu we now see here at the top navigation?

    #5269

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    sorry i thought you were referring to the mobile view menu we have here and on GDF

    Stiofan

    #5288

    directory
    Expired Member
    Post count: 1502
    This reply has been marked as private.
    #13366

    bloglocal
    Free User
    Post count: 18

    I have the same question. I would love to be able to put a login on the top of my theme with the GDF theme.

    #13374

    bloglocal
    Free User
    Post count: 18

    Do you think this plugin would work? https://wordpress.org/plugins/sticky-header/

    #13548

    directory
    Expired Member
    Post count: 1502

    Please allow me to share what I did on my site using GDF and the first child theme provided by the GD developers. No guarantees it will work on yours but I hope this helps.

    In theme’s functions.php:

    /*
    Add My Account Menu Dropdown
    */
    function add_my_account_menu($items, $args){

    $location = $args->theme_location;
    $geodir_theme_location = get_option(‘geodir_theme_location_nav’);

    if ( has_nav_menu( $location )==’1′ && is_array($geodir_theme_location) && in_array($location,$geodir_theme_location) ) {
    $items .= ‘<li id=”custom-my-account” class=”menu-item”>
    My Account
    ‘;
    }
    return $items;
    }
    add_filter(‘wp_nav_menu_items’,’add_my_account_menu’, 110, 2);

    Then in GDF Options – JS Code:

    jQuery(document).ready(function(){
    jQuery(“#custom-my-account”).append(“<ul class=’sub-menu’><li class=’menu-item’></item>“);
    jQuery(“#geodir_loginbox-6”).appendTo(“#custom-my-account .menu-item”).show();
    });

    What the code does is it moves the My Account loginbox from footer to the menu, so:

    1) you have to add first the “GD Loginbox” widget to footer (GD Footer 4 in our case).
    2) make sure that the ID (#geodir_loginbox-6)of the widget is correct.
    3) you should create/modify its CSS too to match your theme. I put mine in GD – Quick Code – CSS Code.

    See attached screenshot.

Viewing 9 posts - 1 through 9 (of 9 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount