Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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.

    #297632

    put 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: …/#something

    to 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.asp

    #298032

    Hey!

    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,
    Yigit

    #298070
    This reply has been marked as private.
    #298072
    This reply has been marked as private.
    #298073

    Hi!

    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!
    Yigit

    #298091
    This reply has been marked as private.
    #298108

    Hi!

    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,
    Josue

    #298110

    No worries, Thanks guys, Cheers

    #300149

    Hey!


    @guenni007
    posted a solution to this thread, that can be found here – https://kriesi.at/support/topic/solution-for-hotspot-stretched-image/#post-300138

    Best regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Anchor and hot spot image’ is closed to new replies.