Digital experiences for all disciplines
Forum Replies Created
-
Posted in: We hit Power Elite.
-
What i wanted to know was, how I could calculate the height of the resized header before it is resized.
best,
heinetzHi,
the object jQuery(‘.sticky-header.sticky-header-resized’) exists while header is resized,
but I need to know the height before it’s resized.best,
heinetzI posted a DIFF a few days before.
http://www.swiftideas.com/wp-content/uploads/2016/09/screen-2016-09-12-um-15.36.26-2.jpeg
best,
heinetzand there is one thing left:
while the headers height is determined with jQ:outerHeight() I use a static value at the moment. the static value for the height of the resized header.
Is there any way to calulate this value while header is expanded?
best,
heinetzHi,
I solved it without modifying functions.js but I hope
my infos would be useful for you.best,
heinetzHi Mohammad,
I found out how to load the child’s script(s) after the parents script(s),
but I didn’t help to solve my problem. I changed following code:/* ENQUEUE CHILD-SCRIPTS ================================================== */ function sc_scripts() { wp_enqueue_script( 'modernizr', 'https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js', array(), '1.0.0', true ); wp_enqueue_script( 'prefixfree', 'https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js', array(), '1.0.0', true ); wp_enqueue_script( 'swisscomply', get_stylesheet_directory_uri() . '/js/swisscomply.js', array(), '1.0.0', true ); } add_action( 'wp_enqueue_scripts', 'sc_scripts' );
… in functions.php as follows:
/* ENQUEUE CHILD-SCRIPTS ================================================== */ function sc_scripts() { wp_enqueue_script( 'modernizr', 'https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js', array(), '1.0.0', true ); wp_enqueue_script( 'prefixfree', 'https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js', array(), '1.0.0', true ); wp_enqueue_script( 'swisscomply', get_stylesheet_directory_uri() . '/js/swisscomply.js', array(), '1.0.0', true ); } add_action( 'wp_enqueue_scripts', 'sc_scripts', 20);
What i’ve done was increasing the priority (third arg) in add_action
But that didn’t solve my problem and i’ll start another thread.
best,
heinetzhi ed,
yes, now I understood how your solution works. And that is the precondition to use it because I know why and what to ajust when it doesn’t work anymore instaed of asking for help again.
best,
heinetzok, thank you
best,
heinetzok, I didn’t understand the solution 😉
I tested it with 300X3000 scrensize and still I got space
below the footer. Shure, that was the wrong test scenario
but that happens without understanding!Now I got it and, you’re right, it’s better than using jQuery.
But no solution is a good solution without understanding it!
Thank you
best,
heinetzhi ed,
thank you but I don’t like the solution. I’ll write it in jQuery.
best,
heinetzThis reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private. -
Posted in: We hit Power Elite.