Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #285250

    Hello,

    I am currently developing a one page site, and need to add text to the header (logo left, text right). The text will be a phone number which will be clickable on mobile phones, and an email which will be a mailto link.

    See jpg mockup here: http://i.imgur.com/M2nctTN.jpg

    Any help is appreciated.

    -Ryan

    #285326

    I found another solution, but have a follow up question. I put the phone and e-mail in the main menu below the header. They are live links (and the only menu items), so I would like to hide the mobile menu and leave the main menu on all devices.

    I have been unable to add the correct custom CSS. Take a look and let me know how to accomplish this.

    http://www.brilliantrack.com/

    Thanks,
    Ryan

    #285460

    Hey Ryan!

    Try adding this code to the Quick CSS:

    .container #advanced_menu_toggle, #advanced_menu_hide {
        display: none !important;
    }
    .main_menu, #header_main_alternate, #avia-menu {
        display: block !important;
    }
    @media only screen and (max-width: 767px) {
    #header_main_alternate .container{
        width: 365px;
    }
    #avia-menu a{
        font-size: 12px !important;
    }
    }
    

    Cheers! 
    Josue

    #285478

    Thanks Josue. That worked for hiding the mobile nav and showing the main nav, but the menu is now left justified, and the logo is floating left on mobile devices. Tried tweaking the CSS to align center for both, no luck. Any help is appreciated!

    Ryan

    #285529

    Try changing the code to:

    .container #advanced_menu_toggle, #advanced_menu_hide {
        display: none !important;
    }
    @media only screen and (max-width: 767px) {
    .main_menu, #header_main_alternate, #avia-menu {
        display: block !important;
    }
    #header_main_alternate .container{
        width: 365px;
    }
    #avia-menu a{
        font-size: 12px !important;
    }
    .responsive .logo {
        float: none !important;
        margin: 0 auto !important;
        right: 0 !important;
        left: 0 !important;
        width: 104px;
    }
    }
    

    Best regards,
    Josue

    #285533

    Thanks once again Josue. That does resolve the left justifying issue, but the menu drops into 2 rows (not visible over slider photo) on mobile devices (viewing on iPhone 5). I tried bumping the font-size down to 11px, and also shortened the menu titles, but neither helped. \

    Let me know if this is an easy fix.

    Ryan

    #285535

    Hey Ryan!

    Can you post a screenshot of the view on iPhone 5?

    Regards,
    Josue

    #285537

    iPhone 5 screenshot – http://i.imgur.com/pWkL9yv.png

    #285550

    Try increasing this value in the Quick CSS code:

    #header_main_alternate .container{
        width: 365px;
    }

    Cheers!
    Josue

    #285557

    Went all the way up to 650px. Still no luck.

    #285558

    I’ll ask Yigit to check this on his iPhone as i don’t have one at hand.

    Regards,
    Josue

    #285714

    Hey!

    Please try adding following code to Quick CSS

    @media only screen and (max-width: 480px) {
    li#menu-item-31 a {
    padding: 0 7px;
    font-size: 11px!important;
    }}

    Regards,
    Yigit

    #285752

    Thanks Yigit. Unfortunately, the menu us still dropping into two row (and left justifying) on mobile devices (viewing on iPhone 5).

    Ryan

    #285760

    Hi!

    Do you mind posting a temporary admin login so we can investigate further?

    Cheers!
    Yigit

    #285881
    This reply has been marked as private.
    #286428

    Hi – just following up on this issue. Let me know!

    Thanks,
    Ryan

    #286695

    Hey!

    I have tried many custom CSS code but menu text is so long for mobile. Would you like to try adding a phone icon instead of text “call us”?

    Regards,
    Yigit

    #286705

    Thanks Yigit. A phone icon would be fine. Is there one available within the theme?

    #286707

    Hey!

    Yes you can use following code in Appearance > Menus

    <span class="av-icon-char" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span>

    You can add it in front or after your phone number

    Regards,
    Yigit

    #286734

    I tried this, but unfortunately, it’s still dropping the phone # into a second row, and also left justifying on mobile. See screenshot. http://i.imgur.com/1A1B7S6.png

    #286741

    Hey!

    Can you try it now? I have made some adjustments and now it does look like this on my iphone 4 – http://i.imgur.com/spijdJe.png

    Regards,
    Yigit

    #286749

    That works! Thanks. The only issue is the it is still left justifying below 768px when I resize my browser (looks fine on iPhone, but won’t look right on small browser or tablet). See screenshot.

    I really appreciate all the help on this!

    Ryan

    #286820

    Hey Ryan!

    Test it now, i modified something in the Quick CSS.

    Cheers!
    Josue

    #286841

    Looks great. Thanks!!

Viewing 24 posts - 1 through 24 (of 24 total)
  • The topic ‘Adding clickable text to the header area’ is closed to new replies.