Tagged: search
-
AuthorPosts
-
June 24, 2013 at 10:03 am #25269
On my Search Result page
I would like to modify the side bar to only display the “pages” widget.
And for footer only display the socket and remove the widgets.
Coding is not a problem for me if you can point me in the right direction.
Thanks
June 25, 2013 at 5:24 am #126333In footer.php replace
if( $footer_widget_setting != 'nofooterwidgets' )
with
if( $footer_widget_setting != 'nofooterwidgets' && !is_search() )
and in sidebar.php replace
if(empty($avia_config['currently_viewing'])) $avia_config['currently_viewing'] = 'page';
// general shop sidebars
if ($avia_config['currently_viewing'] == 'shop' && dynamic_sidebar('Shop Overview Page') ) : $default_sidebar = false; endif;
// single shop sidebars
if ($avia_config['currently_viewing'] == 'shop_single') $default_sidebar = false;
if ($avia_config['currently_viewing'] == 'shop_single' && dynamic_sidebar('Single Product Pages') ) : $default_sidebar = false; endif;
// general blog sidebars
if ($avia_config['currently_viewing'] == 'blog' && dynamic_sidebar('Sidebar Blog') ) : $default_sidebar = false; endif;
// general pages sidebars
if ($avia_config['currently_viewing'] == 'page' && dynamic_sidebar('Sidebar Pages') ) : $default_sidebar = false; endif;
// forum pages sidebars
if ($avia_config['currently_viewing'] == 'forum' && dynamic_sidebar('Forum') ) : $default_sidebar = false; endif;with
if(empty($avia_config['currently_viewing'])) $avia_config['currently_viewing'] = 'page';
if(!is_search(){
// general shop sidebars
if ($avia_config['currently_viewing'] == 'shop' && dynamic_sidebar('Shop Overview Page') ) : $default_sidebar = false; endif;
// single shop sidebars
if ($avia_config['currently_viewing'] == 'shop_single') $default_sidebar = false;
if ($avia_config['currently_viewing'] == 'shop_single' && dynamic_sidebar('Single Product Pages') ) : $default_sidebar = false; endif;
// general blog sidebars
if ($avia_config['currently_viewing'] == 'blog' && dynamic_sidebar('Sidebar Blog') ) : $default_sidebar = false; endif;
// general pages sidebars
if ($avia_config['currently_viewing'] == 'page' && dynamic_sidebar('Sidebar Pages') ) : $default_sidebar = false; endif;
// forum pages sidebars
if ($avia_config['currently_viewing'] == 'forum' && dynamic_sidebar('Forum') ) : $default_sidebar = false; endif;
}June 25, 2013 at 6:52 am #126334if(!is_search(){
is showing me syntax error
June 25, 2013 at 7:05 am #126335okay fixed the syntax error but CATEGORIES & ARCHIVE still showing on sidebar which are unwanted.
June 25, 2013 at 9:52 am #126336UPDATE:
solved my problem by commenting two lines in sidebar.php
//default dummy sidebar
if ($default_sidebar)
{
avia_dummy_widget(2);
// avia_dummy_widget(3);
//avia_dummy_widget(4);
}
hope it wont cause any problem elsewhere :)
btw thanks dude for pointing me in the right direction.
June 26, 2013 at 3:49 am #126337Glad Dude could help :)
Let us know if you have any other questions or issues.
Regards,
Devin
-
AuthorPosts
- The topic ‘Search Page Result’ is closed to new replies.