-
AuthorPosts
-
August 2, 2016 at 10:50 am #667571
Hi,
I want to put a phone number on the same section as the social profiles, is this possible? I don’t really want it on a seperate line above the header section if possible.
Thanks
EmmaAugust 2, 2016 at 1:13 pm #667609Dashboard – Enfold (or Enfold Child) – Header – Extra Elements – Header Phone Number/Extra Info ( choose left or right as you like it)
August 2, 2016 at 1:14 pm #667610Hi Guenni007 this is what I was trying to avoid using as I don’t want it on a separate line.
August 2, 2016 at 1:41 pm #667627ah ok – if you got your social links on the right of your main nav – create a new Menu Point on your main Nav !
Add a custom link
fill in that Url input field : tel:+49 228 21548753
on Name : Phone or an image link or your phone-number- This reply was modified 8 years, 4 months ago by Guenni007.
August 2, 2016 at 2:12 pm #667646if you don’t like it as a number see here
on my test environment http://webers-testseite.de/ikom/code is on that:
#menu-item-2836 a[href^="tel:"]::before { content: "\e854"; font-family: entypo-fontello; font-size: 25px; } #menu-item-2836 span { display: none; } #menu-item-2839 .avia-menu-text > img { position: relative; top: 10px; }
August 2, 2016 at 2:23 pm #667656the first two css rules set before every link starting with “tel:” an icon of the enfold entypo fontello icons.
the third rule is to manage the image i set in the menu link
August 2, 2016 at 10:50 pm #667864Hi,
Sorry this still doesn’t achieve what I want as the nav menu on my site is below the header section which contains the company logo and social icons. Ideally I want it to the left of the social icons which are on the top right hand side. Can I build something in to the header section?Thanks and sorry to be a pain. I just have a very fussy customer!
August 3, 2016 at 6:35 am #667932so now i’m out – without the life site i don’t want to guess how it could look like.
So try to place your example site here – and if you don’t want to make it public put it in the hidden part of the message. But than you have to wait til Mods are here.August 3, 2016 at 1:19 pm #667998Hi!
Can you please post a screenshot and show the changes you would like to make? You can upload your screenshots on imgur.com or Dropbox public folder and post the links here.
Also, please see – http://kriesi.at/documentation/enfold/custom-social-icons/
@guenni007 Thanks for your help as always :)Regards,
YigitAugust 3, 2016 at 10:01 pm #668290Hi Yigit,
https://dl.dropboxusercontent.com/u/18518018/fcs-screenshot.png link for screenshot which hopefully explains what I want to try and do. I had a look at the documentation you suggested but I couldn’t work out how to configure it for my own use, sorry I’m still a novice when it comes to coding etc.
Really appreciate the help guys. Thanks
EmmaAugust 4, 2016 at 10:53 am #668478how did you manage that with enfold options?
this is logo left menu below? and how did you manage to show those social icons on that place?Or is it main menu with only social icons
and a “main navigation” with submenu ?btw:
add this to your child-theme functions.php :function avia_add_custom_icon($icons) { $icons['phone'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue854'); return $icons; } add_filter('avf_default_icons','avia_add_custom_icon', 10, 1); // Add new icon as an option for social icons function avia_add_custom_social_icon($icons) { $icons['Phone'] = 'phone'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
than you have the opportunity to choos on the bottom of that social icon list Phone.
August 4, 2016 at 11:23 am #668504Hi,
Please add following code to Functions.php file in Appearance > Editor
function av_move_social(){ ?> <script> jQuery(window).load(function(){ jQuery(".av-main-nav > li#menu-item-768").detach().prependTo('#header .social_bookmarks') }); </script> <?php } add_action('wp_footer', 'av_move_social');
You may need additional custom codes. If you do, please let us know.
P.S.: We might need temporary admin logins, if you do not mind, please post them here privatelyBest regards,
Yigit- This reply was modified 8 years, 4 months ago by Yigit.
August 4, 2016 at 11:56 am #668526btw instead of appendTo in Yigits Code you can use prependTo if you want it infront of social bookmarks !
a bit css is than needed (margin-right etc to style it a bit)
see here both (my code above) works well too http://webers-testseite.de/ikom/- This reply was modified 8 years, 4 months ago by Guenni007.
August 4, 2016 at 12:08 pm #668531Hi!
That is correct. I edited my post and corrected the code. Thanks for the hint! I copied my code form an older thread and overlooked :)
Cheers!
YigitAugust 4, 2016 at 12:53 pm #668545btw the image above is interesting for you i guess:
https://kriesi.at/support/topic/phone-number-in-header-4/#post-667627because your custom link – is no link
fill in url tel: 0178…
and in Link Text if you want to show the phone number 0178…than even mobiles could press that link and they will open that phone
August 4, 2016 at 9:59 pm #668744Hi Both,
@guenni007 I have no idea how I did it! If it’s good then I’m impressed I managed that one!
@Yigit the php edit has worked but the text is sitting behind the social icons and all squished up. Can you suggest some code for the css that I can use to make this work? I can set you up a temp user on the dashboard if it helps. As this site is currently live I have removed the php function for now so once we have a plan we can add back in. This is what it currently looks like with the code still in. https://dl.dropboxusercontent.com/u/18518018/fcs-screenshot2.pngThanks again. You are both really helping me out on this. ☺
August 4, 2016 at 11:18 pm #668759Well here we go:
please do not make only one custom menu point out of this ! if it has to work like a real link!
so goto Menu and create two custom links (if you don’t know how to get to class setting for menu points ask please)
the red urls are the links
on phone : tel: … (you see the percent sign – this was automatically generated if you use here a blankspace)
on email: mailto: …the blue underlined fields are what is shown on menu (here you can set in even images or Names like “Phone” “E-Mail” )
for both i put in css class : shifted
the code in your child-theme functions.php (you have to customise the menu-item id’s) :
function av_move_social(){ ?> <script> jQuery(window).load(function(){ jQuery(".av-main-nav > li#menu-item-2845").detach().prependTo('#header .social_bookmarks'); jQuery(".av-main-nav > li#menu-item-2847").detach().prependTo('#header .social_bookmarks') }); </script> <?php } add_action('wp_footer', 'av_move_social');
and the css code in quick.css was (here too – customise the menu-item id’s):
.shifted .avia-bullet { display: none; } #menu-item-2845.shifted { margin-right: 80px !important; } #menu-item-2847.shifted { margin-right: 120px !important; } .shifted .avia-menu-text { display: inline-flex; width: 120px; }
if you can not find out the item id’s make the menu points and than we will see the rest
and this is what it looks like afterwards: http://webers-testseite.de/ikom/
August 4, 2016 at 11:27 pm #668761by the way besides the solution above you see my code via defining new “social icons” but this is than only with icons
but without that little “shifting time”
- This reply was modified 8 years, 4 months ago by Guenni007.
August 4, 2016 at 11:42 pm #668765WOW!
You guys are just amazing! I take my hat off to you. It now works and is exactly as I wanted it.
I know its been a long one but THANK YOU, THANK YOU, THANK YOU! So much.
Yet again another reason why I know this theme is the best ever invented! About to supply it to another customer as I just can’t see me working without it again!
Thank you, we can close the thread now! One happy, happy customer. @Guenni007 you are a god among web designers!
August 5, 2016 at 1:17 am #668767thanks
btw:get rid of that
#avia-menu { margin-left: 27%; }
because your search field is out of sight
instead try this here:
(the margin-left with transform gives a good method to center that ul.html_header_top.html_bottom_nav_header .main_menu ul:first-child { display: inline-flex; margin-left: 50%; transform: translate(-50%); white-space: nowrap; width: auto !important; } .html_header_top.html_bottom_nav_header #top .main_menu .menu-item-search-dropdown { float: left; }
and for small screens the “social row” is now too big – so start the advanced menu earlier:
@media only screen and (max-width: 865px) { .container #advanced_menu_toggle, #advanced_menu_hide { display: block; } .main_menu .avia-menu, #header_main_alternate, .fallback_menu { display: none; } }
your submenu is a bit to small now because of the white-space setting above:
.av-main-nav ul { width: 250px; }
Greetings – and now i’m offline
August 5, 2016 at 1:32 am #668768A Last word on that
the solution with extra social icons
https://kriesi.at/support/topic/phone-number-in-header-4/#post-668478has one big advantage – these icons stay on mobile devices visible (and in the footer too if you want it)
those shifted links were gone after mobile menu is shown.August 7, 2016 at 5:53 am #669388Hi @efletcher,
Great, glad you got it working :-)
Thanks for all the help @Guenni007!
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.