There is no need to add anything via WordPress, you can simple add the following rule to your CSS file:
a[href$='.pdf'] {}
This will target all links pointing to a URI ending in .pdf. This works in all modern browsers and from IE7 upwards.
Related Posts:
- adding a custom css class to post
- How to make classes for posts?
- Every second post different class in blog view
- How can I add a class to particular paragraphs in my post?
- How to mark every 3rd post
- Is it possible to bold certain words in a post title?
- Is this the best (and only) option to style CSS for a given post type?
- Odd/even class on article tag
- How to add padding between posts
- Custom colors for post rows based on post meta value
- How To Add Perfect Apostrophe And Quotation Mark In WordPress Posts?
- Hide add new page button
- Limit function to specific post category
- How To Keep Posts from Being Displayed Two or More Times on My Homepage? [closed]
- Latest 5 posts (custom post type), each post different CSS
- Add Post Tags to Body Class
- WordPress Theory Lesson – Image Columns within posts with alignment?
- How to style the last post on the front page different than the others?
- Copying and pasting emoji in a wordpress post
- Style Differently Edited Posts
- CSS: How can I show a photo beyond the template’s column, but contained within the browser window? [closed]
- Making a custom Pagination for multi page blog post
- Can I search posts and pages for css classes?
- How to add tags (custom taxonomy) to post class css?
- Is there a way to specify an extra class for a post or page with no title?
- How to remove in-line style of WordPress’s post content only?
- Add $values to post_class()
- Grid post page on WordPress with Bootstrap, the_excerpt(); Problem
- Make a vertical dynamic list of posts in alphabetically order and in columns [closed]
- How to make different custom post layouts?
- Is there any way to stylize articles one by one?
- Font shows up as Arial instead of Times [closed]
- How to style archive post titles… but only those posts who have comments?
- My Custom Post Type Still Using index.php
- add div after image in post [closed]
- How do I switch css class on post
- Microformats in a single post – layout conflict
- wordpress add field to post_class
- displaying the categories post
- How to separate each individual blog post?
- Locally change the font family [closed]
- YARPP php question
- Right align a youtube video
- How do I apply a template to my single posts?
- Indenting within a blockquote
- Different background colors for posts with WordPress
- Turn off display for custom sidebar post widget when on the post it’s displaying
- How to allow arbitrary inline CSS in posts?
- How to highlight or show new to the particular posts list
- Css and function issue on author archive page
- WordPress Recent Post with the badge “New” on the side of the title post
- Centre Blog Index (Posts Page) on Home.php
- I have two post types in the same query, how can I use CSS to select only one post type?
- how can i fix my display post in my index.php
- display content in multiple columns
- How can I alternate styling of images in a post? [closed]
- Hide title in Merlin Theme on posts and pages only
- How to add a class to links inside posts text
- Background image in posts
- How to mark every 3rd post
- How can i put image to come first than the title?
- Automatically add class to link based on link text
- Change a div background color on Post ID
- CSS – Change height of Storefront / WooCommerce product categories, but not products
- How to display my categories in a list (to a post, not the sidebar)?
- Difficulty hiding a span per a body class within WordPress
- posts blocks don’t show up correctly
- Post/page title to permalink transformation – what is behind the scenes?
- Adding JS functionality to the Publish button in wp-admin/post.php
- How to create a playlist for audio associated with posts per category
- wp_insert_post not working fine
- When sending a newsletter -not with wordpress- the server has 100% cpu [closed]
- Get postlist for each category using query_posts?
- Post title is not showing
- How do post IDs work in WordPress?
- Change Author Name to Sitename on Frontend
- Would a “hub” page work better as a page or a post?
- Some doubts about how the loop work (trying debugging it)
- Display on page every post in blog WITH comments
- How to save posts position on homepage after random function?
- Are post, page and category IDs unique to each other?
- Image on rss feed on post
- Retrieve data from post meta meta_key having ‘_product_fq_image’ while having author_id and post type is PRODUCT
- Query function not executed between element [closed]
- Using AJAX and PHP to load next post object
- Conditional css for custom post type
- Custom WP_Query not working correctly
- Different number of posts per row in grid layout
- Echo the number of posts being displayed
- Change the background of each post according to the category
- Get post related to particular meta box? [closed]
- Insert data from custom created PHP page into wp_postmeta table
- Exclude a category of posts in author template
- Get author posts count after excluding a category
- How to edit the ‘
- Post Status Frontend Announcement
- Template for regular posts (no custom post types)
- Static pages not working
- Issue with first top post display order
- Let Posts be stored in another table