Disable Get Direction Function

This topic contains 7 replies, has 3 voices, and was last updated by  Paolo 9 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #6088

    PSI
    Free User
    Post count: 68

    Hi,

    Can you please tell me how to disable Get Directions on Detail Page?
    Maybe through adaption of functions.php?

    Thanks
    PSI

    #6095

    PSI
    Free User
    Post count: 68

    Or is it possible to disable Miles in Dropdown so that just Kilometers will be used?

    #6154

    Paolo
    Site Admin
    Post count: 31206

    There is no option to disable the Get Directions option or to use only KM, but you can hide it with css by adding this to GeoDirectory >> Design >> Scripts >> Custom css :

    
    
    
    #detail_page_map_canvas_fromAddress, #directions {
        display: none;
    }
    
    

    Thanks

    #6595

    pix3x
    Expired Member
    Post count: 155

    Hi, I have added this snippet to the GeoDirectory >> Design >> Scripts >> Custom css but it didn’t help, the Get Directions input is still there. I also noticed that changing some CSS in the Design >> Scripts >> Custom css field does not always result in anything. For example, I changed the CSS there for the .geodir-loc-bar-in and .geodir-loc-bar but it is still unchanged, although it worked in the 1.1.3 version.

    #6642

    Paolo
    Site Admin
    Post count: 31206

    Works fine in our test websites and demo:

    http://wpgeo.directory/attractions/united-states/illinois/chicago/landmark/crown-fountain/#post_map

    If you are 100% that you added it correctly, you should ask to your hosting provider why the custom css, that should be added to your header, doesn’t work. Maybe cache?

    Thx

    #6674

    pix3x
    Expired Member
    Post count: 155

    Hi, I flushed the cache and the all the code from Design >> Scripts >> Custom CSS is added to the page header. So I did a small test by adding this
    .geodir-breadcrumb ul{display:none;}
    .geodir-breadcrumb {padding: 0;}
    to Design >> Scripts >> Custom CSS and the breadcrumbs are successfully gone. The problem to my opinion is with the INPUT tag. I assume there is a conflict between Avada’s INPUT CSS and Custom GD INPUT CSS because I got the same problem with the .geodir-search class in INPUT tag. Any suggestions please? Maybe Stiofan can check the compatibility with Avada?

    #6675

    pix3x
    Expired Member
    Post count: 155

    It really looks like the Avada conflict. I put this
    #detail_page_map_canvas_fromAddress, #directions {
    display: none;
    }
    in the Avada >> Theme Options >> Custom CSS >> Advanced CSS Customizations… and it worked! So do I need to move all my custom CSS from GD to Avada?

    #6830

    Paolo
    Site Admin
    Post count: 31206

    sounds like a good Idea. As soon as we work on Avada compatibility we will look into this to see what is clashing…

    Thx

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket