Tagged: centered
-
AuthorPosts
-
May 23, 2018 at 4:06 pm #960900
Welcome,
Enfold updated to version 4.4. Great work! Thank you.
Unfortunately, I have a problem with the Google Maps activation button.
I want to make a couple of changes. I added such code to Custom CSS in Enfold Child Theme Settings:
.av_gmaps_sc_main_wrap .av_gmaps_show_delayed.av-no-fallback-img .av_text_confirm_link, .av_gmaps_sc_main_wrap .av_gmaps_show_page_only.av-no-fallback-img .av_text_confirm_link { width: 340px !important; } .av_gmaps_sc_main_wrap .av_text_confirm_link { margin-left: 0px !important; font-size: 0.9em !important; left: 39% !important; }
Unfortunately, these changes can only be seen in Google Chrome. I can’t put it in the middle. When I change the size of the browser, the button moves.
Who has the same problem? What to do about it?
- This topic was modified 6 years, 6 months ago by Mariusz86.
May 25, 2018 at 5:43 pm #962289Hey Mariusz86,
Thank you for using Enfold.
Where can we see the map? Try to replace the second css declaration with this one.
.av_gmaps_sc_main_wrap .av_text_confirm_link { margin-left: 0px !important; font-size: 0.9em !important; position: absolute; left: 50%; transform: translate(-50%, 0; }
Best regards,
IsmaelMay 25, 2018 at 5:58 pm #962304I will try it.
I did it a little differently now and have a question.
Where can I translate this banner? (PrintScreen1). It appears in the map place when the customer blocks it. I want to put this banner exactly in the middle because in the mobile version it is more to the right.
Thanks for your Help.
May 28, 2018 at 1:36 pm #963177Hi,
Do you want to change the default text of the [av_privacy_google_maps] shortcode? Replace the code with this code instead.
[av_privacy_google_maps]Change default shortcode text[/av_privacy_google_maps]
Please note: if you do not like the default text that is displayed by those shortcodes you can change it by using [shortcode]Your text here[/shortcode]
Best regards,
IsmaelMay 28, 2018 at 2:22 pm #963224Shortcode I have changed to Enfold Child –> Privacy and Cookies –> Cookie Consent Message. Please check on my website.
[av_privacy_google_maps]Włącz/Wyłącz wyświetlanie Google Maps[/av_privacy_google_maps]This information appears where there are google maps when you disable them.
Google Maps Enalbed PrintScreen
Google Maps Disabled PrintScreenUnfortunately, I can’t find anywhere where I can translate it or change the shortcode to this information. I have Loco Translate but that is not there.
Best Regards.
May 30, 2018 at 4:10 pm #964348Hi,
I see. Thanks for the info. Please use this script to change the default text.
add_action('wp_footer', 'ava_custom_script'); function ava_custom_script(){ ?> <script type="text/javascript"> (function($) { $('.av_gmaps_browser_disabled').text('Replace this text'); })(jQuery); </script> <?php }
There is no option for that yet.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.