Okay
  Public Ticket #1041935
Problem with shortcode in layer
Closed

Comments

  •  2
    mattiasgeisler started the conversation

    I try to get a countdown timer in a layer to behave properly and resize itself on different screen sizes. But the communication from Layer Slider seems to prohibit the Counter to  know the size of the parent container.


    http://blog.airiarunning.com/airia-raw-speed-hacked-racing-flat-kickstarter-countdown-page/

  • [deleted] replied

    Hey mattiasgeisler,

    It works the opposite way. LayerSlider resizes the layers (the parent elements) and you will need to make sure that the content inside adapts to it.

    In case you haven't done it so far, please set a starting size for the layers in the admin interface under the Styles tab in the Layers section.
    It's important because when a layer does not have any original size set and it cannot be grasped either (for example the physical size of images), the plugin automatically sets it to 1005 width until you apply a different value.

  •  2
    mattiasgeisler replied

    Ok, My plugin (Soon Countdown), don't resize until you do something. Is there a good way to force it to resize after window is resized. It has ha function for this Soon.redraw(); but I can't seem to get it to fire up in the correct manner.

  • [deleted] replied

    In case that plugin has a normal responsive mode implemented, it should be working without calling the window resize event as well.

    From our part, you could use the Event Callbacks menu on the admin interface to fire that plugin's custom code. Potential events that you can use for this purpose: 
    - sliderDidLoad
    - sliderDidResize