• I’m using the Whistles plugin to create tabs… working well, except for the unfortunate behavior that each tab’s title link location (pointing to the tab’s div id) is given a long numeric string, eg:
    #whistle-company-221-1443204415

    In this example “company” is the name of the whistle-group, but rather than using the whistle/tab’s actual readable title as the rest of the ID, its using these two sets of numbers…

    Any suggestions for how to fix/override that?

    Example at: http://www.funkcycles.com/wordpress/explore

    Thanks All!

Viewing 1 replies (of 1 total)
  • Thread Starter dwaharvey

    (@dwaharvey)

    OK, I managed to override this by editing the plugin php file: whistles/inc/class-whistles-and-tabs.php
    … to use the whistle title attribute…

    //$id = sanitize_html_class( 'whistle-' . $this->args['group'] . '-' . $whistle['id'] . '-' . $rand );
    $id = sanitize_html_class( 'whistle-' . $this->args['group'] . '-' . $whistle['title'] );

    Not sure if this is really the best/cleanest way to do it though…?

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Whistles] How to make the Tab links sensible?’ is closed to new replies.