Results 1 to 3 of 3

Thread: How-to: Vantage 1.1.2 - Set default Radius in search

  1. #1
    Thread Starter
    Expired Customer nichwatt's Avatar
    Join Date
    Aug 2012
    Location
    United States
    Posts
    8
    Thanks
    0
    Thanked 23 Times in 6 Posts

    Lightbulb How-to: Vantage 1.1.2 - Set default Radius in search

    Hi all,

    I previously posted a how-to for setting the default search radius here, however, it only works for Vantage 1.1.

    I finally got around to updating to the latest Vantage 1.1.2 which breaks my solution above. The templating for header.php has been removed and the logic is generating the search form dynamically now. I followed all the files and functions, and there is a much easier solution now for setting a default search radius:

    In /wp-content/themes/vantage/header.php
    Find the following line (around Line 56):
    Code:
    <?php the_search_refinements(); ?>
    Add the following line above it, replace 10 with the default radius you want:
    Code:
    <?php if(!isset($_REQUEST['radius'])) $_REQUEST['radius'] = '10'; ?>
    So that it looks like this:
    Code:
    <?php if(!isset($_REQUEST['radius'])) $_REQUEST['radius'] = '10'; ?>
    <?php the_search_refinements(); ?>
    Hope this helps!

  2. The Following 4 Users Say Thank You to nichwatt For This Useful Post:

    davidboyd1 (November 18th, 2012), demonoid (October 29th, 2012), johno69 (October 23rd, 2012), kcjane (October 23rd, 2012)

  3. #2
    davidboyd1's Avatar
    Join Date
    Sep 2010
    Location
    United States
    Posts
    29
    Thanks
    4
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. The Following User Says Thank You to davidboyd1 For This Useful Post:

    simedia (May 21st, 2013)

  5. #3
    simedia's Avatar
    Join Date
    Jan 2013
    Location
    United States
    Posts
    71
    Thanks
    33
    Thanked 3 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Search radius default is 0
    By antmen in forum Report Vantage Bugs (Legacy)
    Replies: 14
    Last Post: October 19th, 2012, 08:49 AM
  2. Default Radius in Job Roller 1.5.2
    By gsibert in forum JobRoller General Discussion
    Replies: 1
    Last Post: December 22nd, 2011, 06:44 AM
  3. where is the refined search radius search ?
    By garyb in forum ClassiPress General Discussion
    Replies: 5
    Last Post: November 23rd, 2011, 08:17 AM
  4. Radius Search
    By toms in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: September 22nd, 2011, 07:57 AM
  5. [SOLVED] Default setting on "radius" drop down box
    By drucey in forum JobRoller General Discussion
    Replies: 9
    Last Post: March 2nd, 2011, 03:50 PM