Supreme Theme Mobile Left Widget Area

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

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

Open Support Ticket
  • Author
    Posts
  • #223103

    Roman
    Buyer
    Post count: 232

    Hi,

    Is there a way to add a widget to mobile widget area in Supreme theme right bellow the Login Dashboard?

    Thanks.

    #223112

    Kor
    Moderator
    Post count: 16516

    Hi Roman,

    I’ve just checked your Website using the credentials from another thread and I’d like you to know that you can add any widgets you like in this area as shown in this screenshot. http://prntscr.com/bpvlwn . Give it a try and let us know if it’s what you’re looking for.

    Thanks!

    #223184

    Roman
    Buyer
    Post count: 232

    No, sorry, that didn’t work. I meant the mobile only widget area on the left of the screen, not right.
    See the screenshot.

    #223369

    Kor
    Moderator
    Post count: 16516

    Hi Roman,

    Sorry for not paying much attention there. Unfortunately, you can’t insert widgets into that section shown in the screenshot you’ve shared earlier.

    Thanks!

    #223442

    Roman
    Buyer
    Post count: 232

    Hi, Kor.

    I would like to add Facebook Login button there. I chose this plugin because it is lightweight and I like that it works without unnecessary extra steps and extra features unlike many other such plugins.
    The plugin creator provides a php code that can be added to the template. May be there is a way to add facebook login button in that area via this code?

    Thank you.

    #223505

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    I know there is a hook to add social login, but I need to ask to the developers where it is, cause i can’t seem to find it.

    They’ll let us know asap.

    Thanks

    #223848

    Giri
    Expired Member
    Post count: 3155

    @paolo, that social login hook we added earlier is only for desktop login box.

    @roman

    Use my code at the end of supreme’s functions.php file and customize according to your needs. If you are using wordpress social login, then most probably my code would work.

    
    
    remove_action('dt_before_site_logo', 'dt_add_mobile_gd_account_menu');
    add_action('dt_before_site_logo', 'custom_dt_add_mobile_gd_account_menu');
    function custom_dt_add_mobile_gd_account_menu()
    { ?>
        <div class="dt-mobile-account-wrap"><a href="#gd-account-nav"><i class="fa fa-user"></i></a></div>
        <div id="gd-account-nav" >
            <div >
                <?php if (class_exists('geodir_loginwidget')) {
                    the_widget('geodir_loginwidget', 'mobile-login-widget', array('before_title'=>'<strong class="mobile-login-widget-title">','after_title'=>'</strong>'));
                }
                // your custom code starts here
                // if you are planning to insert social login buttons, then most likely you are looking for this code
                echo "This is a test output";
                do_action('login_form');
                // your custom code ends here
                ?>
            </div>
        </div>
        <?php
    }
    #223936

    Roman
    Buyer
    Post count: 232

    Hi, Giri, it worked perfectly well.
    Thank you.

    #223945

    Giri
    Expired Member
    Post count: 3155

    You are welcome roman 🙂

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