-
AuthorPosts
-
October 27, 2015 at 9:00 pm #525802
Hello together,
i want to link a marker to a portfolio-entry. Is this possible. A simple Link in description unfortunately didn´t work, see screenshot.
http://authentische-orte.de/wp-content/uploads/2015/10/Nachrichten-Bild319551290.png
Thanks a lot an best regards from germany
October 28, 2015 at 5:38 pm #526314October 28, 2015 at 5:55 pm #526325Please see private content. THX :-)
October 28, 2015 at 6:14 pm #526337Hey!
You can use HTML in your caption as screenshot – [please see private content field]
Cheers!
YigitOctober 28, 2015 at 7:54 pm #526366Hi.
Very very cool!!! Thank you very much, you made my day :-)
Cheers!
LarsOctober 28, 2015 at 8:58 pm #526384One question to the same page. Is it possible to align the Map height to 100%? I´ve try it and it didn´t work. Width to 100% is no prob with « Stretch fullwidth » but the hight i can only define in px. Have you any solution for this?
Merci, Lars
- This reply was modified 9 years ago by Lars.
October 29, 2015 at 2:10 pm #526750Hi!
Place the google map element inside a color section then set the Map Height to 16:9. Edit the color section, set the Section Minimum Height to 100% then add a unique id in the Section ID field. Use “map-section” for example then add this in the Quick CSS field:
#map-section container, #map-section .template-page { padding: 0 !important; display: block; width: 100%; } #map-section .template-page { height: 100%; }
Regards,
IsmaelOctober 29, 2015 at 5:26 pm #527005Hi,
thank you for the fast answer. Unfortunately it didn´t work :-(
http://authentische-orte.de/wp-content/uploads/2015/10/Nachrichten-Bild3586016687.png
THX
- This reply was modified 9 years ago by Lars.
November 2, 2015 at 1:43 am #528206Hi together,
has nobody any idea?
Thank you very much…
November 3, 2015 at 2:12 am #528935Hey!
Please try adding following code to Quick CSS as well
#map-section container, #map-section .template-page { max-width: 100% !important; }
Regards,
YigitNovember 3, 2015 at 5:19 pm #529485Hi Yigit,
Ok, we are approaching the goal. Now the width is 100% but unfortunately not the height. The height is fix by 16:9 not at 100%… Any more ideas?
Thank you VERY much :-)
Best Lars
November 3, 2015 at 5:32 pm #529495Oh no. Sorry… I´ve made a mistake. The maps was NOT in the color section. Now i put maps in there and i have again no positive result anywhere. :-((
November 3, 2015 at 5:58 pm #529525Ok… With your Post https://kriesi.at/support/topic/full-screen-google-maps/ i´ve figured out, how to set the 100% width. But the height ist still fix to that, what i fill in “Map Height” in the maps-form. He ignore every setting i put into the Quick CSS…
November 4, 2015 at 8:12 am #529768Hi!
My bad. There’s a missing dot in the container class. We added this code in the Quick CSS field:
#map-section .container, #map-section .template-page { padding: 0 !important; display: block; width: 100%; max-width: 100%; overflow: hidden; } #map-section .template-page { height: 100%; }
Leave the Map Height field blank then set the color section height to 100%. We also added this in the functions.php file:
// map height add_action('wp_footer', 'ava_map_height'); function ava_map_height(){ ?> <script> (function($){ $(window).resize(function() { var win = $(window), calc_height = function() { var subtract = $('#wpadminbar, #header.av_header_top:not(.html_header_transparency #header), #main>.title_container'), wh100 = win.height(); subtract.each(function(){ wh100 -= this.offsetHeight - 1; }); $('#map-section .avia-google-map-container').css('height', wh100); } win.on( 'resize', calc_height); calc_height(); }).resize(); })(jQuery); </script> <?php }
Check the result here: http://authentische-orte.de/test-map/
Regards,
IsmaelNovember 4, 2015 at 11:12 am #529870Hi Ismael.
Perfect work! Thank you very much!!!!
Last question: Will the functions.php override trough an WP- or Theme-Update? Do I have to note something during the update?
Thank you and best regards from germany, Lars
November 5, 2015 at 5:34 am #530511Hi!
Yes, it’s going to be overwritten when you update the theme. Please use a child theme then create a functions.php file there: http://kriesi.at/documentation/enfold/using-a-child-theme/
Cheers!
IsmaelNovember 6, 2015 at 1:12 pm #531426Ok. Just shot question to don´t mess it up. I have to copy your code into the funktion.php from the child-theme, right? then i´ve to delete your changes in the original function.php, right? Have i change the style.css too? Or will the quick-css from the enfold-dashboard never overwritten?
THX :-)
The content from my new function.php in child folder is this:
<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/// map height
add_action(‘wp_footer’, ‘ava_map_height’);
function ava_map_height(){
?>
<script>
(function($){
$(window).resize(function() {
var win = $(window),
calc_height = function() {
var subtract = $(‘#wpadminbar, #header.av_header_top:not(.html_header_transparency #header), #main>.title_container’),
wh100 = win.height();subtract.each(function(){ wh100 -= this.offsetHeight – 1; });
$(‘#map-section .avia-google-map-container’).css(‘height’, wh100);
}win.on( ‘resize’, calc_height);
calc_height();
}).resize();
})(jQuery);
</script>
<?php
}November 8, 2015 at 6:57 am #531994Hi!
The Quick CSS field doesn’t get overwritten when you update the theme so it’s safe there. Don’t forget to create a backup or a restore point when you update the theme, just in case.
Best regards,
IsmaelSeptember 28, 2017 at 12:24 pm #857985Hello together,
is it possible, that everything has change in this section in the past month? Because i have a 100px or 200px white beam under the map and i don´t know, how to fix this. Have you any ideas?
Thank you very much and best regards from Germany
Lars
September 28, 2017 at 12:25 pm #857987The link dosn´t work. Therefore in this format: authentische-orte .de/karte-authentische-orte/
September 29, 2017 at 5:38 am #858324 -
AuthorPosts
- You must be logged in to reply to this topic.