-
AuthorPosts
-
July 30, 2014 at 6:30 am #297582
Hi guys,
Is it possible to ‘anchor” ( #something ) for the hot spot image? I know if I put the hot spot image in a colour section it will work, but then it doesn’t go full-width. I would like to have a full width hot spot image that I can attach an actor to.
Hope that makes sense…
Thanks.
July 30, 2014 at 11:15 am #297632put the hotsport image in a color section.
There is an oportunity to give the color section a section id (e.g. something)
Than the anchor will be: …/#somethingto get a stretched hotspot image you have to put in the quick css:
#something > .container {width: 100%}
maybe it should be important to set :
#something > .container {width: 100% !important}
thats it – this will select the div.container with parent #something
look here: http://www.w3schools.com/cssref/css_selectors.aspJuly 31, 2014 at 2:09 am #298032Hey!
Please turn on Custom CSS field for ALB elements ( http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ ) and give your hotspot element a custom CSS class ( i.e. my-image ) and then add following code to Functions.php file in Appearance > Editor
function add_custom_script(){ ?> <script> jQuery(window).load(function(){ if ( jQuery("div").hasClass("my-image") ) { jQuery(".my-image").attr('id','my-image-id') }; }); </script> <?php } add_action('wp_footer', 'add_custom_script');
It will give an ID #my-image-id to your “my-image” hotspot element
Regards,
YigitJuly 31, 2014 at 3:27 am #298070This reply has been marked as private.July 31, 2014 at 3:56 am #298072This reply has been marked as private.July 31, 2014 at 4:01 am #298073Hi!
If you do not mind, please create a temporary admin login and post it here privately so we can add the code to Functions.php file for you. You may already have a function called “add_custom_script” in functions.php file or there could be a punctional error when copy pasting the code
Cheers!
YigitJuly 31, 2014 at 4:47 am #298091This reply has been marked as private.July 31, 2014 at 5:40 am #298108Hi!
That’s currently not possible (i believe its made this way to avoid compatibility issues/bugs), feel free to request it here though.
Best regards,
JosueJuly 31, 2014 at 5:51 am #298110No worries, Thanks guys, Cheers
August 5, 2014 at 11:54 am #300149Hey!
@guenni007 posted a solution to this thread, that can be found here – https://kriesi.at/support/topic/solution-for-hotspot-stretched-image/#post-300138Best regards,
Yigit -
AuthorPosts
- The topic ‘Anchor and hot spot image’ is closed to new replies.