Title: Exclude html tag?
Last modified: May 27, 2022

---

# Exclude html tag?

 *  Resolved [kennnesbitt](https://wordpress.org/support/users/kennnesbitt/)
 * (@kennnesbitt)
 * [4 years ago](https://wordpress.org/support/topic/exclude-html-tag/)
 * I’m using Print-O-Matic, and recently started using CM Tooltip Glossary Pro, 
   which wraps glossary words in a hyperlink tag that provides a pop-up definition
   when the mouse-hovers over a word. However, Print-O-Matic displays the link underline
   and the href attribute.
 * What I would like to do, ideally, is have Print-O-Matic ignore/exclude the tag,
   but still print the text within the tag. In other words, if something like this
   appears on the page:
 * `<a class="glossaryLink" ... >glossary term</a>`
 * I would like it to be printed simply as:
 * `glossary term`
 * Is this possible with either Print-O-Matic or Print-Pro-Matic? Thanks!
    -  This topic was modified 4 years ago by [kennnesbitt](https://wordpress.org/support/users/kennnesbitt/).
    -  This topic was modified 4 years ago by [kennnesbitt](https://wordpress.org/support/users/kennnesbitt/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexclude-html-tag%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [4 years ago](https://wordpress.org/support/topic/exclude-html-tag/#post-15684925)
 * This is [@media print css](https://poetry4kids.com/wp-content/themes/node_modules/foundation-sites/scss/typography/_print.scss)
   that has been added by your theme:
 *     ```
       // Display the URL of a link after the text
           a,
           a:visited { text-decoration: underline;}
           @if $print-hrefs {
             a[href]:after { content: ' (' attr(href) ')'; }
           }
       ```
   
 * To remove these links, it looks like it’s an option in your theme, given the ‘
   @if $print-hrefs’ condition.
 * if you can not figure your theme out, then you can always add the following to
   the print-o-matic options page > print css sectoin:
 * `a[href]:after { content: '' !important; }`
 * Best of luck!
 *  Thread Starter [kennnesbitt](https://wordpress.org/support/users/kennnesbitt/)
 * (@kennnesbitt)
 * [4 years ago](https://wordpress.org/support/topic/exclude-html-tag/#post-15685096)
 * The latter solution worked. There’s no “options” page or “print css” section,
   but adding it to Settings > Print-O-Matic > Custom Print Page Style did the trick.
   Thanks!

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

The topic ‘Exclude html tag?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/print-o-matic_b2b2b2.svg)
 * [Print-O-Matic](https://wordpress.org/plugins/print-o-matic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/print-o-matic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/print-o-matic/)
 * [Active Topics](https://wordpress.org/support/plugin/print-o-matic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/print-o-matic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/print-o-matic/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [kennnesbitt](https://wordpress.org/support/users/kennnesbitt/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/exclude-html-tag/#post-15685096)
 * Status: resolved