jotomas
Forum Replies Created
-
AuthorPosts
-
May 20, 2018 at 8:53 pm in reply to: Behaviour of Supreme Directory main menu in mobile / desktop #431376
Hi Alex,
Sorry, but… seriously?
I want to keep the submenu. Therefore, flattening the menu was not an option that I ever considered because there will be several other options like “Roses Tapas Club” in the menu, each with its submenu.
I simply would like to know if this is the normal behaviour: on mobile menu links with submenus do not work like on desktop because clicking them opens the submenu. Then, knowing and assuming that this is the normal behaviour, I will plan my menus accordingly. That is it.
I look forward to your reply.
Thanks once again.
Best regards.
Hi Kiran,
Thank you very much for your response.
Since the matter was becoming more and more confusing, I had no other option than to manually review and reset when necessary the categories of all the CPT’s in all languages to display to correct default icon.
To make the matter even more confusing I kept the name of an specific category the same in the different languages. Therefore I also changed it to a different name for each language before doing it.
Doing it I have found several different situations that I suppose have been originated when duplicating the CPTs to the different languages with WPML.
1) A few CPTs had their categories correctly translated to the correponding categories in the other languages.
2) Most CPTs kept the categories of the original language in their translation. Therefore I had to delete all them and set the categories of its language. Strangely enough in the dropdown selector most times only the categories of the corresponding language appeared but sometimes also appeared categories of the original language.
3) With some CPTs the category set as default changed after duplication.I do not know how each situation has been originated, therefore the next time I duplicate a CPT to the other languages I will try to see exactly what I do and what happens and I will let you know if I detect something strange.
Thanks a lot for your support and willingness.
Best regards.
May 20, 2018 at 4:26 pm in reply to: Behaviour of Supreme Directory main menu in mobile / desktop #431355This reply has been marked as private.May 18, 2018 at 8:17 pm in reply to: Behaviour of Supreme Directory main menu in mobile / desktop #431215Hi Alex,
Yes, this is what I am saying. What I mean is that I had to duplicate the link “Roses Tapas Club” in the submenu because on mobile it does not work on the menu, as it does on desktop.
I look forward to your reply.
Thank you very much once again for your attention.
Best regards.
Hi Kor,
Oooooops! Why I never think about the obvious before opening the support ticket?
You are right, the plugin causing the problem was:
WP Smart Preloader
https://wordpress.org/plugins/wp-smart-preloader/After deactivating it, the problem disappeared. Therefore I deleted the plugin.
Thank you very much once again for your help and support.
Best regards.
Hi Alex,
Ah! Ok. I understand.
Thank you very much.
Best regards.
Hi Alex,
I have found the way to add ‘class-xyz’ to the inline image, but I have not found any plugin that works with it as I would like. The only one that I have found to work with it ( https://wordpress.org/support/plugin/ultimate-lightbox/ ) is not responsive and has an odd behaviour.
Do you know about some other that does the job well?
I look forward to your reply.
Thank you very much once again for your attention.
Best regards.
Hi Alex,
Ok, understood.
Thanks once again.
Best regards.
Hi again,
But I have a question: why shortcodes are not enabled by default in GD customs fields? For security reasons? For efficiency reasons? For other reasons?
I look forward to your reply.
Thank you very much once again for your attention.
Best regards.
Hi Alex,
Great! I managed to make it work! At the end, it was not so complicated! 🙂
Thank you very much for your attention.
Best regards.
Hi Alex,
Thanks! But I can not see how that link is related to my question. Could you explain?
I look forward to your reply.
Thank you very much for your attention.
Best regards.
Hi Kieran,
Reset. Forget all what I said. The problem that I saw is not the problem. WPML duplicated GD posts have the correct default category.
The problem is the category icon shown in the map:
1) Language: Catalan. 71 posts. https://inforoses.com/roses-tapas-club/tots/ – Category icon shown in map is “tots”, which is the correct one.
2) Language: Spanish. 13 posts (same as in French and English). https://inforoses.com/roses-tapas-club/todos/?lang=es – Category icon shown in map is “ruta-tapes-es” instead “todos”.
3) Language: French. 13 posts (same as in Spanish and English). https://inforoses.com/roses-tapas-club/tous/?lang=fr – Category icon shown in map is “ruta-tapes-fr” instead “tous”.
4) Language: English. 13 posts (same as in French and Spanish). https://inforoses.com/roses-tapas-club/all/?lang=en – Category icon shown in map is “ruta-tapes-en” instead “all”, except for one post, that show the correct “all” category icon.
I can not see the logic behind all this.
Could you help?
I look forward to your reply.
Thank you very much for your attention.
Best regards.
Hi Kieran,
I think that the problem has been due to the fact that I ignored that, when I duplicated the CPTs, they were set to Free GD Price that has a limit of only one category.
Since I will soon set up a new CPT, I will try again to perform the same operation, and I will let you know what happens.
Thank you very much for your attention.
Best regards.
Hi,
This is the response from WPML. I have tried it, adding the CSS to “GD – Design – Scripts – Custom Style CSS Code”, and it works!
”
To solve this problem you will need to follow this steps:– Add this CSS code to the style.css file in your theme’s folder:
.geodir_new_listing:lang(es) {
background: url(‘http://reference to your new image in Spanish’) no-repeat scroll left top transparent;
}
ul li .geodir_featured_img:lang(es) {
background: url(‘http://reference to your featured image in Spanish’) no-repeat;
}Note: You will have to do this for each language. The difference will be the language code in the :lang() pseudo class and the address of the image.
For more information regarding this CSS pseudo class you can visit this link: https://css-tricks.com/almanac/selectors/l/lang/
”Best regards.
Hi Alex,
Thanks a lot!
I have opened a support ticket with WPML.
Best regards.
-
AuthorPosts