Forum Replies Created

Viewing 15 posts - 1 through 15 (of 60 total)
  • in reply to: Changes in Parent-Script #293542
    heinetz
    Member
    Post count: 63

    What i wanted to know was, how I could calculate the height of the resized header before it is resized.

    best,
    heinetz

    in reply to: Changes in Parent-Script #293346
    heinetz
    Member
    Post count: 63

    Hi,

    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,
    heinetz

    in reply to: Changes in Parent Theme #293309
    heinetz
    Member
    Post count: 63
    in reply to: Changes in Parent-Script #293194
    heinetz
    Member
    Post count: 63

    and 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,
    heinetz

    in reply to: Changes in Parent-Script #293181
    heinetz
    Member
    Post count: 63

    Hi,

    I solved it without modifying functions.js but I hope
    my infos would be useful for you.

    best,
    heinetz

    in reply to: load child-js after parent-js #293131
    heinetz
    Member
    Post count: 63

    Hi 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,
    heinetz

    in reply to: Space below footer on pages without a scrollbar #292892
    heinetz
    Member
    Post count: 63

    hi 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,
    heinetz

    in reply to: WordPress User #292735
    heinetz
    Member
    Post count: 63

    ok, thank you

    best,
    heinetz

    in reply to: Space below footer on pages without a scrollbar #292725
    heinetz
    Member
    Post count: 63

    ok, 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,
    heinetz

    in reply to: Space below footer on pages without a scrollbar #292617
    heinetz
    Member
    Post count: 63

    hi ed,

    thank you but I don’t like the solution. I’ll write it in jQuery.

    best,
    heinetz

    in reply to: Space below footer on pages without a scrollbar #292573
    heinetz
    Member
    Post count: 63
    This reply has been marked as private.
    in reply to: Space below footer on pages without a scrollbar #292548
    heinetz
    Member
    Post count: 63
    This reply has been marked as private.
    in reply to: Permalinks #292239
    heinetz
    Member
    Post count: 63
    This reply has been marked as private.
    in reply to: Permalinks #292215
    heinetz
    Member
    Post count: 63
    This reply has been marked as private.
    in reply to: Space below footer on pages without a scrollbar #292206
    heinetz
    Member
    Post count: 63
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 60 total)