Home › Forums › Support › search form class This topic has 4 replies, 2 voices, and was last updated 6 years, 9 months ago by Leo. Viewing 5 posts - 1 through 5 (of 5 total) Author Posts July 9, 2017 at 10:09 am #346481 Chad Biggs Hello, does anyone know how to add a custom class to the search form? -Chad July 9, 2017 at 4:08 pm #346642 Chad Biggs Got it. I pasted this in the GP hooks and it is perfect. Now if I could only figure out how to put it only on the home page…. <div> class="search-form-container"> <?php get_search_form(); </div> July 9, 2017 at 4:32 pm #346646 LeoStaff Customer Support Wrap it like this: <?php if ( is_front_page() ) : ?> Contents for home page here <?php endif; ?> July 9, 2017 at 4:42 pm #346655 Chad Biggs BAM! Thank you Leo! July 9, 2017 at 4:50 pm #346661 LeoStaff Customer Support No problem! Author Posts Viewing 5 posts - 1 through 5 (of 5 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In