Ask the community

This is a community support forum where you can ask
questions and interact with other PremiumPress Customers.

How to remove Zip and location from search


  • Mitchell
    Senior Member 136 points
    April 10, 2019 at 12:22 am

    In the search page V9 theme there is a Zip and Location. I have a Website ham Radio site, not a business location site. so Zip and Location is not needed for searching.
    How can I remove it from the Kevork Child theme search page? also on the main page remove (at Location)?
    Please don’t say create my own page from scratch it’s looking how I want it

    Mitch

    Attachments:
    You must be logged in to view attached files.
  • Damien
    Damien
    Newbie 9 points
    April 13, 2019 at 7:30 pm

    Has anyone figured this out? I want to do the same thing.


  • Mitchell
    Senior Member 136 points
    April 28, 2019 at 10:36 am

    It’s been asked a few time here and I guess it’s a, you have to get a developer to do it we do not provide customization support situation that’s why support is not answering the question.

    Maybe we can get a group together to hire someone?

  • JamesD
    JamesD
    Super Guru 1,345 points
    April 29, 2019 at 4:04 am

    The file to edit would be the /DT9/search-bar.php file.

    I’ve removed the sections and made a couple slight changes to re-design (look better), so you may need to re-design to something closer to what you need.

    Place the attached copy in your child theme directory. If using the default theme then place the file int the /DT9/_directory/template/ directory.

    Attachments:
    You must be logged in to view attached files.
  • JamesD
    JamesD
    Super Guru 1,345 points
    April 29, 2019 at 4:31 am

    Sorry, just noticed a div was missing.

    This attachment adds the div and has been restyled to fit the search bar the full width.

    Attachments:
    You must be logged in to view attached files.

  • Mitchell
    Senior Member 136 points
    April 30, 2019 at 12:03 pm

    @JamesD
    Got this error
    jQuery(document).ready(function() { //jQuery('.main-search-filter ul li a').addClass('btn btn-sm mb-1 btn-block btn-primary'); jQuery('.main-search-filter ul li a').addClass('btn btn-sm mb-1 btn-block btn-outline-primary'); jQuery('.main-search-filter ul li a.top').removeClass('btn-outline-primary').addClass('btn-primary'); jQuery('.main-search-filter ul').each(function(){ var countinner = jQuery(this).children("li").length; counter = 1; jQuery(this).find('li').each(function(){ }); }); });

  • JamesD
    JamesD
    Super Guru 1,345 points
    April 30, 2019 at 9:03 pm

    @Mitchell
    That’s’ javascript code from search-filter.php and not a direct error.
    Do you have a link where you see a problem?

    Also, didi you use the second file I attached?

    The first one was missing a div, which could possibly be what you’re seeing.


  • Mitchell
    Senior Member 136 points
    April 30, 2019 at 10:13 pm

    yes, the last one you posted. There’s a new version of the DT theme released today and from what I saw in winmerge between the two versions I should wait until you look at it

  • JamesD
    JamesD
    Super Guru 1,345 points
    April 30, 2019 at 11:32 pm

    @Mitchell

    Thanks for the update, didn’t realize it. I just updated and see the message. I also see new bugs from the changes. Errrg.

    I’ll dig around and find out what’s going on and/or what change was made that broke it and get back to you.

  • JamesD
    JamesD
    Super Guru 1,345 points
    April 30, 2019 at 11:52 pm

    @Mitchell

    Ok, this one works for me. Some theme functions use the structure to find a target. The last fix must have broke from the altered structure when I redesigned it.

    This one I’ve redesigned (after removing Zip/Location) in a slightly different manner.

    Attachments:
    You must be logged in to view attached files.

  • Mitchell
    Senior Member 136 points
    May 1, 2019 at 2:08 am

    Excellent works great Thank You

  • JamesD
    JamesD
    Super Guru 1,345 points
    May 1, 2019 at 2:23 am

    You’re welcome, glad it helped.

  • Vivian
    Vivian
    Senior Member 174 points
    May 2, 2019 at 7:52 pm

    Hi guys, for non techies can you please explain what the fix is and how to install it.. thanks kindly

  • JamesD
    JamesD
    Super Guru 1,345 points
    May 2, 2019 at 8:57 pm

    Hello Vivian,
    It’s a search bar without the Zip</em and Location fields.
    The file is placed in the child theme directory.
    Note: I’ve only tested with DT9, but it should work with other v9 themes.

  • JamesD
    JamesD
    Super Guru 1,345 points
    May 2, 2019 at 10:52 pm

    For those would like to make the Category field to fill in the empty space then search the file for col-xs-6 col-sm-6 reference and replace with col-xs-12 col-sm-12.

Viewing 15 posts - 1 through 15 (of 17 total)