Tagged: 

Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #748812

    Hi,
    we need to add some additional elements in the header area.
    We followed this instructions:
    http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/ ( layout with the menu below the header area).
    If we put this code into our functions.php it has negative influence on our layout.
    Please look here:
    1: Without the code
    https://drive.google.com/open?id=0BzF3a9LXV99JdVBOTmQ4SHV4eGc (This is correct and how it should looks like)
    2: With your code
    https://drive.google.com/open?id=0BzF3a9LXV99JLTR3RFNyYzRuRnM
    Here you can see that you code makes the slider vanishes in parts behind the header-element.
    This seems to be a bug.
    Can you please help?

    Regards Martin

    #748881

    Hey digitalprint2222!

    That is not actual a bug, but it does require some further customization to make it work properly ( with some custom CSS as it seems based on your needs ).

    The best case scenario is to hire a freelancer to help you with your process.

    Let us know if we can do anything else for you.

    Cheers!
    Basilis

    #748989

    Hi Basil
    Mister Budschedl aka Kriesi told us personally on Themeforest this:
    Hey Martin!

    1.) the Customization wouldn’t be too hard I guess, since all you need to do is to inject a html button into the header which can be done via one of the WordPress Hooks in file includes/herlper-main-menu.php. All you need to do then is to style the button to your likings and position it properly. This is something we can definitley help with once we know which header and layout setting you are going for ;)

    Ok, so here we go:
    This is what we are going to achieve:
    https://drive.google.com/open?id=0BzF3a9LXV99JQTNqcUpCckhLY00

    The Layout we have choosen is this:
    https://drive.google.com/open?id=0BzF3a9LXV99JOGwwX1J6TG9KdzA

    Thanx for supporting
    Regards Martin

    #748996

    I forgot to mention the URL:

    I am already quite far but here some specific questions:
    1: How can i reduce the distance between the upper browserwindow edge and the logo?
    2: How can i make the logo bigger? (if i use the “custom pixel value setting” for the header it influences the whole header but i just want to make the logo takes more space)
    3: Something is wrong with the CSS cause it does not adapt properly if i minimize the browser window.

    Thanx Martin

    #751244

    Hey!

    1.) What are the css modifications that you added in the theme? Did you set the height of the header?

    2.) Add this css code in the Quick CSS field.

    .logo img {
        width: 340px;
        height: 156px !important;
        max-height: 156px !important;
        top: -50px;
    }

    You might need to adjust the height of the header.

    3.) Which css or what elements are not adapting to the screen? Please provide a screenshot of the expected header layout on mobile view.

    Best regards,
    Ismael

    #755126

    Hallo Ismael
    i added your CSS but had to change the value from 156px to 150px – otherwise the logo was chopped of a bit on the bottom.

    This shows how the additional elements should be positioned in mobile devices.
    Just right beside the logo
    https://drive.google.com/open?id=0BzF3a9LXV99JOWxtdTFhS3dsVlE

    The settings we have is:
    Stretched layout by 1310px
    Logo left / Menu below
    Breadcrumb & Title = NO
    Header-Size= Big
    No Extra-Elements

    This is what we already have in our CSS regarding the header

    
    #header #header_main_alternate .container {
      padding: 0px !important;
    }
    
    #header_main_alternate{
    	display:block !important;
    } 

    The last one is to solve the “residiual styling” problem for Ubermenu from SevenSparks

    Then we have this but it should only affect the <divs> we have added already.
    I am not sure if its correct.

    
    .addheader {
      float: right;
      width: 45%;
      color: #222 !important;
      text-transform:uppercase;
    }
    .addheader a {
    color:#ccc !important;
    text-transform:uppercase;
    font-size: 100%;
    }
    .addheader1 {
      background: rgba(0, 0, 0, 0) url("http://dpg.4lke.de/wp-content/uploads/schloss.png") no-repeat scroll 0 0;
      border: 1px solid #ccc;
      float: left;
      min-height: 51px;
      padding: 0 12px 0 0;
      text-align: right;
      width: 24% !important;
    }
    .addheader2{   background: rgba(0, 0, 0, 0) url("http://dpg.4lke.de/wp-content/uploads/anfrage.png") no-repeat scroll 0 0;
      border: 1px solid #ccc;
      float: left;
      min-height: 51px;
      padding: 0 12px 0 0;
      text-align: right;
      width: 24% !important;}
    .addheader3{   background: rgba(0, 0, 0, 0) url("http://dpg.4lke.de/wp-content/uploads/rueckruf.png") no-repeat scroll 0 0;
      border: 1px solid #ccc;
      float: left;
      min-height: 51px;
      padding: 0 12px 0 0;
      text-align: right;
      width: 24% !important;}
      .widget.clearfix.widget_text {
      position: relative;
      top: 117px;
      right: 65px;
    }

    Kind Regards martin

    #756175

    Hey!

    I can’t figure out where the huge space above the logo is coming from. Please post the login details here so that we can see all the css modifications. And please update the theme to version 4.0.

    Cheers!
    Ismael

    #756389

    Hi Ismael
    credentials attached
    Regards Martin

    #756767

    Hey!.

    We tried to duplicate the layout described in the screenshot as much as we can. I’m sure you can do the rest.

    .addheader {
      float: right;
      width: 100%;
      color: #222 !important;
      text-transform:uppercase;
    }
    
    .addheader a {
      color:#ccc !important;
      text-transform:uppercase;
      font-size: 100%;
    }
    
    .addheader1 {
      background: rgba(0, 0, 0, 0) url("http://dpg.4lke.de/wp-content/uploads/schloss.png") no-repeat scroll 0 0;
      /* border: 1px solid #ccc; */
      float: left;
      min-height: 51px;
      padding: 0 12px 0 0;
      text-align: right;
      width: 24% !important;
      min-width: 120px;
    }
    
    .addheader2 {   
    background: rgba(0, 0, 0, 0) url("http://dpg.4lke.de/wp-content/uploads/anfrage.png") no-repeat scroll 0 0;
      float: left;
      min-height: 51px;
      padding: 0 12px 0 0;
      text-align: right;
      width: 24% !important;
      min-width: 120px;
    }
    
    .addheader3 {   
       background: rgba(0, 0, 0, 0) url("http://dpg.4lke.de/wp-content/uploads/rueckruf.png") no-repeat scroll 0 0;
      float: left;
      min-height: 51px;
      padding: 0 12px 0 0;
      text-align: right;
      width: 24% !important;
      min-width: 120px;
    }
    
    #header .widget_text {
        position: absolute;
        top: 20px;
        right: 0;
        width: 40%;
        z-index: 9999;
    }
    
    @media only screen and (min-width: 768px) {
      /* Add your Desktop Styles here */
       .logo img {
          width: 340px;
          height: 150px !important;
          max-height: 150px !important;
          top: -20px;
       }
    }
    
    @media only screen and (max-width: 768px) {
          /* Add your Mobile Styles here */
       .addheader3, .addheader2, .addheader1 {
          width: 52px;
          min-width: 52px;
       }
    
       .addheader3 a, .addheader2 a, .addheader1 a {
          display: none;
       }
    
       #header .widget_text {
          top: -20px;
       }
    }

    Regarding the ubermenu, please contact the plugin author.

    Best regards,
    Ismael

    #757003

    Hi Ismael
    GREAT & THANK YOU VERY MUCH.

    There is no issue with the Ubermenu – it was just for your information that there is some CSS regarding the header.

    But i have one (probably) minor thing i fiddle around for a while now.
    Can you please help me to understand where i have to look for the solution?

    The problem:
    The text “Kontakt” & “Anfrage stellen” should be a bit closer at the icons.
    This value for addheader2 & addheader3 would be perfect for desktop:
    padding:0 55px 0 0
    If i do that and than resize the screen the text is to close and overlaps the icon short before the breakpoint.
    I tried it with a relative value ” padding: 0 3% 0 0″ but that didnt help neither.
    Then i tried it with variations of margin and / text-intent but i cant solve it.
    Could you please point me at least in the right direction to find the solution?
    (Sometimes its just small things that can drive you crazy – doesnt it?)

    Kind regards Martin

    #757686

    Hey!

    Add this css code:

    .addheader a {
        left: -20px;
        position: relative;
    }

    You can also decrease the width of the “addheader” containers.

    Regards,
    Ismael

    #758309

    Hi Ismael
    sorry – but that doesnt work.
    Maybe i wasnt clear when i described the problem.
    Can you please watch the screencast?
    https://drive.google.com/open?id=0BzF3a9LXV99JNFBqYnhMNjhzS2M

    It shows what happens if i resize the window.
    Thats what we need to solve and what i cant figure out how to fix.

    Regards Martin

    #758794

    Hi!

    Thank you for the update.

    Adjust the min-width value of the “addheaders” from 120px to 160px.

    Cheers!
    Ismael

    #759046

    Hi Ismael
    thanx again.

    Can you please leave that thread open??
    I guess that i will have twor or three minor things but first i have to adjust some other elements before i can go further with the header.

    Kind regards martin

    #759185

    Hi,

    Sure, we will keep this thread open until we hear from you further.

    Feel free to get back to us if you have more questions and we will be happy to help :)

    Best regards,
    Vinay

    #759366

    Hello Vinay
    faster back than you thought, right? ;-)
    We have some real trouble with getting the positions & behavior (for mobile and different viewportsizes) we need and before we start to adjust i thought it might better to ask some PROs – you.
    At first we would like to make sure that we dont have any unnecessary or interfering CSS.
    Can we please start with this?

    Ismael gave us this CSS:

     .logo img {
          width: 340px;
          height: 150px !important;
          max-height: 150px !important;
          top: -20px;
       }

    Would it be better to have it like that: width: auto; ?

    .logo img {
      height: 150px !important;
      max-height: 150px !important;
      top: -20px;
    width: auto;
    }

    Two:

    .addheader {
      float: right;
      width: 100%;
      color: #222 !important;
      text-transform:uppercase;
    }

    Is that float:right really necessary??
    If i remove it it doesnt change anything

    Kind regards Martin

    #759825

    Hi!

    1.) Yes, you can remove that.

    2.) If you adjust the height and max-height property to 156px it will still look the same. We added the css declaration to get the actual size of the logo image which is 350x156px.

    Cheers!
    Ismael

    #759933

    Hi Ismael,
    yes, ok, but can we use width: auto; or does it create problems?

    Kind regards
    Martin.

    #760395

    Hi!

    Like I said, it’s the same. It won’t create any issue. For more inquiries, please create a new thread. Thank you!

    Regards,
    Ismael

    #760714

    Hi Ismael
    please leave that thread open since there are still some questions.
    But i need some time to collect them and fix some other stuff before.
    Thanx and have a nice day.
    Kind regards Martin

    #761189

    Hi Martin,

    Thanks for the feedback, we’ll leave the thread open for you.

    Best regards,
    Rikard

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