WordPress.org

Support

Support » Plugins and Hacks » List category posts » class parameter doesn't work with default plugin installation

class parameter doesn't work with default plugin installation

  • I noticed the “class” parameter used as described here has no effect on the resulting HTML code. In other words,

    [catlist class=long]

    ..has no effect, using the default plugin installation.

    I found that the plugin uses a default.php template installed under the themes/ folder (i.e. not the default.php template in the plugins/ folder). The problem is the default.php template lacks code to utilize the “class” parameter.

    I fixed this in the template by changing line 41 to:
    $lcp_display_output .= '<ul class="lcp_catlist ' . $this->params['class'] . '">';

    This appends any class you set as a parameter to the existing class. Hope this helps someone.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘class parameter doesn't work with default plugin installation’ is closed to new replies.
Skip to toolbar