edit the print version

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Apr 24, 2013 3:29 pm
Reply with quote
Report this post
hi, I do not understand why, but I can not manage the print version of the articles (k2). I located the file k2.print.css but any changes I do, do not get any effect.
Am I using the wrong css file?
Also your demo site shows photos of a medium size, while my shows her very large...
User avatar
Expert Boarder

GK User
Wed Apr 24, 2013 5:46 pm
Reply with quote
Report this post
Hi, add here URL of your website with K2 items & print button, I will check it.
Sometimes others modules/plugins could overwrite stylesheets.
User avatar
Platinum Boarder

GK User
Wed Apr 24, 2013 5:51 pm
Reply with quote
Report this post
User avatar
Expert Boarder

GK User
Wed Apr 24, 2013 10:49 pm
Reply with quote
Report this post
Hi again,
this print view page (and all category items in it) uses this file: templates/gk_news/css/system/print.css
- so check it out, and make small/big modification.
User avatar
Platinum Boarder

GK User
Fri Apr 26, 2013 8:52 am
Reply with quote
Report this post
thank you very much, unfortunately there is still something wrong: if I apply the changes, nothing happens (I carry out the test with multiple browsers and clearing the cache).
To check if I'm using the right file I try to hide (display: none) an entire <div> but nothing happens.
User avatar
Expert Boarder

GK User
Fri Apr 26, 2013 12:50 pm
Reply with quote
Report this post
ok, lets start from beginning, what elements you want to disable from print view (images/Vota questo articolo) ?

I have checked your print view stylesheets again and I saw this:

Code: Select all
article.itemView img {
    display: block;
    height: auto;
    margin: 20px 0;
    max-width: 100%;
    min-width: 100%;
}


in: templates/gk_news/css/system/print.css

So that's why images are shown.

You have to change it to this only:
Code: Select all
article.itemView img {display: none!important;}


as I wrote before, this should work! If not ...I will jump out the window. :lol:
User avatar
Platinum Boarder

GK User
Fri Apr 26, 2013 12:58 pm
Reply with quote
Report this post
p.s.
Or just add this on the bottom of print css file:
Code: Select all
img { display: none; }


- it will disable all images from content but also logo, upss ?
User avatar
Platinum Boarder


cron