-
AuthorPosts
-
July 22, 2015 at 7:41 pm #477283
Hi,
can I display the content of a code block in fullscreen? I’d like to have the maps (iframes from gmaps) and the instagram feed (code block) with a width of 100% if possible.
Please have a look at this:
http://www.erfahre.com/hamburg-insider/Cheers
BerndJuly 22, 2015 at 8:28 pm #477314Hi berndrepenning!
Please add Color Section element to your page with a unique ID – http://kriesi.at/documentation/enfold/wp-content/uploads/sites/2/2013/12/color-section-ID.png and then add your code block inside it then add following code to Quick CSS in Enfold theme options under General Styling tab
#your-custom-id { max-width: 100%; padding: 0; margin: 0; }
Best regards,
YigitJuly 23, 2015 at 7:53 am #477538Dear Yigit,
i tried that, but the content is still displayed with a padding on the left and on the right. Do you have another idea?
Thanks
BerndJuly 23, 2015 at 1:32 pm #477711Hi!
Sorry, please change the code to following one
#your-custom-id .container { max-width: 100%; padding: 0; margin: 0; }
Cheers!
YigitJuly 26, 2015 at 8:19 pm #478778Dear Yigit,
thanks! Awesome – it works.
May I ask for your help on another case. I’ve two gmaps iframes and I’d like to use these script but I cannot get it to work. Do you have an idea how to do that? Where do I have to copy the script?
Thanks a lot
BerndCSS:
<style>
.scrolloff {
pointer-events: none;
}
</style>
Script:<script>
$(document).ready(function () {// you want to enable the pointer events only on click;
$(‘#map_canvas1’).addClass(‘scrolloff’); // set the pointer events to none on doc ready
$(‘#canvas1’).on(‘click’, function () {
$(‘#map_canvas1’).removeClass(‘scrolloff’); // set the pointer events true on click
});// you want to disable pointer events when the mouse leave the canvas area;
$(“#map_canvas1″).mouseleave(function () {
$(‘#map_canvas1’).addClass(‘scrolloff’); // set the pointer events to none when mouse leaves the map area
});
});
</script>
HTML: (just need to put correct id as defined in css and script)<section id=”canvas1″ class=”map”>
<iframe id=”map_canvas1″ src=”https://www.google.com/maps/embe….” width=”1170″ height=”400″ frameborder=”0″ style=”border: 0″></iframe>
</section>July 26, 2015 at 10:16 pm #478807Hi!
Everything is possible, but that would need a lot of work to be done.
You can contact one of our Customization Contractors, who will help you out with the process.
http://kriesi.at/contact/customizationLet us know if we could do anything else, regarding our theme
Regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.