By using Elementorforum.com’s services you agree to our Cookies Use and Data Transfer outside the EU.
We and our partners operate globally and use cookies, including for analytics, personalisation, ads and Newsletters.

  • Join the Best Wordpress and Elementor Support forum

    Provide or get advice on everything Elementor and Wordpress, ask questions, gain confirmation or just become apart of a friendly, like minded community who love Wordpress and Elementor


    Join us!

Elementor Sticky Header Capturing Category Titles Dynamically on Scroll

K

kristiin.ms

New Member
Hi all,


I'm working on a WordPress + Elementor Pro site and would really appreciate help with a specific scroll-based interaction.
I have a transparent sticky header. When the user scrolls past the hero section (which has category icons with captions underneath),the header background turns white. At this point, I want the header to dynamically collect and display the captions (e.g., category names like "TÖÖLAUAD", "TÖÖTOOLID", etc.) from the icons below ( basically making it feel like the captions float up into the header).
The header is built with Elementor and right now I added HTML widget to the middle where captions should appear but I can not figure this out.
b31feb10-763c-46e0-aae3-6f3f0f0cb134.png
7f3a9fef-c8ee-41e8-98a7-c8a9ddf38d00.png
 
K

kristiin.ms

New Member
Found a solution if anyone else is having the same problem as a beginner in Elementor.
Made the usual header bar with custom css that enables the white background after trigger element. You will not need html widget or any js.
Instead of using Image Captions, I added Heading elements under icons.
Made Headings (text elements) sticky and set their Z-index higher than the header bar Z-index.
Now they stick/jump on white header bar as it scrolls past them.
 
Elementor Services Elementor Services

Latest Resources

Other Elementor Resources

elementor official
Top