Site icon Hip-Hop Website Design and Development

Looking out my on my weblog isn’t working

I have been making an attempt for hours if not a day to try to get my customized search.php and searchform.php to work and nonetheless no success. I’ve learn lots on these two templates and nonetheless no success.

Right here is my search.php:

<div class="post-wrap">
    <?php if ( have_posts() ) : whereas (have_posts()) : the_post(); ?>
        <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
        <?php the_excerpt(); ?>
    <?php endwhile; else: ?>
        <p>Woops There isn't a submit but</p>
    <?php endif; ?> 
</div><!-- /.social-media-posts -->

Right here is my searchform.php:

<kind motion="<?php echo home_url( '/' ); ?>" id="searchform" class="search-form" technique="get" position="search">
    <enter sort="textual content" id="s" placeholder="Search" class="search-field">
    <enter sort="submit" worth="" id="searchsubmit" class="search-submit">
    <a category="search-close" href="#"><i class="fa fa-times-circle"></i></a>
</kind>

And eventually, that is what I take advantage of to name my searchform.php in my navigation template:

<?php get_searchform(); ?>

Nonetheless nothing works, i am getting just a little discouraged. I might admire any assist. Thanks!