Resizing Header Logo inSync

Homepage Community Forums inSync Theme Support Resizing Header Logo inSync

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #19225
    caroline
    Customer

      Hi, Wes:
      I’m trying to resize my header logo in inSync. The theme default is 360×70 and I was adjusting to 406×194. I made the following changes but the logo is still cut off considerably. Where else should I make edits? I changed back to the original logo till I can resolve. http://bit.ly/1T48sMc (Thank you)

      In functions php and css I made the following changes to accommodate a 406×194 logo:

      In PHP I changed:

      //* Add support for custom header
      add_theme_support( ‘custom-header’, array(
      ‘width’ => 406,
      ‘height’ => 194,
      ‘header-selector’ => ‘.site-title a’,
      ‘header-text’ => false,
      ) );

      In CSS I changed:

      .title-area {
      font-family: ‘Helvetica Neue’, Helvetica, Arial, sans-serif;
      font-weight: 700;
      float: left;
      padding: 0;
      width: 406px;
      }

      and:

      }

      .header-image .site-title a {
      float: left;
      min-height: 194px;
      width: 100%;
      }

      #19253
      Wes
      Moderator

        Just now seeing this. Did you get it working? It doesn’t appear to be cut off when I take a look.

        #19255
        caroline
        Customer

          Hi Wes,
          No, I would like to resize and make larger. I reverted back to the original size because I could not get it to work. Any input would be greatly appreciated. I would like to make the logo larger and have it center on mobile devices. Thank you.

          #19263
          Wes
          Moderator

            Can you add it back so I can see what needs to be adjusted? Of course you would have to change the size in the functions file first before uploading the image so it won’t get cropped. The next steps are the CSS (which is what you’ve already done).

            Once you get it to this point I can look at it and see if something else needs to be adjusted somewhere.

            #19264
            caroline
            Customer

              I changed it in functions file as well, previously as indicated in the original post. I will do so again.

              #19265
              caroline
              Customer
                This reply has been marked as private.
                #19266
                caroline
                Customer

                  OK, it worked as far as resizing Wes. I guess the trick was to change in PHP before adding logo in customizer. I thought I did so previously but maybe not. Now, how can I center the logo on mobile devices that include the hamburger menu. Its ok on ipad since the full navigation menu shows up with no need for the hamburger.

                  Thank you,

                  #19267
                  caroline
                  Customer
                    This reply has been marked as private.
                    #19269
                    caroline
                    Customer

                      well I resized to 350×150 and it looks the same size as when I had it 406×194

                      #19270
                      caroline
                      Customer

                        I resized to 360 x 110 and this is a good size. Centering on mobile is the only thing left that needs to be done. I changed min. height to 140 in css to add some padding beneath logo:

                        }

                        .header-image .site-title a {
                        float: left;
                        min-height: 140px;
                        width: 100%;
                        }

                        #19273
                        Wes
                        Moderator

                          To get it centered on mobile, add this in your Responsive section in the CSS –

                          .header-image .site-title a {
                              background-position: center !important;
                              float: none;
                          }

                          You can start by adding it under the section labeled –

                          @media only screen and (max-width: 767px)

                          and see if that works best.

                          #19274
                          caroline
                          Customer

                            Like this?

                            /* iPhones (portrait and landscape)
                            ——————————————— */

                            @media only screen and (max-width: 767px) {
                            .header-image .site-title a {
                            background-position: center !important;
                            float: none;
                            }
                            .home-feature-1,

                            (Looks like it worked) I checked on Iphone and Ipad mini. Thank you, Wes! Much appreciated.

                            #19275
                            Wes
                            Moderator

                              Yep, that’s it!

                              Add your link to the showcase forum whenever it’s ready – https://appfinite.com/forum/showcase/

                              #19542
                              ctovani
                              Customer

                                I’m having an issue with the header image being cut off when the browser is reduced. I’m not sure if it has to do with the responsive area and I’ve been reading these forums and am a little unsure of what to do. I know that I changed the size in css but perhaps I missed an area.

                                Here is my site: http://fjc.sacstreetdesign.com/

                                Thank you!

                                #19543
                                Wes
                                Moderator

                                  @ctovani If you take a look around line 3173 in your CSS you’ll see this –

                                  	.sidebar-primary,
                                  	.title-area {
                                  		 width: 300px;
                                  	}

                                  When the browser is resized to 1180px the code above makes the width 300px. Since your logo is larger than that you could actually remove that code or separate the .sidebar-primary and the title-area so the sidebar and title-area (logo) aren’t both affected by the same code. Try editing it like this –

                                  	.sidebar-primary {
                                  		 width: 300px;
                                  	}
                                  
                                  	.title-area {
                                  		 width: 520px;
                                  	}

                                  The second thing I would recommend you do is add some code to make your logo a bit more responsive and adjust on smaller devices so it doesn’t cut off. If you look in the iPads (portrait) section of the Responsive Area (line 3205) you can add the following code –

                                  .header-image .site-title a {
                                  	background-position: center !important;
                                  	background-size: contain !important;
                                  }

                                  That will also make your logo align in the Center as well.

                                  Let me know if this helps or if you need assistance adding this code in.

                                  #20206
                                  Russell
                                  Customer

                                    I added the recommended 360px x 70px header image and the height of the header box extended. Does the title area width need to be resized? I haven’t modified the header area sizing in CSS. Thanks. Here’s the site — http://prodocsystems.com/

                                    #20224
                                    Wes
                                    Moderator
                                    Viewing 17 posts - 1 through 17 (of 17 total)
                                    • You must be logged in to reply to this topic.