Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1401140
    ankitdesigns
    Participant

    I don’t see anything in the theme options or pages, do I need to actually edit the php file do modify this?

    #1401537
    Lely
    Moderator

    Hello There,

    It depends on kind of changes you want to implement on search results page. If it’s design, we can add CSS on Appearance > Customize > Custom > Edit Global CSS.

    #1401941
    ankitdesigns
    Participant

    Yes I need to change the design, CSS change I can do. I want to edit the actual page.

    #1402109
    Joao
    Moderator

    Hi There,

    Would you mind providing a mock-up of what you have in mind so we can provide you the right directions?

    Thanks

    #1406957
    ankitdesigns
    Participant

    An example of what I want to do is removing the meta data related to each search result. I don’t want a css solution, I want to actually remove it from the template. I’d also like to apply No Container, Header, Footer to it too.

    #1406965
    Joao
    Moderator

    Hi,

    Unfortunately this is a bit more complex and would fall out of the scope of our support.

    Please refer to:

    https://community.theme.co/forums/topic/how-do-i-modify-the-page-that-displays-the-search-results/

    Thanks

    Joao

    #1407050
    ankitdesigns
    Participant

    Terrible.

    #1407200
    Nabeel A
    Moderator

    Hi again,

    We’re sorry you’re having trouble in modifying the search page. Customizing the search page is quite complex due to the fact it involves modifying different files. Let’s do this step by step (assuming you’re using an Integrity stack):

    1. To apply No container, Header, Footer template, create a new file wp-index.php and paste the following code inside:

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/WP-INDEX.PHP
    // -----------------------------------------------------------------------------
    // Index page output for Integrity.
    // =============================================================================
    
    ?>
    
    <?php get_header(); ?>
    
    	<div class="x-container max width offset">
    		<div class="<?php x_main_content_class(); ?>" role="main">
    
    		<?php x_get_view( 'global', '_index' ); ?>
    
    		</div>
    		<?php if( !is_search() ) { ?>
    			<?php get_sidebar(); ?>
    		<?php } ?>
    	</div>
    
    <?php get_footer(); ?>

    Via FTP upload the file in your Child Theme /x-child/framework/views/integrity/

    Then add the following CSS code in your Customizer via Appearance > Customize > Custom > Edit Global CSS::

    .search-results .x-main {
        width: 100% !important;
    }

    2. You can turn off the Post Meta from Customizer to remove the Post Meta from the search page.

    Follow the above steps and provide us with URL of you site so we can take a closer look depending upon the current setup you’re using.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1401140 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>