Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #326736

    Hello – I currently have a temporary one page site – brilliantrack.com. I am adding pages, and will be adding a main menu to the right side of the header (logo will move left). I would like to add the phone # and e-mail (current menu items) to the header, over the main menu. They need to be clickable.

    Any help is appreciated.

    -Ryan

    #326738

    Hey rjflaherty!

    Please go to Enfold theme options > Header Layout > Extra elements and add your phone and e-mail. You can use HTML in the input field

    Best regards,
    Yigit

    #326778

    Thanks. I am aware of the “extra elements” section which appears above the header, but I would like to add the text directly into the header section, above the main menu.

    #326781

    Hi!

    Please add following code to Functions.php in Appearance > Editor and adjust as needed

    function custom_text() {
    	echo "<div class='my-custom-text'><a href='http://kriesi.at' target='_blank'>Here goes my text</a></div>";
    }
    add_action('ava_after_main_menu', 'custom_text');

    Then you can adjust its position using following code in Quick CSS field that is inside Enfold theme options > General Styling tab

    .my-custom-text { position: relative; left: 10px; top -10px; }

    Best regards,
    Yigit

    #326824

    I added this to the functions.php file, but now my site is blank, and I can’t get into the WP dashboard. PLEASE HELP!!

    #326863

    Okay, I restored the original functions.php file, so the site is back up. Is it possible I inserted the new code in the wrong place? Please let me know where to insert it in the functions.php file.

    Thank you!

    Ryan

    #327167

    Hi!

    You can add the code to bottom of the file. I personally like adding it below following line

    'bitcoin' 		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue92a'),
    
    ));

    If you do not mind creating a temporary admin login and posting it here privately, i can add the code for you

    Best regards,
    Yigit

    #327226
    This reply has been marked as private.
    #327231

    Hey!

    I have added it. Please go to Functions.php file and search “Here goes my text” and edit it as needed and change the link. Then you can change the position using following code in Quick CSS

    .my-custom-text { position: relative; left: 10px; top -10px; }

    Best regards,
    Yigit

    #895634

    Hello,
    I followed your instructions to add an additional header with my website’s contact information.

    However, as it takes up valuable screen real estate, I would like to add it to the right of the main menu. Is that possible?

    #897068

    Hi,

    I think it’s possible, you just need to adjust the left and top values in the css code provided by Yigit. Let us know if this helps.

    Best regards,
    Nikko

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