Header bar

  • Posted in : Read WP
  • emocion
    Participant

    Thanks to this forum posts I solve almost all my doubts.

    But I am not able to place social icon and search bar in the header above, like in this website> http://www.srtalimon.com/2013/06/iconos-redes-sociales-cabecera.html

    Exactly this is the position that I want in my site >> https://imageshack.com/i/ip9DsMl9j : Social icons in top header left and search form in top header right with the logo in the center (where it is now)

    Can you help me?

    Thank you very much for support.

    Mehmet S.
    Keymaster

    Hi, it is not possible by default.

    emocion
    Participant

    Ok, thanks Mehmet,

    I’ve been reading here > http://www.pixelwars.org/forums/topic/social-buttons-below-menu-in-masonry/#post-5294

    I follow your steps to put social icons “above the logo” using “style=”text-align: center;” but i can’t adjust social icons to the left corner. ¿Is it possible?

    Thanks again!

    emocion
    Participant

    Edit: I follow your steps using “style=”text-align: left;” but i can’t adjust social icons to the left corner.

    Mehmet S.
    Keymaster

    Found a solution, try this way:

    – add your social icons to your header with shortcodes and Text widget.

    – add Search widget to your header after Text widget.

    – use this in your Theme Options > Style > Custom CSS field:

    .site-header .row {
    position: relative;
    }
    
    .site-header .textwidget {
    position: absolute;
    top: 0;
    }
    
    .site-header #searchform {
    position: absolute;
    top: 0;
    right: 0;
    }
    

    See in the image:

    emocion
    Participant

    Thank you very much for your attention and perfect support Mehmet.

    Mehmet S.
    Keymaster

    You are welcome.

    emocion
    Participant

    Hi, one small detail. In the PC Browser works perfect but in the mobile browser overlaps the logo.

    Can I disable this header modification only for mobiles?

    Thank you

    Mehmet S.
    Keymaster

    Edit the above CSS code:

    @media screen and (max-width: 767px) {
    .site-header .row {
    position: relative;
    }
    
    .site-header .textwidget {
    position: absolute;
    top: 0;
    }
    
    .site-header #searchform {
    position: absolute;
    top: 0;
    right: 0;
    }
    }
    
    emocion
    Participant

    Works perfect, thanks Mehmet.

    Mehmet S.
    Keymaster

    You are welcome.

    emocion
    Participant

    Hi Mehmet! Excuse me for the delay, but I have confirmed that in the mobile browser overlaps the logo. I place the custom css that you put for me above but it seems finally dont work :(

    You can see here >> https://imageshack.com/i/idwrme9up

    Thanks mehmet!

    Mehmet S.
    Keymaster

    Try this:

    @media screen and (min-width: 767px) {
    .site-header .row {
    position: relative;
    }
    
    .site-header .textwidget {
    position: absolute;
    top: 0;
    }
    
    .site-header #searchform {
    position: absolute;
    top: 0;
    right: 0;
    }
    }
    
    emocion
    Participant

    Hi Mehmet! The icons still overlaps with this custom code.

    Regards

    ahmetsali
    Keymaster

    Hi, you have missed the curly bracket at the end of the custom css code @mehmetsali ‘s last post. Correct it and check again.

    berelkovsky
    Participant

    I tried to make it, but I failed. Nothing happened. Could you please help me?
    Thanks in advance!

    serkan
    Moderator

    Hi berelkovsky,
    Could you please explain to me, what are you trying to do and you failed?
    Thanks

    berelkovsky
    Participant

    I did it>>

    – add your social icons to your header with shortcodes and Text widget.

    – add Search widget to your header after Text widget.

    – use this in your Theme Options > Style > Custom CSS field:

    .site-header .row {
    position: relative;
    }

    .site-header .textwidget {
    position: absolute;
    top: 0;
    }

    .site-header #searchform {
    position: absolute;
    top: 0;
    right: 0;
    }

    serkan
    Moderator

    Hi berelkovsky,

    Is your website lingvo-lang.com ? right

    I could not see your custom css codes in the source code. Please deactivate all your plugin and try it again.

    berelkovsky
    Participant

    Done

    berelkovsky
    Participant

    It works now, but it doesn’t work for the Russian social networks OK.ru and VK.com

    berelkovsky
    Participant

    By the way, the page twitter.com/username doesn’t work, should I change just for twitter.com?

    serkan
    Moderator

    It should work actually. Maybe there is a sytnax issue.
    https://twitter.com/username

    berelkovsky
    Participant

    Thank you.
    In my browser it shows like “the page is not found”.

    serkan
    Moderator

    Hi berelkovsky,
    Please try to use another social media plugin instead of this codes.
    Thanks

Viewing 25 posts - 1 through 25 (of 25 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register