Forum Replies Created
-
AuthorPosts
-
Hi Ismael,
Do I have to delete the other code at functions.php Yigit gave me?
I tried both options (with and without the code of Yigit). Both doesn’t solve the problem.This is the code in my functions.php:
function add_custom_header(){ ?> <script> jQuery(window).load(function(){ jQuery('a#cookie_action_close_header').click(function(){ jQuery('#header').addClass('agreed'); }); }); </script> <?php } add_action('wp_footer', 'add_custom_header'); add_action('wp_footer', 'ava_custom_script', 10); function ava_custom_script(){ ?> <script> (function($){ var cookie = $('a#cookie_action_close_header').length; if ( cookie ) { $('#header').css('top', '50px'); } }(jQuery)); </script> <?php }
I’m sorry, I saw another thing that doesn’t work.
When I click on ‘accepteer cookies’ (translate: ‘accept cookies’) the cookie bar disappears. And the header is at the absolutely top now.
That’s good. But then when I refresh the page again, I see that the enfold header is not at the top anymore but any pixels lower.Can I change that somewhere?
Of course! My fault. Thanks.
This is working very good now!Greets Mark
Now the bars are looking good. But the cookie law header isn’t sticky anymore when I start scrolling.
Can you see what happens?
Hi Yigit,
Thanks. I allready tried that. The sticky headers are both sticky now.
But the cookie policy bar show up in front of the Enfold header.
I could add margin-top to move the Enfold header down, but when the cookies are accepted, the enfold header has to be at the absolute top again.Greets Mark
Hi Josue,
Thanks for the reply. I thought I only had to add some things in CSS. But I suppose you know it’s more than that.
I’ll try to make a more simple hover effect.
Thanks anywayGreets Mark
Hi Rikard,
It’s possible to place the sticky bar at the bottom of the page. But I prefer to place it at the top.
Because at the bottom is will be placed over the content instead of beneath the content.
But I was wondering if it was a template issue that a sticky bar at the top won’t act ‘sticky’ when there is allready another sticky header?Greets Mark
Hi Ismael,
My fault :)
Thanks a lot!
Greets Mark
Hi Ismael,
Thanks again. Your answer was very useful. I did set the page as a blog, but I didn’t know I could change this as a page.
Greets Mark
Yesss, Thanks again!
Yesss! That’s it.
Thanks a lot Yigit!
Hi Rikard,
That works good for the home page.
How can I delete the trail at the beginning of the other pages, like: http://www.c-testing.nl/machines/hammer-mills/
The first trail has to be disabled.Thanks in advance.
Greets Mark
Hi Rikard,
Thanks a lot for your quick reply.
Yes, I mean the arrow pointing down at the fullscreen slider.This is the link to the webpage: http://www.c-testing.nl
Greets,
MarkHello Elliott,
Thanks a lot for your quick response.
Your solution works like a charms.Thanks again.
Best regards,
Mark -
AuthorPosts