Tagged: , ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #7333

    It´s Any possibility to edit the default sidebar? I´ll love to add some widgets. For example for search results.

    //default dummy sidebar

    if ($default_sidebar)

    {

    avia_dummy_widget(2);

    avia_dummy_widget(3);

    avia_dummy_widget(4);

    }

    echo “</div>”;

    Best,

    Nacho.

    #57525

    Just need to know how i call the differents widgets to appears in this default sidebar. :-P

    #57526

    Hi,

    in you widgets menu you can drag widgets to your preferred spot and it’ll automatically replace the default widgets.

    These standard widgets can be found under your theme folder under Shoutbox > Includes > admin > register-widget-area.php

    The standard widgets are listed there.

    #57527

    I know that i can drag the widgets to the place i need. The problem it´s that there´s no way to create a sidebar for search results page. If i use the page sidebar (for example) this sidebar don´t replace my other custom ones and get two sidebar listed. Pages sidebar + custom sidebar.

    Any ideas?

    Best,

    Nacho.

    #57528

    Hey,

    you can use plugins like: http://wordpress.org/extend/plugins/widget-logic/ or http://wordpress.org/extend/plugins/display-widgets/ to create page specific sidebars.

    #57529

    But what’s the id for a search page? Or an archive page?

    #57530

    The is_archive() function: http://codex.wordpress.org/Function_Reference/is_archive supports category ids and/or slugs. Search pages can be found with is_search()

    #57531

    Great!!

    #57532

    That answers my question too… I think. Cheers Dude!

    #57533

    Glad that I could help you :)

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Edit default sidebar’ is closed to new replies.