eqhes
Forum Replies Created
-
AuthorPosts
-
While you add this features (or “re-add” them, because they were in GeoTheme), I’ve done the job loading this JavaScript on header:
<script language="javascript" type="text/javascript"> jQuery(window).load(function(){ jQuery(".geodir_map_v3_home_map_2_map_category .main_list > li:first-child > input").trigger( "click" ); }); </script>
This works for me because the category that has got subcategories is the first one on the list and the class name of my map is “geodir_map_v3_home_map_2_map_category”. Other configurations may need some tweaks, but anyone can improve this code as needed ;).
You can also create the style.css file in the child theme and set it like this:
/* Theme Name: your_theme_name Description: Your theme description. Author: Your Name @ Your Company Template: parent_theme */ @import url("../parent_theme/style.css"); /* =Theme customization starts here -------------------------------------------------------------- */
This is how WordPress recommends to work with styles in child themes as you can see here.
I have found a solution to the problem. However, I can’t explain why this works ˇ_ˇ’.
Replacing this:
<?php echo INDICATES_MANDATORY_FIELDS_TEXT; ?>
By this other:
<?php _e(INDICATES_MANDATORY_FIELDS_TEXT); ?>
If, for example, I replace this:
<?php echo INDICATES_MANDATORY_FIELDS_TEXT; ?>
By this other:
<?php echo __('Indicates mandatory fields',GEODIRECTORY_TEXTDOMAIN);?>
Translation takes effect without doing anything else on the WPML side.
Hope this adds some light to the issue.
Ok, @paolo. However, it’s possible that you share with us at least the detail page template you have used? I see you have added the title with the Avada format and this could be useful for me to figure out how to do a few other changes on the theme. Thank you very much for your work ;).
This reply has been marked as private.Hi @Vikas,
Please, check the images attached in my last post here.
I need the result shown on the “mapa-si.png” (this is a screenshot of a GeoTheme installation). I need to show all items from subcategories each one with the subcategory icon. If I enable the main category, then all markers are shown with the main category icon and then we can’t distinguish visually which kind of place a marker is (example of this undesired behaviour: “mapa-si.png”).
I’ll send you access to my GeoTheme installation so you can compare how I achieved this on there.
Ok, sorry! The problem is with the theme. On Avada we can disable Google Maps scripts going to Appearance –> Theme options –> Extra –> [check] Disable Google Map Scripts. Once done, markers are clickable once again :).
Hi @paolo,
I’m working with Avada and I would love to help you test the new child theme ;). Maybe you can open a new forum to get it easier to report bugs.
Thank you in advance.
You can see what I’m talking about in the two images attached to this post.
- mapa-no.png (GeoDirectory) <– Subcategories are shown because I’m displaying them with CSS, they are forever-hiden by default.
- mapa-si.png (GeoTheme) <– Subcategories visibility can be toggled using a small arrow in front of the main category name. The main category is unchecked bu default.
@amolin I’m using WPML (http://wpml.org) for translating strings. Maybe it is a bug with this plugin. The most strange is that some words on the same page are translated without any problems :S.
Publish Listing
Most of the form strings and comments. I’ve translated all of them and very few are shown translated.
Add Images : (You can upload more than one images to create image gallery on detail page)
Review Your Listing
User dashboard
My favorite
Events / Places / Other custom postsBreadcrumbs
Events / Places / Other custom posts
Detail page
Add to favorites
Send to friend
Send enquiry
Place Categories … and …
Enter Your LocationThis reply has been marked as private.I’m using WPML for translations.
- The “Accept Terms and Conditions” field on add listing (GD –> Design –> Listings –> ADD LISTING FORM SETTINGS) is not translatable.
- On “Publish listing” most strings are translatable, but most of them don’t show translated on front-end as @amolin pointed out.
- On “Publish listing”the “Select an Option” for the “Neighbourhood” field is not translatable.
- I’ve enabled “Change Location” on the main menu and I can translate this string using WPML, but it doesn’t get translated in frontend.
Hope you can check this.
-
AuthorPosts