Change header size

Homepage Community Forums Epik Theme Support Change header size

Tagged: 

  • This topic has 20 replies, 2 voices, and was last updated 11 years ago by Wes.
Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #4516
    tkyorahat
    Customer

      Hi Wes,

      I’m having trouble changing the height for the header.

      How do I change it from 120px to 40px?

      #4518
      Wes
      Moderator

        Do you have a link so I can see which part of the header you’re referring to?

        If you’re referring to the logo/header then you can look for this –

        .header-image #title,
        .header-image #title a,
        .header-image #title-area {
        	display: block;
        	float: left;
        	min-height: 120px;
        	overflow: hidden;
        	text-indent: -9999px;
        	width: 50%;
        }

        ….and change the min-height to 40px.

        Make sure you’ve changed the header/logo size in your functions.php file as well.

        #4519
        tkyorahat
        Customer

          Sure it’s http://www.custothemes.com

          It’s that big grey space above the link

          #4520
          Wes
          Moderator

            Did you see the rest of my comment? I updated/edited it the same time you replied.

            #4521
            tkyorahat
            Customer

              thanks, it seems to have worked.

              On the theme demo, the header text is placed on the same line as the menu.

              Would it be possible to place my logo on the same line as the menu?

              #4522
              Wes
              Moderator

                Yes use the Custom Menu widget in the header right widget area instead of the Primary Menu area (located in your menus page).

                #4524
                tkyorahat
                Customer

                  Yep, I’ve done that but how can I bring the header logo down to the same level as the menu?

                  #4525
                  Wes
                  Moderator

                    The title area/logo and header right widget area are both too wide to fit within the 1152px space. The title area is 50% (as you can see from the code above) and the header right widget area is 65%….so you’ll need to adjust one or the other so they can both fit. Then you may need to readjust your logo/background position back to fit in the center/middle as it was before like the demo.

                    #4526
                    tkyorahat
                    Customer

                      There’s a lot of width’s that are 50%. Do I only need to change the header width to 35%?

                      #4527
                      Wes
                      Moderator

                        I’m referring to the header image width as mentioned in the code above – https://appfinite.com/topic/change-header-size/#post-4518

                        #4530
                        tkyorahat
                        Customer

                          Thanks Wes,

                          I’ve done it but the height is still the same.

                          Let me know if it’s too much of a problem for you to explain and I’ll just hire a developer to do it for me.

                          #4532
                          Wes
                          Moderator

                            No its no problem, its actually pretty easy once you understand how it works.

                            Did you remove the header? Because I don’t see it.

                            #4533
                            tkyorahat
                            Customer

                              Yeah I lowered the width to see if it would go onto the same line as the menu but it didn’t work, so I restored the header size back to 1152 脳 20 pixels

                              #4534
                              Wes
                              Moderator

                                You can try changing the background-position of the image so it sits in the middle like this –

                                #header {
                                    background-position: 0 18px !important;
                                }

                                This is what it will look like if you do the suggestions – http://i.imgur.com/KZwkyDU.png

                                #4535
                                tkyorahat
                                Customer

                                  That’s exactly what I want.

                                  I can’t seem to find the code in the style.css or the functions.php

                                  How does the original code look like?

                                  #4536
                                  Wes
                                  Moderator

                                    You can actually add that code to the header area in your css, and it will override it’s position.

                                    #4537
                                    tkyorahat
                                    Customer

                                      I added it on style.css after /* 04c – Header ———– */

                                      but it doesn’t seem to have worked.

                                      #4538
                                      tkyorahat
                                      Customer

                                        now it seems to be working.

                                        By the way, should I reset the width from 35% back to 50%?

                                        #4539
                                        Wes
                                        Moderator

                                          No, if your header is 50% and your header-right widget area is 65% then it would exceed 100% width. You can’t exceed 100% or one of the areas will fall off under the other, and you’d be right back to the same issue. So keep them both equal to 100% or less.

                                          #4540
                                          tkyorahat
                                          Customer

                                            Sounds good.

                                            Thanks for taking the time to help me figure this out, I really appreciate it Wes 馃檪

                                            #4541
                                            Wes
                                            Moderator

                                              You’re Welcome

                                            Viewing 21 posts - 1 through 21 (of 21 total)
                                            • The topic ‘Change header size’ is closed to new replies.