WordPress.org

Make WordPress Core

Opened 11 months ago

Closed 11 months ago

Last modified 11 months ago

#45444 closed feature request (invalid)

Problem inserting an animated html5 code

Reported by: elgoofer Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.9.8
Component: General Keywords: dev-feedback
Focuses: Cc:
PR Number:

Description

Hi boys. I'm trying to insert an animated wtml5 in a page for the theme i'm using and it doesn't show.
Let me explain with the example.
Here is the code, in the server where i'm using the theme:
http://elreportero.org/wp-content/plugins/insert-php/includes/insertables/02/keyframe_animation.php
It works perfect.
Here's the inserted code by the pluhin insert-php.
http://elreportero.org/aaaa-test-animacion/
As you can see, the animation just doesn´t start. The page is correctly called, and i've puted this piece of code in the functions.php file of the theme:
wp_enqueue_script('edge.6.0.0', get_template_directory_uri().'/js/edge.6.0.0.min.js', array('jquery'), true);
If you check the code of the page you can see the call for the .js file is done.
I need those animations working. How can i fix this??
Thanks in advance and hugs from argentina
Carlos Cardozo

Change History (2)

#1 @swissspidy
11 months ago

  • Component changed from Bootstrap/Load to General
  • Focuses javascript removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi there and welcome to WordPress Trac!

This is the place where we discuss bugs and enhancements to WordPress core. For support questions like yours, please use the official support forums available at https://wordpress.org/support.

It's also worth checking your browser console when visiting http://elreportero.org/aaaa-test-animacion/ to see if there are any JavaScript errors because of that animation.

#2 @elgoofer
11 months ago

Perfect answer my friend, i'm not a developer so i never used the console before...
And there's the answer for my problem...
Didn't put the call for the data .js of the animation...
It's working now!!
Thnaks a LOT and hugs from Argentina!!!

Note: See TracTickets for help on using tickets.