Comments 1DiamondMich11 started the conversationFebruary 15, 2018 at 9:59pmHow do I change the search results page to a simple blog or to a page layout1 Like 7,092Oliver repliedFebruary 16, 2018 at 8:34am HI! Sorry, can you add some screenshots to describe what you need to make in detail? Thank you. Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. Regards, Oliver 1DiamondMich11 repliedFebruary 16, 2018 at 5:16pmI want to change the results from a mosaic to a classic list 7,092Oliver repliedFebruary 19, 2018 at 8:26amHi, 1. Copy file /thegem-wptheme/wp-content/themes/thegem/search.phpto the child theme.2. Add this code to this file excerpt the old one: <?php $thegem_panel_classes = array('panel', 'row'); if(is_active_sidebar('page-sidebar')) { $thegem_panel_classes[] = 'panel-sidebar-position-right'; $thegem_panel_classes[] = 'with-sidebar'; $thegem_center_classes = 'col-lg-9 col-md-9 col-sm-12'; } else { $thegem_center_classes = 'col-xs-12'; } get_header(); ?> <div id="main-content" class="main-content"> <?php $thegem_no_margins_block = ''; if(is_tax() || is_category() || is_tag() || is_archive()) { $thegem_term_id = get_queried_object() ? get_queried_object()--->term_id : 0; $thegem_page_data = array( 'title' => thegem_theme_options_get_page_settings('blog'), 'effects' => thegem_theme_options_get_page_settings('blog'), 'slideshow' => thegem_theme_options_get_page_settings('blog'), 'sidebar' => thegem_theme_options_get_page_settings('blog') ); if(get_term_meta($thegem_term_id , 'thegem_taxonomy_custom_page_options', true)) { $thegem_page_data = array( 'title' => thegem_get_sanitize_page_title_data($thegem_term_id, array(), 'term'), 'effects' => thegem_get_sanitize_page_effects_data($thegem_term_id, array(), 'term'), 'slideshow' => thegem_get_sanitize_page_slideshow_data($thegem_term_id, array(), 'term'), 'sidebar' => thegem_get_sanitize_page_sidebar_data($thegem_term_id, array(), 'term') ); } if($thegem_page_data['effects']['effects_no_bottom_margin']) { $thegem_no_margins_block .= ' no-bottom-margin'; } if($thegem_page_data['effects']['effects_no_top_margin']) { $thegem_no_margins_block .= ' no-top-margin'; } $thegem_panel_classes = array('panel', 'row'); $thegem_center_classes = 'panel-center'; $thegem_sidebar_classes = ''; if(is_active_sidebar('page-sidebar') && $thegem_page_data['sidebar']['sidebar_position']) { $thegem_panel_classes[] = 'panel-sidebar-position-'.$thegem_page_data['sidebar']['sidebar_position']; $thegem_panel_classes[] = 'with-sidebar'; $thegem_center_classes .= ' col-lg-9 col-md-9 col-sm-12'; if($thegem_page_data['sidebar']['sidebar_position'] == 'left') { $thegem_center_classes .= ' col-md-push-3 col-sm-push-0'; $thegem_sidebar_classes .= ' col-md-pull-9 col-sm-pull-0'; } } else { $thegem_center_classes .= ' col-xs-12'; } if($thegem_page_data['sidebar']['sidebar_sticky']) { $thegem_panel_classes[] = 'panel-sidebar-sticky'; } if($thegem_page_data['slideshow']['slideshow_type']) { thegem_slideshow_block(array('slideshow_type' => $thegem_page_data['slideshow']['slideshow_type'], 'slideshow' => $thegem_page_data['slideshow']['slideshow_slideshow'], 'lslider' => $thegem_page_data['slideshow']['slideshow_layerslider'], 'slider' => $thegem_page_data['slideshow']['slideshow_revslider'])); } } echo thegem_page_title(); ?> <div class="block-content<?php echo esc_attr($thegem_no_margins_block); ?>"> <div class="container"> <div class="<?php echo esc_attr(implode(' ', $thegem_panel_classes)); ?>"> <div class="<?php echo esc_attr($thegem_center_classes); ?>"> <!--?php if ( have_posts() ) { if(!is_singular()) { wp_enqueue_style('thegem-blog'); wp_enqueue_style('thegem-additional-blog'); wp_enqueue_style('thegem-blog-timeline-new'); wp_enqueue_script('thegem-scroll-monitor'); wp_enqueue_script('thegem-items-animations'); wp_enqueue_script('thegem-blog'); wp_enqueue_script('thegem-gallery'); echo '<div class="blog blog-style-default"-->'; } while ( have_posts() ) : the_post(); get_template_part( 'content', 'blog-item' ); endwhile; if(!is_singular()) { thegem_pagination(); echo '</div>'; } } else { get_template_part( 'content', 'none' ); } ?> </div> <!--?php if(is_active_sidebar('page-sidebar') && !empty($thegem_page_data['sidebar']['sidebar_position'])) { echo '<div class="sidebar col-lg-3 col-md-3 col-sm-12'.esc_attr($thegem_sidebar_classes).'" role="complementary"-->'; get_sidebar('page'); echo '</div><!-- .sidebar -->'; } ?> </div> </div><!-- .container --> <!-- .block-content --> <!-- #main-content --> <!--?php get_footer();--> Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. Regards, Oliver1 Like Sign in to reply ...
How do I change the search results page to a simple blog or to a page layout
HI!
Sorry, can you add some screenshots to describe what you need to make in detail? Thank you.
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver
I want to change the results from a mosaic to a classic list
Hi,
1. Copy file
/thegem-wptheme/wp-content/themes/thegem/search.php
to the child theme.
2. Add this code to this file excerpt the old one:
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver