Plug-in stops working when I remove cufon-yui.js

Discussion in 'Dzonia WordPress Theme' started by rennemark, Dec 5, 2013.

Thread Status:
Not open for further replies.
  1. rennemark

    rennemark New Member

    Joined:
    Nov 15, 2013
    Messages:
    3
    Likes Received:
    0
    Hi, I'm using a slide-plugin that is called Recent Posts Slider.
    It worked perfectly until i wanted to remove the cufon-fonts that Dzonia theme uses.
    Here is the site I'm working on: http://samfast.com/redesign/

    I have placed this line on my front page:
    <?php if (function_exists('rps_show')) echo rps_show(); ?>

    Everything workes fine, but when I try to remove the file called cufon-yui.js the plugin stops displaying my posts. I've also tried to comment this line out from funtions.php:
    wp_enqueue_script( 'inkthemes-confu-ui', get_template_directory_uri()."/js/cufon-yui.js", array('jquery'));

    and when I do the plugin stops working again.

    I can't figure out how the plugin could be dependent on the cufon-yui-file and how i go about removing cufon without the plugin being affected.

    The error messages I get are:
    Notice: Undefined index: 0 in /www/webvol9/g0/7ou0qbxr50pzpj5/samfast.com/public_html/redesign/wp-content/plugins/recent-posts-slider/recent-posts-slider.php on line 502

    Notice: register_widget_control is not used since version 2.8! Use wp_register_widget_control() instead. in /www/webvol9/g0/7ou0qbxr50pzpj5/samfast.com/public_html/redesign/wp-includes/functions.php on line 2919

    Help would be greatly appreciated!
     
  2. Gourav

    Gourav Support Staff

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

    Undo your old customization.
    and for removing the cufon, go to js > custom.js present in your theme directory and remove the code given below

    Code:
     //Cufon Replacement in heading
      jQuery(document).ready(function() {
    //Cufon.replace('h1')('h2')('h3')('h4')('h5')('h6');
    Cufon.replace('h1, h2, h3, h4, h5, h6,.content .post .date li', { fontFamily: 'MankSans-Medium', hover: true });
    });

    This will solve your issue.
     
  3. rennemark

    rennemark New Member

    Joined:
    Nov 15, 2013
    Messages:
    3
    Likes Received:
    0
    Thank you for the sollution!
    Now the font is gone and the plugin still works =)
     
Thread Status:
Not open for further replies.

Share This Page