• Resolved pirir

    (@pirir)


    Hi, the action bar (“messages”) is open by default when page is loaded. How can I have it closed?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter pirir

    (@pirir)

    Hallo, Icegram?

    Plugin Contributor Asmi Patel

    (@asmipatel)

    Hi @pirir,

    You can replace below JS code in the Custom JS block of the Icegram campaign. This will hide the action bar by default on page load.

    <script type="text/javascript">
    jQuery(document).ready(function() {
    jQuery('.ig_action_bar').addClass('ig_hide').removeClass('ig_show');
    }); </script>

    Note: Above code will apply on all Icegram action bars added on that page. If you want to apply it only for a specific action bar, you can replace .ig_action_bar with the unique id of the message.

    Hope this helps.
    Thank You!

    Thread Starter pirir

    (@pirir)

    Ok, it’s working. But when the page loads, you can still see the message first for a second unless it hides? Looks a bit strange though.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Closed action bar when page is loading’ is closed to new replies.