MoversPackersPro – Editing the Search Page

Home Forums All Other Themes MoversPackersPro – Editing the Search Page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #23892
    Colleen Waech
    Member
    • Topics: 26
    • Replies: 28
    • Total: 54
    Member since: October 19, 2015

    Hi SKT,

    I am wondering how to edit my search page (or what code I need). I would like to make it a full-width template that only shows the search results rather than a sidebar that shows the testimonials and contact form. If you could answer this for me, that would be greatly appreciated.

    Thanks!

    #23992
    Forum Moderator
    Participant
    • Topics: 0
    • Replies: 24467
    • Total: 24467
    Member since: August 16, 2013

    Hi Colleen,

    Kindly go to search.php and replace the code:

    <?php
    /**
     * The template for displaying Search Results pages.
     *
     * @package SKT Movers Packers
     */
    
    get_header(); ?>
    
    <div class="content-area">
        <div class="middle-align content_sidebar">
             
    			<?php if ( have_posts() ) : ?>
                    <header>
                        <h1 class="entry-title"><?php printf( __( 'Search Results for: %s', 'skt-movers-packers' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
                    </header>
                    <?php while ( have_posts() ) : the_post(); ?>
                        <?php get_template_part( 'content', 'search' ); ?>
                    <?php endwhile; ?>
                    <?php skt_movers_packers_pagination(); ?>
                <?php else : ?>
                    <?php get_template_part( 'no-results', 'search' ); ?>
                <?php endif; ?>
            
            <div class="clear"></div>
        </div>
    </div>
    <?php get_footer(); ?>

    Regards,
    Dave

    #24130
    Colleen Waech
    Member
    • Topics: 26
    • Replies: 28
    • Total: 54
    Member since: October 19, 2015

    Thank you! That worked!!

    #24225
    Forum Moderator
    Participant
    • Topics: 0
    • Replies: 24467
    • Total: 24467
    Member since: August 16, 2013

    Great.

    Regards,
    Dave

    #66822
    LeAndra
    Member
    • Topics: 0
    • Replies: 1
    • Total: 1
    Member since: March 25, 2017

    Hello. I was searching how to fix the search page results and came across this post.
    I copied and pasted the code and the problem fixed (wanted a full-width search results page as well), however, I am using SKT Naturo Pro.
    Is there any way I can get the code to input for my specific theme?

    Please and thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.