WordPress.org

Ready to get started?Download WordPress

Plugin Directory

COP PDF Attachment Menu

Adds a shortcode [pdfmenu] that defaults to displaying an unordered list of all pdf's attached to the current page or post.

How can I style the mime type classes that are now output?

You will now see <li class="application/pdf"> (or your selected mime type) in the code. But you can't type the / in your stylesheet!

In order to refer to this style you need to change the / to \2f in your classname.

So it looks like

.application\2fpdf { 

}

That solution reduces that amount of code required to output the class and only sligthly increases the complexity of styling. It is the least code approach rather than the most user-friendly approach. Which I think is better in this case.

More Questions Please.

Questions / Donations

Requires: 3.2.1 or higher
Compatible up to: 3.5.2
Last Updated: 2013-4-23
Downloads: 3,474

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1