Close

Account

Documentation

Forum

Menu

Customize Mobile Header

  • Post count: 14
    UATDesign
    November 9, 2018 at 10:57 am #39167

    Hello,

    Can I customize the mobile header? for example, put login button next to search icon or menu icon instead of put it in the drawer.

    Thanks so much.

    Post count: 14
    UATDesign
    November 9, 2018 at 1:07 pm #39174

    Hi any solution? thanks so much.

    Post count: 668
    Ferdy
    November 9, 2018 at 2:26 pm #39181

    Hi UATDesign,

    At the moment, the login for the mobile section is only in the drawer. in this case, you may need to do custom change. Let me know if you have further question.

    Thank you

    Post count: 14
    UATDesign
    November 9, 2018 at 5:47 pm #39184

    Which file should I change?

    Post count: 668
    Ferdy
    November 12, 2018 at 2:12 pm #39227

    Hi UATDesign,

    I am not sure what the detail of change you want to do, but you can start edit from wp-content/themes/jnews/class/template/header-mobile-drawer.php

    Thank you

    Post count: 14
    UATDesign
    November 13, 2018 at 1:53 pm #39290

    Thanks.

    Can I put “Account button” (When user did not not login, show “Login Button”, when user is login already, show “Account Name”. Just like the desktop version) next to search icon.

    一站式優質生活資訊

    Post count: 668
    Ferdy
    November 14, 2018 at 11:55 am #39333

    Hi UATDesign,

    yes, you can achieve that. you can use this function, please check on this article (https://developer.wordpress.org/reference/functions/is_user_logged_in/). Let me know if you have further question.

    Thank you

You must be logged in to reply to this topic.