Site logo

[Resolved] Load Hooker before content

Home Forums Support [Resolved] Load Hooker before content

Home Forums Support Load Hooker before content

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1571791
    Rytis

    Hi,

    I have hook which is pretty much:
    <?php echo do_shortcode('[metaslider id="42"]'); ?>
    and menu html,
    but I can’t seem to set it to load before page content, I have tried to set it to generate_before_content then it dissapears. Tried to set it before_header but it loads content first still. I have tried variety of options from dropdown menu, still don’t work can some one help me? Thanks in advance.

    #1571901
    Leo
    Staff
    Customer Support

    Hi there,

    Have you figured it out?

    I’m seeing the slider before the content:
    https://www.screencast.com/t/C96ejEXKZ

    Let me know 🙂

    #1572049
    Rytis

    I mean when it loads. I need it to be render blocked or loaded first, because first half second I can see content below instead of slider before slider appears. It makes website look unprofessional.

    #1572131
    Leo
    Staff
    Customer Support

    Can you disable your caching plugin and see if that solves the issue?

    #1572414
    Rytis

    Just did. Doesn’t work

    #1572577
    David
    Staff
    Customer Support

    Hi there,

    the problem is the Sliders height is unknown until the Images are loaded. And as the height of those images will vary depending on the screen width its tricky to set a ‘fixed’ size as that would be a problem with its responsive behaviour.

    You may want to try reconfiguring the slider, it has multiple Slider methods and things like fade in on load should be disabled.

    #1572603
    Rytis

    Thanks! It worked by changing fade to slide and changing from FlexSlider to R.Slides.

    #1572623
    David
    Staff
    Customer Support

    Awesome – glad to be of help.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.