Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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

    #126333

    In 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;

    }

    #126334

    if(!is_search(){

    is showing me syntax error

    #126335

    okay fixed the syntax error but CATEGORIES & ARCHIVE still showing on sidebar which are unwanted.

    #126336

    UPDATE:

    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.

    #126337

    Glad Dude could help :)

    Let us know if you have any other questions or issues.

    Regards,

    Devin

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Search Page Result’ is closed to new replies.