在function.php中添加脚本

时间:2017-06-02 15:42:30

标签: javascript php wordpress

我需要将我的脚本放在我的Wordpress上的function.php中,但我还没有找到如何做到这一点。需要帮助!

这里' S ..:

<script type="text/javascript"> 

       $(function() {

           $( '#ri-grid' ).gridrotator( {
               rows        : 3,
               columns     : 5,
               animType    : 'fadeInOut',
               animSpeed   : 500,
               interval    : 1200,
               step        : 1,
               w320        : {
                   rows    : 3,
                   columns : 5
               },
               w240        : {
                   rows    : 3,
                   columns : 5
               }
           } );

       });
   </script>

THX。

1 个答案:

答案 0 :(得分:0)

Wordpress并不那么简单。由于它具有模块化和用户友好性,具有即插即用功能,因此结构复杂。

添加脚本有不同的方法,这一切都取决于何时需要可用和/或执行。

相关问题