Error in location/me
This topic contains 6 replies, has 2 voices, and was last updated by Paolo 8 years, 7 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: categories, locationme
-
AuthorPosts
-
April 6, 2016 at 2:08 pm #158710
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.April 6, 2016 at 4:25 pm #158744Hi,
the location me works only for the location page.
Thanks
April 7, 2016 at 4:32 pm #159530ok, 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/city2. 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.April 7, 2016 at 9:05 pm #159702hi,
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
April 8, 2016 at 7:42 pm #160327Hi,
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
April 9, 2016 at 5:06 pm #160867Hi,
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.April 9, 2016 at 6:38 pm #160890hi,
we are not, that’s something only you requested and you got what is needed to have it like that.
Thanks
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket