PHP Files

There must be no whitespace after the closing ?> tag of all theme and plugin PHP files. If there is you can cause issues with session_start() etc as detailed for this error case here.

Read More

Cannot send session cookie – headers already sent by…

Full example of the error message Warning: session_start(): Cannot send session cookie – headers already sent by (output started at /home/mysitename/public_html/wp-content/themes/theme-child/functions-myfile.php1:328) in /home/ mysitename /public_html/wp-content/themes/ theme -child/functions- myfile2.php on line 711 There’s a good explanation of this issue here: https://wordpress.stackexchange.com/questions/324762/setting-cookie-with-init-hook-causes-header-already-sent Basically is simply that you mustn’t have any whitespace after the closing ?> of your […]

Read More

Debug Mode

Turn on wordpress debug mode In “/wp-config.php” find (or add) this define and set it to true: Write to a file instead? See here for using the debug.log file

Read More

Send email

Send email with headers set HTML formatting No need for anything special, just include html tags within the email body as if writing the html for the body of a normal html page. Creating from site email address Example admin alert email send

Read More

Image Size

Image To Fill Space Resizing but keep aspect ratio This also works well: Responsive – Set max width but image shrinks if necessary

Read More

Where are Polylang translations stored

2019-11 We asked Polylang The translations of your theme and your plugins are stored in the po.mo files. If the translations are not provided by your theme or your plugins you need to create them thanks to Loco Translate, they will be stored also in the po.mo files.The content that you created yourself with Polylang […]

Read More

Where are WPML translations stored

2019-11 We asked WPML Our question Are all translations stored in po/mo files which we can copy using ftp, or are they stored in the database? Answer from WPML Hi Adam, there are 2 big areas but both require database access to some extent: 1) strings in themes and plugins: these are stored in mo/po […]

Read More

Copy translations to another website

It looks like this is painful and per language, no simply just copy all the translations over. It looks like the process is different for strings and posts/pages too? Resources https://wpml.org/forums/topic/exporting-all-translation-complete-translations-to-transfer-other-wp-site/ https://wpml.org/forums/topic/transfer-my-translations-from-one-to-another-website/

Read More