• Resolved lacon

    (@lacon)


    I don’t see support for strikeout of letters which would return no pages? Or something of that type (doesn’t have to be strikeout, could be letters only show if there are pages to be found).

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    I have worked on it and that feature exists in this plugin. But at the moment that is disabled. You can find it inside as disable_ something.

    Thread Starter lacon

    (@lacon)

    Thanks for the reponse Fahad. I have little exposure to plugin code. I think you’re talking about this section inside script.js?

    function disable_ap_letters(obj){
    //console.log(obj);
    if(jQuery(obj).length>0){
    var obj = jQuery(obj);

    var letter = obj.find(‘a’).html();
    //obj.html(letter);
    }
    }

    I have tried renaming it to ap_letters, but I don’t see any impact. Can you be more explicit?

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    I have coded a function and it’s test as well. Just paste it somewhere in plugin or in your theme’s functions.php. It will automatically start working with the plugin.

    https://codeshare.io/lxvOn

    The only problem is, it will put load on your database because it will query for every single letter.

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Here is another snippet to make the letters disable using PHP array with JS.
    https://codeshare.io/a2GqT

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Strikeout?’ is closed to new replies.