Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5953981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:54:16+00:00 2026-05-22T17:54:16+00:00

I have a list: <ul> <li><h2>Header</h2><p>Text</p></li> <li><h2>Header</h2><p>Text</p></li> <li><h2>Header</h2><p>Text</p></li> </ul> Header text is being displayed

  • 0

I have a list:

<ul>
   <li><h2>Header</h2><p>Text</p></li>
   <li><h2>Header</h2><p>Text</p></li>
   <li><h2>Header</h2><p>Text</p></li>
</ul>

Header text is being displayed as Cufon generated canvas.

I’m cloning my list and using the second one as replacement for Quicksand script.

Everything works like expected, but the headers are invisible after sorting (but the canvases are still there!).

How to fix that?

Live example:

http://bartekka.ayz.pl/quicksand/

(every “Cufon Title” disappears after clicking a link, removing Cufon.now() helps, but this is not an answer since this part of code is required in my project)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:54:17+00:00Added an answer on May 22, 2026 at 5:54 pm

    This is because of the way Cufon creates elements – always causes trouble for me. What I do is redraw the text after any javascript interaction with it. Quickest way is to call Cufon.refresh() which will redraw all cufon items on the page. Alternatively you can target them specifically.

    When I do this I tend to create a function to do the initial drawing of cufon items I will alter. Then I can just recall that function after my sorting (or whatever) js is complete.

    HTH 🙂

    EDIT in response to comment

    Sure, not worries 🙂
    The sorting plugin you are using has a callback feature so you can just do this:

    jQuery('.portfolio-sorted').quicksand( cache_list.find('li[data-value=Video]'), {
            duration: 500,
        },
        function(){
            Cufon.refresh();
            // OR Cufon.replace('h2', { fontFamily: 'Quicksand' });
            // OR Cufon.replace($('.portfolio-sorted li h2'), { fontFamily: 'Quicksand' }); 
        });
    

    EDIT 2

    Right – found something very interesting: Quicksand has an option for just such a purpose. Try this (note – I’ve compressed your four functions into 1 for ease of testing – possibly this is something you can use?):

    var cache_list = jQuery(this).clone().append('content');
    //Add on click event handler to everything at once
      jQuery('ul.portfolio-terms li a').click(function(e) {
      //Call quicksand on the original works_list list(the one visible to the user)
      //pass to it all the 'li' elements from the cached clone 
      //since we want to display them all
    
      //get the target element based on data value
      var target = 'li[data-value='+$(this).attr('data-value')+']';
    
      if ($(this).attr('data-value') == "All") {
        target = 'li';
      }
    
      jQuery('.portfolio-sorted').quicksand( cache_list.find(target), {
              duration: 500,
              enhancement: function() {
                    Cufon.refresh();
                    // OR Cufon.replace('h2', { fontFamily: 'Quicksand' });
                    // OR Cufon.replace($('.portfolio-sorted li h2'), { fontFamily: 'Quicksand' });
                  }
      });
      e.preventDefault();
    }); 
    

    Think that will do it (works for me in Chrome and FF). The enhancement call is the important one if you want to add it to your original functions.

    Fingers crossed!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have a list of #define s in a header file for an
I have the following HTML containing a drop down list (single selection) <script type="text/javascript">
We have a list of days at the top of the table header and
I have a text file that looks similar to; section header 1: some words
I have a simple web site with two pages. One displays a list of
I have text file as follows: HEADER INFO Last1, First1 Movie1 (1991) random stuff
I have a table created from List of data. How to find the header
I have several large text files (30m+ lines, >1GB) which are being processed in
I have a simple accordion type page containing a list of H3 headers and
I have List I want to sort Desc by Priority, which is int and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.