Graders Posted February 8, 2016 Posted February 8, 2016 Hi All Has anybody encountered the css coding on a print preview? and how it can be removed? When the website is in print preview mode, it shows all the links images refs etc, which makes it unusable when printing a page. Not found a definitive answer, some say its joomla code or a template? Any idea how to remove?
spadam Posted February 8, 2016 Posted February 8, 2016 I think it depends on your template as to how this works... You can enable the print button to show for articles within Joomla which when clicked should only print the article rather than the entire page. Otherwise you can add a CSS stylesheet with media="print" attribute and within this stylesheet set display:none for all the elements you want to hide
Graders Posted February 8, 2016 Author Posted February 8, 2016 (edited) Hi is that a generic CSS code? Edited February 8, 2016 by Graders
Graders Posted February 8, 2016 Author Posted February 8, 2016 Just found and tested @media print { a[href]:after { content: none !important; } } pasted this in the custom css with the template
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now