-
AuthorPosts
-
September 29, 2014 at 7:11 pm #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
September 29, 2014 at 7:15 pm #326738Hey 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,
YigitSeptember 29, 2014 at 8:14 pm #326778Thanks. 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.
September 29, 2014 at 8:19 pm #326781Hi!
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,
YigitSeptember 29, 2014 at 9:45 pm #326824I added this to the functions.php file, but now my site is blank, and I can’t get into the WP dashboard. PLEASE HELP!!
September 29, 2014 at 11:25 pm #326863Okay, 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
September 30, 2014 at 1:18 pm #327167Hi!
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,
YigitSeptember 30, 2014 at 2:17 pm #327226This reply has been marked as private.September 30, 2014 at 2:29 pm #327231Hey!
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,
YigitJanuary 10, 2018 at 12:39 pm #895634Hello,
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?
January 14, 2018 at 12:58 pm #897068Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.