• Resolved saudatgetquo

    (@saudatgetquo)


    Hi everyone

    I’m using the template “Zerif Lite” and I would like to make some changes to the front page. I would like to replace the standard red and green button with the standard search box, provided by wordpress:

    “<aside id=”search” class=”widget widget_search”>
    <?php get_search_form(); ?>
    </aside>”

    But I am not sure where to insert this code in “big_title.php”.
    (I know how to disable the red and green button. So far so good.)
    Any wordpress/php guru out there? Hum?rikonet smile

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    You can find the following code:

    if ( !empty($zerif_bigtitle_redbutton_label) && !empty($zerif_bigtitle_redbutton_url) ):
    
    					echo '<a href="'.$zerif_bigtitle_redbutton_url.'" class="btn btn-primary custom-button red-btn">'.__($zerif_bigtitle_redbutton_label,'zerif-lite').'</a>';
    
    				endif;
    
    				if ( !empty($zerif_bigtitle_greenbutton_label) && !empty($zerif_bigtitle_greenbutton_url) ):
    
    					echo '<a href="'.$zerif_bigtitle_greenbutton_url.'" class="btn btn-primary custom-button green-btn">'.__($zerif_bigtitle_greenbutton_label,'zerif-lite').'</a>';
    
    				endif;

    and replace it with:

    get_search_form();

    Regards,
    Hardeep

    Thread Starter saudatgetquo

    (@saudatgetquo)

    Thx, Hardeep!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search box on the front page’ is closed to new replies.