-
AuthorPosts
-
September 29, 2016 at 8:25 am #692961
if you have a color-section and give a background-image to it – you have the choice to position that attachment on enfold dialog.
on parallax the positioning of the background-attachmant (image) works as expected
– but on fixed positioning not .
it seem more like a center center than a center top.
it looks like the header-height isn’t regarded. On non shrinking header i can fix it with css (with background-position ) but on shrinking headers it must be influenced dynamically ?Is there a fix for it ? – Thanks
PS : it is just because sometimes it is important to see the top of the image
September 29, 2016 at 9:09 am #692980hm i did that in child-theme functions.php :
this is a fix for top setting only
if you only want to change it for a specific site (see code at bottom) – in my case it is page-id-140add_action('wp_footer', 'ava_custom_script'); function ava_custom_script(){ ?> <script type="text/javascript"> (function($) { $(document).ready(function(){ $(window).load(function() { var shift = $('.container.av-logo-container').outerHeight(); $('.page-id-140 .avia-section.avia-bg-style-fixed').css('background-position-y', shift ); }); $(document).scroll(function(){ var shift = $('.container.av-logo-container').outerHeight(); $('.page-id-140 .avia-section.avia-bg-style-fixed').css('background-position-y', shift ); }); }); })(jQuery); </script> <?php }-
This reply was modified 9 years, 1 month ago by
Guenni007.
September 29, 2016 at 9:49 am #692996Hi!
I think you open tickets, to brainstorm with your self! :D
Once again, you nailed it.
Feel free to let us know if we can help you further or again, feel free to pop into any other thread!Cheers have a nice day
Best regards,
Basilis -
This reply was modified 9 years, 1 month ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
