"Popular posts" & "Related posts" links not working after Cufon deactivation

resolved (5 posts) (2 voices)

  1. Hi,
    After deactivating Cufon on Method setting, I noticed that "Popular posts" & "Related posts" links was not working anymore (acting like # links while they should reveal the tab content).

    I just found inspecting the code the following error:

    ReferenceError: Can't find variable: Cufon --> custom.js:25

    In my custom file, it's the following function Cufon.refresh():

    if(jQuery('ul.blog_tabs').length > 0){
    	jQuery('ul.blog_tabs').tabs('> .blog_tabs_content');
    	jQuery('ul.blog_tabs').data('tabs').onClick(function(index) {
    		Cufon.refresh();
    	});
    }

    Any solution to avoid commenting this function? (I could need it by reactivating Cufon)
    Any other place I've not yet detected were a problem could happened related to Cufon deactivation?
    Thanks

    Posted 4 months ago #
  2. Elliott
    Support

    Hello Tazintosh,

    Try commenting out this line,

    Cufon.refresh();

    If that does not work then send us a link to your page and we'll take a look.

    Posted 4 months ago #
  3. That worked, as I was thinking.
    Is that the only solution? What happen if I need to active back Cufon? I'll have to uncomment again?

    Posted 4 months ago #
  4. Elliott
    Support

    If you want to use Cufon on that area then yes. Otherwise it will just be ignored when you switch between the two.

    Posted 4 months ago #
  5. Ok, thanks Elliott

    Posted 4 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme