Customizing Printing Posts and Pages in Oxygen
-
Dear all:
This is my problem in Oxygen theme:
When a post or page is printed, links are showed as urls.
Doing a short research, it seems that this can be solved via CSS.
Does anyone know how to avoid that links appear as urls when posts and pages are printed??
Thanks in advance !!
The blog I need help with is: (visible only to logged in users)
-
My advice would be to include the normal text and append the URL so that it makes sense when you’re reading it on paper. If your theme doesn’t do that already you can include it with:
@media print { a:after { content: " (" attr(href) ") "; font-size: 90%; } }To remove any appended URLs then try this instead:
@media print { a:after { content: ""; } } -
Dear @hallluke:
Many Thanks. Your first suggestion is interesting.
When the page has a lot of links, which is my case (because the site is much like a big hypertext), the appearance of the printed page seems aesthetically problematic. But perhaps I have an outdated vision of the issue !!
Could you give me an example of the “appended” url you mention?
-
The first code example I gave would show a link as:
LINK_TEXT_HERE (www.someURL.com)
So that your viewers can follow the text but also be aware of what the destination URL is. Try entering that code and then previewing the print version of the page to see how it looks.
It’s a fairly common choice. You intuitively know where each link is pointing but your visitors might not, and in the instance that they might print the page it could be useful for them. I’d recommend keeping the URL in the print CSS.
- The topic ‘Customizing Printing Posts and Pages in Oxygen’ is closed to new replies.