Archived topic
Load Hooker before content
7 replies · Started by Rytis on December 8, 2020
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.
Hi there,
Have you figured it out?
I'm seeing the slider before the content:
https://www.screencast.com/t/C96ejEXKZ
Let me know :)
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.
Can you disable your caching plugin and see if that solves the issue?
Just did. Doesn't work
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.
Thanks! It worked by changing fade to slide and changing from FlexSlider to R.Slides.
Awesome - glad to be of help.