Announcement

Collapse
No announcement yet.

How to move the Search box to the Main navigation bar

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

    #16
    What device are you using? You seem to be using a custom theme where it makes the Search box taller than the default. Can you post a link to your site?
    Buy me a coffeePayPal QR Code
    My Amazon Affiliate Link
    Fast vBulletin VPS Host:
    This site is hosted by IONOS

    Comment


    • NumNum
      commented
      Editing a comment
      iPhone and iPad

    #17
    Sure,

    The Adirondack Forum, for all things outdoors in the ADKs!

    Comment


      #18
      NumNum, I updated the CSS code in the first post. Please try it and let me know if it fixes the issue.
      Buy me a coffeePayPal QR Code
      My Amazon Affiliate Link
      Fast vBulletin VPS Host:
      This site is hosted by IONOS

      Comment


        #19
        NumNum, for your specific theme, you may want to also make these adjustments:

        Code:
        .l-desktop #header .toolbar {
            bottom: -34px;
        }
        
        .l-desktop .search-box .search-term {
            height: 30px;
            width: 200px;
        }
        Buy me a coffeePayPal QR Code
        My Amazon Affiliate Link
        Fast vBulletin VPS Host:
        This site is hosted by IONOS

        Comment


          #20
          The new code in post one skews the logo image so it no longer spans the header.

          Going to turn in, I'm running on 3 hrs of sleep and my eyes are shot. I reverted the code and will check again tomorrow.

          Click image for larger version  Name:	cssScreenshot 2025-02-11 214421.png Views:	0 Size:	208.8 KB ID:	31530

          Comment


            #21
            Your banner logo width is too narrow (at 850px) to fit the header width which is 1000px. The code does not stretch the image to keep the original aspect ratio of the image.

            I recommend editing the banner logo image to enlarge it to 1000px.

            Another option is to force it to span the header width and lose the original aspect ratio by adding this custom CSS:
            Code:
            .l-desktop #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


            • NumNum
              commented
              Editing a comment
              This is why I had to go to bed. For this site the logo is centered on the header (the other site spans the full width) and not the full width.

              The initial code pushed the logo to the far left, uncentering it in the header.

            • glennrocksvb
              commented
              Editing a comment
              Could you try the code in the first post again? Make sure to replace the old code (back up if needed).

            • NumNum
              commented
              Editing a comment
              I have replaced the code with that of the first post. You'll see it skews the logo off-center (align left). It does remove the search box on responsive screens

            #22
            NumNum, add this:

            Code:
            .l-desktop #header .site-logo {
                text-align: center;
            }
            Buy me a coffeePayPal QR Code
            My Amazon Affiliate Link
            Fast vBulletin VPS Host:
            This site is hosted by IONOS

            Comment


            • NumNum
              commented
              Editing a comment
              That did the trick. Thank you!

            • glennrocksvb
              commented
              Editing a comment
              You're welcome! Glad to help

          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 "|||"