Title: Add class on wrapper?
Last modified: August 30, 2016

---

# Add class on wrapper?

 *  [venjef](https://wordpress.org/support/users/venjef/)
 * (@venjef)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/add-class-on-wrapper/)
 * Hi! Thanks for the great plugin!
 * I’m using the plugin on several places on my website and depending on the page
   placement I use a differently styled wrapper (ul, ol and h5). I’m aware of the“
   wrap” tag and I use it but I would prefer to be able to add a class as well. 
   Is that possible?
 * Thanks in advance!
 * [https://wordpress.org/plugins/wp-pubmed-reflist/](https://wordpress.org/plugins/wp-pubmed-reflist/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [jimhu](https://wordpress.org/support/users/jimhu/)
 * (@jimhu)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/add-class-on-wrapper/#post-6577603)
 * Although I’m not sure I understand the wrapper you actually want (could you post
   some example HTML?), I think i understand what you want the plugin to do, but
   to make sure…
 * There are two problems:
    1) the wrap as it currently is used generates <$wrap
   >[list of refs]</$wrap>, so anything more complex than a single HTML tag will
   get messed up when it closes. So we really need a separate open and close value
   for $wrap
 * 2) you’d also like to use css to style the references themselves by adding styles
   to the li tags.
 * Is that right? These seem like good ideas that I should implement in the next
   version. It seems like there are several options for the solution listed in order
   of how easy they would be to implement.
 * 1) The simplest is for me to just add standard classnames to wrap and li which
   would allow you to select them in your css for your theme
    2) More complicated
   would be to add options to cover possible layouts 3) Or perhaps I could add a
   more serious template building option to the admin pages.
 * These are not mutually exclusive. What do you think?
 *  Thread Starter [venjef](https://wordpress.org/support/users/venjef/)
 * (@venjef)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/add-class-on-wrapper/#post-6577672)
 * Thank you for the quick reply!
    Yes, basically what I would like to do is to 
   be able to add styling to my ol,ul and li without changing the tag for the entire
   website.
 * Personally, I use your plugin in 2 different ways, I have 1) queries that consist
   of multiple papers or multiple queries and 2) queries that consist of only one
   paper. I need a separate style for each so, one classname wouldn’t work perfectly
   for me but I could certainly use it for only one of the cases. More specifically,
   for (1) I need numbered lists and for (2) I want an inline list with no bullets/
   numbers.
 * Any solution that would allow different styling options would work for me. For
   example, [pmid-refs key=smith class=inline-ol] or [pmid-refs key=smith styling
   =”font-size:12pt;”] or as you suggested 2 different templates defined in the 
   admin pages!
 * By the way, note that when I use 2 different shortcodes sequentially I can’t 
   use the ol tag because the numbers don’t get incremented properly. For example:
   [
   pmid-refs key=smith] [pmid-refs key=anderson]
 * Will produce 2 consecutive lists that will look like:
    1. smith 1 2. smith 2 
   1. anderson 1
 * While I would like something like
    1. smith 1 2. smith 2 3. anderson 1
 * I can’t really avoid the sequential shortcodes because some of my queries return
   more than 20 papers (that’s still the limit, right?). To avoid this I use the
   ul tag. But if you could remove the 20 results limit or add the start attribute
   on ol that would be great too!
 *  Plugin Author [jimhu](https://wordpress.org/support/users/jimhu/)
 * (@jimhu)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/add-class-on-wrapper/#post-6577676)
 * You should be able to increase the limit past 20 in the current version. Start
   a new thread if that is not working!
 * I’ll see what I can do about the layout options.
 *  Thread Starter [venjef](https://wordpress.org/support/users/venjef/)
 * (@venjef)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/add-class-on-wrapper/#post-6577678)
 * Oops, sorry, I missed the past 20 update!
    Thank you for considering the layout
   options!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Add class on wrapper?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-pubmed-reflist.svg)
 * [WP Pubmed Reflist](https://wordpress.org/plugins/wp-pubmed-reflist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-pubmed-reflist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-pubmed-reflist/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-pubmed-reflist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-pubmed-reflist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-pubmed-reflist/reviews/)

## Tags

 * [class](https://wordpress.org/support/topic-tag/class/)
 * [ol](https://wordpress.org/support/topic-tag/ol/)
 * [ul](https://wordpress.org/support/topic-tag/ul/)
 * [wrap](https://wordpress.org/support/topic-tag/wrap/)

 * 4 replies
 * 2 participants
 * Last reply from: [venjef](https://wordpress.org/support/users/venjef/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/add-class-on-wrapper/#post-6577678)
 * Status: not resolved