Announcement

Collapse
No announcement yet.

How to add a full-width logo in the header

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #46
    Sorry for bumping an old thread, this works great but now I need to adjust my search bar so it’s cantered vertically and moved inwards a bit. I’m not sure what to do to adjust that
    Click image for larger version

Name:	A395892E-7F57-468F-8106-006F9B4A9306.jpg
Views:	240
Size:	60.3 KB
ID:	26410
    ​​​​​​​

    Comment


      #47
      Adjust the right and bottom properties in this block of code:

      Code:
      #header .toolbar {
          position: absolute;
          right: 0;
          bottom: -30px;
          padding: 0;
          width: auto;
      }
      Buy me a coffeePayPal QR Code
      My Amazon Affiliate Link ​
      Fast vBulletin VPS Host:
      This site is hosted by IONOS

      Comment


        #48
        Thank you!

        Comment


          #49
          Will this work on vb cloud 6.0.5 or just the regular version?

          Comment


            #50
            Originally posted by SPX View Post
            Will this work on vb cloud 6.0.5 or just the regular version?
            It should work on both vBCloud and self-hosted.

            In general, pure HTML, CSS and JS changes should always work on both since there's no client-side differences between the two.
            Buy me a coffeePayPal QR Code
            My Amazon Affiliate Link ​
            Fast vBulletin VPS Host:
            This site is hosted by IONOS

            Comment


              #51
              I am trying to make the header full width in vB 6.0.5 but it is not working.

              I have added the css code from the first post in this thread.

              Here is the before header.
              Before Header
              Before adding CSS code. Size 1200 x 159 px.
              After adding the CSS code.
              After CSS​It only moved the search box. No change to the header graphic at all. I have tried doubling the size to 2400px and there was no difference.

              I would really like to create the flag background as the header background then add the graphic as the logo. What am I missing?

              Comment


              • glennrocksvb
                commented
                Editing a comment
                Please post or PM me the URL to your forum so I can inspect and see what's wrong.

              #52
              Pay the man his money...
              Hire Glenn to do it.. Why get frustrated. Time is money and his rates are reasonable.

              Comment


                #53
                Thanks Glen,

                The url is https://tst.forums.ncrs.org

                Comment


                  #54
                  Your image is too narrow to fit in the width of the window at just 800px. I recommend using a wider logo at 1920px (at least).

                  Or you can keep the existing logo and just stretch it to fit the window but the image quality may suffer. Use this CSS as additional code to the code in the first post.
                  Code:
                  #header .site-logo img {
                      width: 100%;
                  }
                  Buy me a coffeePayPal QR Code
                  My Amazon Affiliate Link ​
                  Fast vBulletin VPS Host:
                  This site is hosted by IONOS

                  Comment


                    #55
                    The image that I uploaded is 1200 px wide. I tried it at 2400 px just to see what it would do and it didn't extend any more.

                    When I entered the CSS code:

                    #header .site-logo img {
                    width: 100%;
                    }​

                    the header extended the full width.

                    Thanks for your help. I purchased the Main Nav Dropdown Menu v1.6 - and it worked like a charm. I am going to purchase the AJAX Search next. May find a couple other add-ons as well.

                    Thanks again for your help.

                    Comment


                      #56
                      The system may be resizing the uploaded image based on the configured maximum size in the Attachment Manager in AdminCP. You had a similar issue as this one:

                      i am running Vb 6.0.3 and used your code to move my search box out of the header to the nav bar. I got that to work but i want my header to cover the entire top of the screen and it doesnt. I have set my Wrapper max width to 100% and used this code for the search. i would like the site logo to stretch the width of the screen?
                      Buy me a coffeePayPal QR Code
                      My Amazon Affiliate Link ​
                      Fast vBulletin VPS Host:
                      This site is hosted by IONOS

                      Comment

                      Latest Posts

                      Collapse

                      Working...
                      X
                      Searching...Please wait.
                      An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

                      Please push the back button and reload the previous window.'
                      An unexpected error was returned: 'Your submission could not be processed because the token has expired.

                      Please push the back button and reload the previous window.'
                      An internal error has occurred and the module cannot be displayed.
                      There are no results that meet this criteria.
                      Search Result for "|||"