djog
Forum Replies Created
-
Forum: Plugins
In reply to: [Document Gallery] Dislay .eps and .ai filesPlease ignore my support request from an hour ago, about whether the Document Gallery plugin supports .eps and .ai files and how to get those files to display. I found that this issue was resolved two years ago by a very helpful person named Demur. Thank you again, Demur!
Demur,
You are awesome! Worked like a charm. Can’t thank you enough for going the extra mile to help me. I gave this plugin five stars (the highest possible rating) when I first started using it a couple of weeks ago, and now I’d give it 10 stars (if that was possible)!
Hi Demur,
Thank you for your quick reply! I tried adding the code that is in the article you linked to, in my functions.php file, as follows (note that the unbolded text is what is in my current functions.php file, and the bolded text is what I added):
<?php
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array(‘parent-style’)
);
}
// Added to extend allowed files types in Media upload add_filter(‘upload_mimes’, ‘custom_upload_mimes’); function custom_upload_mimes ( $existing_mimes=array() ) {
// Add *.EPS files to Media upload $existing_mimes[‘eps’] = ‘application/postscript’;
// Add *.AI files to Media upload $existing_mimes[‘ai’] = ‘application/postscript’;
return $existing_mimes;
}Unfortunately, I got the following error message when I tried to save the revised functions.php file: “Parse error: syntax error, unexpected ‘}’ in /home/a60463187/public_html/wp-content/themes/pure-simple-child/functions.php on line 14”
Can you tell me what I’m doing wrong?
Thanks!
Hi Dan,
I was able to assign an icon to the .tif files. However, still no luck getting the .eps files to display at all (not even with an empty box).