Hi, the first code snippet here http://wpadverts.com/documentation/custom-image-sizes/ you need to paste either in your theme functions.php file or create a new plugin and add it there.
In the code snippet you just need to customize add_image_size() function arguments, this function is documented here https://developer.wordpress.org/reference/functions/add_image_size/
Hi! thanks, but I can’t open the link you gave as “first code snippet”, since it asks me to login
Sorry, seems i forgot to post here, i updated the link in my reply.
Hi again!
If I paste the code to functions.php I get this error message:
Fatal error: Cannot redeclare mysql2date() (previously declared in /nfsmnt/hosting1_1/b/0/b0bbd7bd-eec1-4abd-a5de-a5bc9f66476a/balaton-guide.hu/web/wp-includes/functions.php:26) in /nfsmnt/hosting1_1/b/0/b0bbd7bd-eec1-4abd-a5de-a5bc9f66476a/balaton-guide.hu/web/wp-content/themes/cityguide/functions.php on line 42
I deleted the code from the functions.php but the Error message still there, in other words the site is down!!! What should I do?
Your theme wp-content/themes/cityguide/functions.php defines function mysql2date() on line 42, this function is already defined so you cannot define it for a second time, you need to either remove it from functions.php or ask theme author about it.
Hi!
I removed the snippet from functions.php and uploaded the original functions.php, but the error still persists ?! what could have happened?
thanks for you help!
kata
I don’t know, this does not look like something caused by the plugin, if functions.php is the only file you changed try re-uploading it from original theme zip file or restore the site from backup.