Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #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
    Emma

    #667609

    Dashboard – Enfold (or Enfold Child) – Header – Extra Elements – Header Phone Number/Extra Info ( choose left or right as you like it)

    #667610

    Hi Guenni007 this is what I was trying to avoid using as I don’t want it on a separate line.

    #667627

    ah 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.
    #667646

    if 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;
    }
    #667656

    the 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

    #667864

    Hi,
    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!

    #667932

    so 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.

    #667998

    Hi!

    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,
    Yigit

    #668290

    Hi 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
    Emma

    #668478

    how 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.

    #668504

    Hi,

    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 privately

    Best regards,
    Yigit

    • This reply was modified 8 years, 4 months ago by Yigit.
    #668526

    btw 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.
    #668531

    Hi!

    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!
    Yigit

    #668545

    btw the image above is interesting for you i guess:
    https://kriesi.at/support/topic/phone-number-in-header-4/#post-667627

    because 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

    #668744

    Hi 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.png

    Thanks again. You are both really helping me out on this. ☺

    #668759

    Well 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/

    #668761

    by 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.
    #668765

    WOW!

    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!

    #668767

    thanks
    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

    #668768

    A Last word on that
    the solution with extra social icons
    https://kriesi.at/support/topic/phone-number-in-header-4/#post-668478

    has 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.

    #669388

    Hi @efletcher,

    Great, glad you got it working :-)

    Thanks for all the help @Guenni007!

    Best regards,
    Rikard

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