Error in location/me

This topic contains 6 replies, has 2 voices, and was last updated by  Paolo 8 years, 8 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #158710

    giuseppe cuttone
    Buyer
    Post count: 242

    Hi,
    If I am in the following page:
    http://infocity.website/location/spain/catalunya/
    and, in order to filter listings, I click for example in the “Restaurant” categorie, I will be redirected to:
    http://infocity.website/places/spain/catalunya/restaurants/
    so, this function runs well.

    But If I am in the following page:
    http://infocity.website/location/me/
    this function don`t runs well.
    If for example, in order to filter listings, I click in the “Restaurant” categorie, I will be redirected to the generic page:
    http://infocity.website/places/restaurants/
    where will be showed all the restaurant in the world.

    I think this is no good, because user when they are in location/me and it do click in “restaurant”, in order to filter, GeoDirectory must show restaurants near the location of the user. But at this time, GeoDirecotry show all the Restaurants in the world.

    I think this is no good. Do you think like me?
    If it is so, will you work in resolve it?
    Thanks for your support.

    #158744

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the location me works only for the location page.

    Thanks

    #159530

    giuseppe cuttone
    Buyer
    Post count: 242

    ok, I have understand.
    “CPT CATEGORIE widget” work good only if into “GD LISTING widget area” “(for page like: /places /events and others /CPT pages)
    If I introduce “CPT CATEGORIE widget” into “GD HO TOP SECTION widget area”, it will work fine only in page like:
    location/state/region/city
    but no in:
    location/me
    Ok.
    So, my question are:
    1. If I let “CPT CATEGORIE widget” into “GD HO TOP SECTION widget area”, is there a way in order to remove categories from:?
    location/me
    and let categories from:?
    location/state/region/city

    2. At this moment categories into the “GMAP” are in the right down zone and they are not with a lot of visibility. My objective is show categories in horizontal position and to make a “CATEGORIE ZONE” with more visibility for the users.
    My objective is move the categories in the up zone of the “GMAP”, in horizontal position. Is it possible changing CSS? Or is there another solution in order to do that?
    I add picture.
    Thanks very much for your support.

    #159702

    Paolo
    Site Admin
    Post count: 31206

    hi,

    I ask to the developer for a solution to hide the widget in the location me page.

    For the second part I’m not sure I understand what you need.

    Let us know,

    Thanks

    #160327

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    add the following code in the theme functions.php file

    
    
    // CODE START
    function geodir_location_me_body_class( $classes = array() ) {
       if ( geodir_is_page( 'location' ) ) {
           if ( get_query_var( 'gd_country' ) == 'me' || get_query_var( 'gd_region' ) == 'me' || get_query_var( 'gd_city' ) == 'me' ) {
               $classes[] = 'location-me-page';
           }
       }
       return $classes;
    }
    add_filter( 'body_class', 'geodir_location_me_body_class', 10, 1 );
    // CODE END
    

    This will add a new body class to location/me page.

    Now if you add this in gd > design > style > custom css, it will hide the cpt category widget only from the location me page.

    
    
    .location-me-page .geodir_cpt_categories_widget { display: none; }
    

    To modify the catgeoris in the map as requested, it requires quite a lot of custom css. That will be beyond support.

    Thanks

    #160867

    giuseppe cuttone
    Buyer
    Post count: 242

    Hi,
    About question 1:
    Ok. It is a good solution.
    But I have one litle questio:
    for the next Geodirectory update, are you working in add a BOX into the “CPT CATEGORIE widget”, so administrator can check it in order to “Show/No Show this widget in location/me page?

    About question 2:
    Ok I understand. It is possible modifier it with CSS. Good. Maybe I will work in it.

    I hope your answer about question 1.
    Thanks very very much for your professional support.

    #160890

    Paolo
    Site Admin
    Post count: 31206

    hi,

    we are not, that’s something only you requested and you got what is needed to have it like that.

    Thanks

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount