[wp-trac] [WordPress Trac] #46036: Using of wp_register_script , wp_enqueue_script and wp_enqueue_style to add scripts of a plugin (Gravity Forms) in a custom theme is not working

WordPress Trac noreply at wordpress.org
Fri Feb 1 02:38:16 UTC 2019


#46036: Using of wp_register_script , wp_enqueue_script and wp_enqueue_style to add
scripts of a plugin (Gravity Forms) in a custom theme is not working
---------------------------+----------------------
 Reporter:  justinahinon   |       Owner:  (none)
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Script Loader  |     Version:
 Severity:  normal         |  Resolution:  invalid
 Keywords:                 |     Focuses:
---------------------------+----------------------
Changes (by desrosj):

 * status:  new => closed
 * focuses:  template, coding-standards =>
 * severity:  minor => normal
 * component:  Plugins => Script Loader
 * version:  5.0.3 =>
 * milestone:  Awaiting Review =>
 * keywords:  needs-testing =>
 * resolution:   => invalid


Comment:

 Hi @justinahinon, thanks for this ticket and welcome to Trac!

 This Trac instance is for the development of the WordPress core software
 and not for general support. I recommend opening a ticket in the
 WordPress.org support forum if you are still unable to get this to work.

 It does look like you have a typo in your file path, though
 (`gravityfomrs`). `get_template_directory_uri()` also returns the theme
 URL and not the plugin folder URL. If those paths do not exist in your
 theme, that could also be the issue.

 Good luck!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46036#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list