Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter Sophiamolino

    (@sophiamolino)

    I think I’m beginning to understand.

    Do you see what’s the name/handle for the marquee script? (out of the code in the beginning of this discussion)

    You can give that script any name/handle that you want when it comes to enqueueing it. Something like:

    function my_marquee() {
    	wp_register_script( 'my-marquee-script , get_template_directory_uri() . 'marquee.js', array('jquery'),
        '1.3.2', true );
         wp_enqueue_script('my-marquee-script');
    }
    endif;
    add_action('template_redirect', 'my_marquee);

    should work – assuming that the script is located in the root folder of your current theme.

    Thread Starter Sophiamolino

    (@sophiamolino)

    I’m taking a step back. The javascript worked perfectly before I updated wordpress (from a recent version to the most recent version).

    May it possible that the older version of wordpress didn’t need a enqueue of the script? Because before I hadn’t either, but that the javascript worked well..

    No – WordPress has used script enqueueing for the past 7 full versions as far as I can recall. Are you sure that your script works with the current bundled version of jQuery (1.8.3 )?

    Thread Starter Sophiamolino

    (@sophiamolino)

    I guess that’s the problem. I used this one: https://webcodingeasy.com/JS-classes/Javascript-marquee

    But you know what’s the weird thing. Yesterday the marquees were showing up once, but when I refreshed they were gone again. One big mystery.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Marquees not showing in newest wordpress version’ is closed to new replies.