WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

All the HTML and CSS shortcode handles are fantastic! I'm able to simply reference my main theme's existing CSS to instantly format the content. What I don't know how to do is formatting the overall list container.

How can reference the main theme's gallery CSS and apply a /div class=mygallerytheme/ wrapper around the list? The div needs to sit just above the starting /ul/. (That div also handles the responsive sizing, formatting, etc.)

share|improve this question

To format the overall list container use the class paramater:

class - CSS class for the default UL generated by the plugin.

Also, you can change the generated code to a div if you pass the parameter "div" to "template":

[catlist  template=div class=mygallerytheme]

This will create something like:

<div class="mygallerytheme">
  <p>Post 1</p>
  <p>Post 2</p>

Other than that, to include a wrapper around the default ul, you should use the template system to wrap the [catlist] calls with a custom div.

share|improve this answer
Before I read this I tried out the TEMPLATE system and it worked beautifully! I just added the theme-specific CCS and HTML calls. I can post the code chunks here if anyone's curious (it's for the Trine WP theme). – n8cheever Apr 19 '12 at 0:14
So, did this answer the question? If so, mark it as correct. Otherwise, add your answer :) – Fernando Briano Apr 19 '12 at 7:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.