Responsive logo alignment

Homepage Community Forums Epik Theme Support Responsive logo alignment

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #14938
    Genghis7777
    Customer

      Hi Folks

      If you shrink the Epik demo home screen down by adjusting the size of your window on your desktop you can simulate how the website will look on say a tablet or a phone.

      That’s great. If you watch the Epik site title as you shrink the screen, it jumps from the left of the primary nav bar to a position above it and centered.

      That’s cool.

      But then if you replace that text with a logo graphic in the header space according to the dimensions specified, as you’re meant to do with a Genesis theme, then that responsive behaviour changes.

      Now instead of jumping and being centered above the primary nav menu, it is jumping above the nav menu but is now offset to the left and looks ugly.

      I approached a local CSS guru and the only way she could “fix” it was to create a banner graphic and have it sit in the background.

      But then I lose the ability to make the logo a link to my home page.

      Any thoughts on how to fix this? It would be way better to find some way to make the usual graphic in the header space behave in the expected manner and retain the home page link property of the logo.

      The website in question is: http://cbs.thenewblack.dnserver.net.nz/

      Thanks in advance

      #14943
      bocafit
      Customer

        I believe I’m having the same issue. The logo is cut off on an iPhone 5 or a computer with 800×600 resolution even though it is set to 360×164, which is what the theme specifies…
        http://smylrlive.com
        It gets cut off at the “l”

        Any ideas…?

        #14964
        Eric
        Customer

          @bocafit Since everyone has a different sized logo, the same code probably won’t work. To start, you can add this to your css –

          .site-title a {
              background-size: contain !important;
          }

          Then I would have to see what it looks like in order to see what to do next,. You don’t have to use the exact size that is added in the theme, you can actually use whatever size you want. Did you want a larger or smaller sized logo? Just let me know.

          Also, this type of question has already been answered here in the forum, so if you do a search you’ll be able to see the code I posted above and a few other things that can help you with any issues you have.


          I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

          #14965
          bocafit
          Customer

            Thank you Eric. Well, the Custom Header section of the theme specifies that the logo should be 360 × 164, so that is the size we made our logo.

            We added the CSS above under “/* Logo, hide text */” on line 2039 below .header-image .site-title a {

            We don’t have a screen that’s 800×600 or an older iphone handy, so we will have to get back to you on whether that worked. Thank you

            #14968
            Wes
            Moderator

              @bocafit I usually recommend the code that was posted above by Eric. If you do a search in the forum you’ll see more posts that cover different things you can do to adjust how your logo looks in Genesis…..This is how it works in all Genesis themes.

              I just checked your site, and scanned your CSS file, but I don’t see the code. Are you sure you added it to your CSS?

              Also, once you do add it, you’ll still need to adjust the title-area CSS when the site is in responsive mode. When your browser is adjusted, or when it is viewed on a smaller device, it activates the responsive CSS at the bottom to override the code that is used for the desktop version. At the moment the width is at 300px on line 4103 –

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

              ^ So once you change that to whatever size you prefer your logo to be, including the code mentioned above, then it should work.

              I have an iPhone and an iPad so I can check your site once you make the adjustment to make sure everything is working…..Or since it’s a simple fix, I can login for you and make the adjustment directly. Just let us know


              @Genghis7777
              you can fix your issue by adding the following code to your responsive section –

              
              .site-header .site-title a {
                  background-position: center top !important;
              }

              That should center it…..however, your image itself needs to be centered. If you open it in photoshop you’ll see that it is off to the left and there is some transparent space on the right side. So once even out both sides and remove the extra space it will center perfectly.

              #14971
              Wes
              Moderator

                @bocafit Also, I was just notified that you sent us an Email about this post. Every once in a while we may miss a post by mistake due to the large volume that we receive (but that is rare as we usually answer each question).

                Keep in mind this is the Community forum and not necessarily a “ticket” system. We answer the majority of the questions here, but since it is a Community we allow other members help each other here as well. Usually what you would want to do in the future is create a separate post rather than posting on another another users thread if you have a question and need support. Posting on another users existing thread will sometimes cause others to think that the “New” post is being answered by someone which would make other members move on to the next “New” post.

                So in the future just make sure to create your own Post so that will show up in the New/Fresh list of threads and it will definitely be seen. It’s rare if we miss a post here though, we try to make sure each and every question gets answered.

                Make sure and check out my reply above this post to get the code you need to make the adjustments and let me know if you still need help.

                Thanks

                #14981
                bocafit
                Customer

                  @Wes

                  The code Eric recommended is on line 2040 in the css file. We tried making the logo 300px, which would be 300×137, but the theme is resizing it to 360×164 when we upload it. See Dashboard -> Appearance -> Header. Surely we can’t be the only ones having this issue.

                  Thank you. If you could log into our website to help us that would be great. Please let us know how to get you that log in info…

                  The link for the logo is: https://www.smylrlive.com/wp-content/uploads/2015/01/logo1.png)

                  #14983
                  Wes
                  Moderator

                    You can add it here if you want, just make sure and click the checkbox labeled “Set as private reply” and only I will see it.

                    #14986
                    Wes
                    Moderator

                      @Genghis7777 Just wanted to make sure you saw my reply above? I know this was originally your thread and everything kind of got mixed up with other posts/questions, so I just wanted to check and make sure you were able to get everything working since you were first.

                      I don’t want you to think we forgot about you or anything 🙂

                      #14991
                      bocafit
                      Customer
                        This reply has been marked as private.
                        #14992
                        Wes
                        Moderator

                          Ok just got it done.

                          As mentioned earlier, I first changed the .site-title a on line 2039 –

                          .site-title a {
                              background-size: contain !important;
                          }

                          to this instead –

                          .head-wrap .site-title a {
                              background-size: contain !important;
                          }

                          Then I changed this on line 4001 from this –

                          .content,
                          .site-header .widget-area {
                              width: 620px;
                          }

                          and replaced it with this –

                          .content,
                          .site-header .widget-area {
                          	width: 60%;
                          }

                          ^ That covered the widget area space. It changed it from 620px to 60%….which means it covered 60% of the space in the header…..while the logo area covered most of the rest (not including padding/margin)

                          I also noticed that the logo wasn’t centered due to the size of the image. So I added some code to make it center when viewed in responsive mode. I did so by adding this code around line 2041 –

                          background-position: center top !important; So in the end, it should look like this –

                          .head-wrap .site-title a {
                              background-size: contain !important;
                              background-position: center top !important;
                          }

                          I just tested this on an iPhone and everything is working perfectly. The entire logo is showing (without being cut off), and it is also Centered which means it will show up as it should on the iPhone, and any other mobile device (all sizes).

                          Let me know once you take a look.

                          #15120
                          Mike
                          Customer

                            I’m experimenting with the same issue. Your fix —

                            .head-wrap .site-title a {
                            background-size: contain !important;
                            background-position: center top !important;
                            }
                            /*

                            — worked to position the logo properly on my android, but it left the image on the computer screen no longer left-aligned. Is there a way to have my cake and eat it too?

                            #15122
                            Eric
                            Customer

                              @Mike Do you have a link to your site?


                              I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

                              #15124
                              Eric
                              Customer

                                @Mike I replied to your post here – https://appfinite.com/topic/header-widget-change-position/#post-15123 lets finish the convo on that link since this thread was originally started by @Genghis7777


                                I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

                              Viewing 14 posts - 1 through 14 (of 14 total)
                              • The topic ‘Responsive logo alignment’ is closed to new replies.