Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #293090

    Hello and thanks in advance.

    I am trying to add a phone number to my main nav bar in Enfold. I know it has been asked before and I have tried to follow the steps, but cannot get it to work – I’m still pretty new to all this!

    I have added the following to my functions.php (at the end if that makes a difference).
    /*
    *Add phone number to menu tab
    */
    add_action(‘ava_after_main_menu’,’ava_phone_after_main_menu’);

    function ava_phone_after_main_menu() {
    echo “<div class=’header-phone-number’>+44 (0) 1227 773003</div>”;
    }

    and then added this to my quick.css…

    /* phone number in header */
    div.header-phone-number {
    display: inline-block;
    position: absolute;
    right: 45px;
    top: 8px;
    color:#ffffff !important;
    }
    /*i-phone*/
    div.header-phone-number a{
    display: block;
    position: absolute;
    width: 125px;
    color:#ffffff !important;
    }

    But not having any luck. Please help!

    Thanks.

    #293129

    Hey FMIS!

    Can you post a screenshot and show where exactly you would like to add phone number? If next to your “contact” menu item, please go to Appearance > Menus and add your phone number as a new link with # for URL

    Regards,
    Yigit

    #293750

    Hi Yigit,

    Thanks. That is helpful, although I am actually trying to position next to the search icon, so right aligned in the menu bar as per the image below.

    http://www.fmis.co.uk/Images/phone.jpg

    #293955

    Hi!

    Please follow the instructions i have posted here – https://kriesi.at/support/topic/add-image-to-navigation/#post-292443

    Regards,
    Yigit

    #294244

    Thanks Yigit,

    Worked a dream. Quick question, does entering the changes here rather than via FTP mean that they will not be overwritten when I update the theme / wordpress?

    P.S. Enfold is by far the best template I have worked with – love it.

    #294324

    Hi!

    Great! :)
    Any change you make on theme files will be overwritten when you update the theme. To avoid that, you can use a child theme. Please see – http://kriesi.at/documentation/enfold/using-a-child-theme/
    Glad you like Enfold :)

    Cheers!
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.