Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #386693

    I would like to mimic the minimalist front page and prominent search box on websites like Calgary.ca and Chattanooga.gov.

    Using Enfold’s Avia Layout Builder, I added a Fullscreen Sider element with one hi-res photo. I removed the sidebars and breadcrumbs. At the top is a transparent and glassy header. It’s pretty much the way I want, except for the position of the search box.

    I previously followed these instructions to move the search box to the header. That is where I would like to keep it on every page — except the front page.

    How can I place a search box over the full screen image?

    #387135

    Hi darryllevine!

    Try creating a caption for the slide image and add this inside.

    <form class="" method="get" id="searchform" action="http://artwork.mysitehosted.com/~cote/">
    	<div style="opacity: 0; display: none;">
    		<input type="submit" class="button avia-font-entypo-fontello" id="searchsubmit" value="">
    		<input type="text" placeholder="Search" value="" name="s" id="s">
    			</div>
    </form>

    And then add this to your custom CSS.

    .avia-caption-content, .avia-caption-content * { display: block !important; opacity: 1 !important; }
    

    Cheers!
    Elliott

    #387322

    Beautiful. It worked! Thank you. I figured out how to adjust the search box size and font size inside the box adding this to the Quick CSS box in Enfold — General Styling. I include here for others and future me:

    #top #searchform>div {
    max-width: 800px; 
    }
    
    #top #s {
    font-size: 32px;
    padding: 80px 60px 20px 20px; }

    Is there a way to have two separate search boxes the search boxes: one for the front page and a different one for my header? Currently my nice big search box in the middle of the front page is the same size in my header on every inside page. Yikes!

    • This reply was modified 9 years, 10 months ago by darryllevine.
    #387978

    Hi!

    You can target them both with this.

    input[type="text"] {  }
    input[type="submit"] {  }

    And only the ones in your header with this.

    #header input[type="text"] {  }
    #header input[type="submit"] {  }

    Cheers!
    Elliott

    #388031

    Hi Elliott. Forgive me. I need a little more hand holding.

    I recognize that code as being CSS-ish. So I added it to Quick CSS but nothing changed with my search boxes. I assume there is an obvious other thing that I am supposed to do somewhere else…

    #388451

    Hey!

    Elliott posted you selectors that you can use in Quick CSS field. You should adjust them separately as following

    #header input[type="text"] { font-size: 18px !important; }
    #header input[type="submit"] { font-size: 16px!important; }
    
    input[type="text"] { font-size: 22px!important;  }
    input[type="submit"] { font-size: 20px !important;  }

    Best regards,
    Yigit

    #388599

    SOLVED: It works. Thanks Yigit.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to make very large search box in middle of front page’ is closed to new replies.