Support » Fixing WordPress » JQuery Equal Height in Rows Doesn't Wotk With

  • Resolved Kharis Sulistiyono


    Currently I am developing a WordPress Theme. I want the posts floated left with DIVs height are equal in rows. I use tutorial from CSS-Tricks I follow the tutorial correctly. But it only works when I ommit <?php wp_footer(); ?>. As we know that it is not suggested for us to ommit it.

    Could somebody help me to solve this problem?

    Thank you for your very useful help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • How are you enqueuing the javascript/jQuery script?

    I am enqueuing JQuery and equalheight.js in functions.php as follows :

    // Load jQuery
    if ( !is_admin() ) {
    wp_register_script(‘jquery’, (“”), false);

    // Load Equal Height .js
    function my_equal_height() {
    get_template_directory_uri() . ‘/scripts/equalheight.js’,
    ‘1.0’ );
    add_action(‘wp_enqueue_scripts’, ‘my_equal_height’);

    Thank you for your respond and answer 🙂

    My problem has been resolved. Somebody helped me by this code

    // Load 'Working' jQuery
    add_action( 'init', 'jquery_register' );
    // register from google and for footer
    function jquery_register() {
        if ( is_admin() )
        wp_deregister_script( 'jquery' );
        wp_register_script( 'jquery', '', false, null, true );
        wp_enqueue_script( 'jquery' );
    // Try this Equal height:
    function my_equal_height() {
        wp_enqueue_script( 'equal_height', get_template_directory_uri().'/scripts/equalheight.js', 'jquery', null, true );
    add_action( 'wp_head', 'my_equal_height' );

    Thank you David

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘JQuery Equal Height in Rows Doesn't Wotk With’ is closed to new replies.