Results 1 to 5 of 5

Thread: Searchbar Function on All Pages

  1. #1
    Thread Starter
    eric_mojstrovich's Avatar
    Join Date
    May 2011
    Location
    Canada
    Posts
    33
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Searchbar Function on All Pages

    Hey there,

    How would I modify the following code to make the Classipress search bar appear on all pages?

    ?php
    if ( is_page_template( 'tpl-ads-home.php' ) || is_search() || is_404() || is_tax( APP_TAX_CAT ) || is_tax( APP_TAX_TAG ) || is_singular( APP_POST_TYPE ) ) :

    $args = array(
    'show_option_all' => __( 'All Categories', APP_TD ),
    'hierarchical' => $cp_options->cat_hierarchy,
    'hide_empty' => $cp_options->cat_hide_empty,
    'depth' => $cp_options->search_depth,
    'show_count' => $cp_options->cat_count,
    'pad_counts' => $cp_options->cat_count,
    'orderby' => 'name',
    'title_li' => '',
    'use_desc_for_title' => 1,
    'name' => 'scat',
    'tab_index' => '2',
    'class' => 'searchbar',
    'selected' => cp_get_search_catid(),
    'taxonomy' => APP_TAX_CAT,
    );
    $args = apply_filters( 'cp_dropdown_search_bar_args', $args );
    ?>


    Thanks for your tie!

  2. #2
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  3. #3
    Thread Starter
    eric_mojstrovich's Avatar
    Join Date
    May 2011
    Location
    Canada
    Posts
    33
    Thanks
    10
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Thread Starter
    eric_mojstrovich's Avatar
    Join Date
    May 2011
    Location
    Canada
    Posts
    33
    Thanks
    10
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [MOD NEEDED] Searchbar above Google Maps
    By dydione in forum ClassiPress General Discussion
    Replies: 1
    Last Post: March 9th, 2012, 08:18 AM
  2. make top searchbar appear on all pages
    By tmtu20 in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: December 11th, 2011, 03:43 PM
  3. Google maps on pages -use of third party plugin or possible with CP-function?
    By zjerma in forum ClassiPress General Discussion
    Replies: 3
    Last Post: August 14th, 2011, 07:01 PM
  4. How to relocate the searchbar
    By tbase in forum JobRoller General Discussion
    Replies: 1
    Last Post: March 14th, 2011, 11:36 AM