Uncaught TypeError: Undefined is not a function - custom.js:29

Discussion in 'Figero WordPress Theme' started by shawnlim, Aug 4, 2014.

  1. shawnlim

    shawnlim New Member

    Joined:
    Jul 7, 2014
    Messages:
    7
    Likes Received:
    0
    I am getting a "Uncaught TypeError: Undefined is not a function - custom.js:29" error on all my Figero Theme pages. I am using Chrome browser.

    Here is my custom.js in my Figero Theme, line 29 is "//Fade images
    $(document).ready(function(){":

    /*--------DDsmoothmenu Initialization--------*/
    ddsmoothmenu.init({
    mainmenuid: "menu", //menu DIV id
    orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
    classname: 'ddsmoothmenu', //class added to menu's outer DIV
    //customtheme: ["#1c5a80", "#18374a"],
    contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
    });
    // JavaScript Document
    jQuery(window).load(function(){
    jQuery('#slides').slides({
    autoHeight: true,
    effect: 'slide',
    container: 'slides_container',
    play:50000,
    slideSpeed: 600,
    fadeSpeed: 350,
    generateNextPrev: true,
    generatePagination: false,
    crossfade: true
    });
    jQuery( '#slides .pagination' ).wrap( '<div id="slider_pag" />' );
    jQuery( '#slides #slider_pag' ).wrap( '<div id="slider_nav" />' );
    });

    //Font Replace
    Cufon.replace('#menu ul li a',{hover: true})('#colRight h2')('.reply',{hover:true})('h1')('h2')('h3')('h4')('h5')('h6');
    //Fade images
    $(document).ready(function(){
    $(".featured_content img, .post img, .sidebar .recent_post li img").hover(function() {
    $(this).stop().animate({opacity: "0.5"}, '500');
    },
    function() {
    $(this).stop().animate({opacity: "1"}, '500');
    });
    });
    //Tipsy
    $(function() {
    $('.social_logos a').tipsy({gravity: 's'});
    });
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Do let us know your website link.


    Thanks & Regards
    Gourav Shrivastava
     
  3. shawnlim

    shawnlim New Member

    Joined:
    Jul 7, 2014
    Messages:
    7
    Likes Received:
    0
    My website is http://bot-camp.com

    It is in construction mode, so you won't see the full site. However, the error is still thrown.
     
  4. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello,

    Download theme again from your members area and upload it.

    Thanks & Regards
    Pramod Patel
     

Share This Page