Events Made Easy › Forums › How do I … › Customize Printable View
- This topic has 12 replies, 3 voices, and was last updated 11 years, 6 months ago by Franky.
-
AuthorPosts
-
Wed 24 Apr 2013 at 14:53 #43997AnonymousInactive
I have added some of my custom columns to the printable view without a problem. I’d like to remove some of the defaults (telephone number, paid.) Is this doable? I’m happy to play around in the PHP to customize the form, too, if you can tell me which file it’s in.
Wed 24 Apr 2013 at 15:19 #50475FrankyKeymasterHave you tried playing with the CSS? eme_print.css is used to format that page, so it might help you without changing the code (I haven’t done the hiding myself yet).
See http://www.e-dynamics.be/wordpress/?cat=30
Another option: use the CSV output and remove the columns not needed
Wed 24 Apr 2013 at 18:16 #50476AnonymousInactivePrintable view? There’s a printable view?
Wed 24 Apr 2013 at 18:38 #50477AnonymousInactiveI’ll play around with that, thanks Franky. Am I right in understanding that there is an existing eme_print.css? Where might I find it?
Wed 24 Apr 2013 at 20:44 #50478FrankyKeymaster@beventsmadeeasy: yes 🙂 Do the upgrade dance 🙂
@Feegle: there’s an eme.css, but not an eme_print.css. As explained here http://www.e-dynamics.be/wordpress/?cat=30 : create a file called ‘eme_print.css’ in your theme CSS directory to change the layout of the “Print Preview” booking result
Wed 24 Apr 2013 at 21:49 #50479AnonymousInactiveI saw that; I just didn’t know how to deal with blanking out columns using CSS if they’re not tagged with a specific class. I won’t waste your time with that question; I’ll poke around and see if I can find instructions elsewhere.
I did find the construction of the print format within the eme_people.php file. Will anything break if I just comment out the table cells I don’t want?
Wed 24 Apr 2013 at 22:23 #50480FrankyKeymasterIt won’t break anything, except your change will be undone if you ever update it.
The easiest would be to add a class to each column. And this is what has been done here:
http://plugins.trac.wordpress.org/changeset/703119
Please do try it out and give feedback.
Sun 12 May 2013 at 22:19 #50481AnonymousInactiveHi Franky,
I’m having trouble getting the eme_print.css to actually affect the printable view. I’ve tried it in a few different places. There is no /css directory in my theme, but the style.css file is in the theme’s root directory. I tried a bunch of troubleshooting, and then finally thought to look at the source code for the printable page; this is what it shows: on line 7:
<link rel=”stylesheet” href=”http://DOMAIN_NAME.COM/wp-content/plugins/events-made-easy/events_manager.css” type=”text/css” media=”screen” />
Am I right in thinking that it’s looking in the wrong place for the wrong filename? It should be looking in the theme directory for the eme_print.css, no? (If it matters, my theme directory doesn’t have a CSS subdirectory; the stylesheet is just in the root theme directory.)
Mon 13 May 2013 at 09:19 #50482FrankyKeymasterevents_manager.css is the basic CSS that comes with the plugin. It should always appear in your html source, so that’s fine.
For the eme_print.css and your theme CSS dir: I use the standard wordpress functions get_stylesheet_directory (to check if the css exists) and then get_stylesheet_directory_uri (to show it in the html source). So if you don’t see eme_print.css in your html source, it means get_stylesheet_directory (with “/eme_print.css” appended to it) didn’t find it.
Mon 13 May 2013 at 12:10 #50483AnonymousInactiveOkay, so do you have any idea why it might not be finding it? I’ve tried with the eme_print.css in three places, and it doesn’t seem to detect it in any of them. I’ve tried it in:
* root theme directory, where the theme spreadsheet is
* a subdir of the theme directory called /css, which I created manually through the backend
* the root directory of the eme plugin, just in case
Mon 13 May 2013 at 12:13 #50484FrankyKeymasterMaybe a permission issue?
Mon 13 May 2013 at 15:33 #50485AnonymousInactiveI think I figured it out. Here’s what code in the header of the page itself looks like now:
<link rel="stylesheet" href="http://DOMAIN/wp-content/plugins/events-made-easy/events_manager.css"
type="text/css" media="screen" />
<link rel='stylesheet' href='http://DOMAIN/wp-content/themes/parchment-draft/eme.css'
type='text/css' media='screen' />
<link rel='stylesheet' href='http://DOMAIN/wp-content/themes/parchment-draft/eme_print.css'
type='text/css' media='print' />The
eme_print.css
file doesn’t affect the site as viewed online, which is what I was really looking for. Once I duplicated the file and renamed iteme.css
, it does, and the additional<link>
tag to the new spreadsheet showed up. I don’t know the media attribute in php (amateur programmer that I am), but is it because theeme_print.css
file is for actual, “Send to the printer” interpretations? The fact that I was looking on my computer screen needs it to be theeme.css
file that I’m playing with?Mon 13 May 2013 at 21:37 #50486FrankyKeymasterYes, as said in the doc: http://www.e-dynamics.be/wordpress/?cat=30
Maybe it is not entirely clear, but eme_print.css influences indeed “print” operations (I hardly ever print though …)
-
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.