How to display images in a theme or childtheme in WordPress.
On Linux and perhaps some Mac systems you may have to change the owner of the folder to daemon:daemon and set chmod to 777 during development.
When you launch the site online the file permissions must be more strict. Make sure that:
- All directories should be 755 or 750.
- All files should be 644 or 640. Exception: wp-config.php should be 440 or 400 to prevent other users on the server from reading it.
Sometimes the images will not display because of user rights. On Linux and perhaps Mac you may have to set the owner to daemon and the usergroup to daemon:
- # sudo chown -R daemon:daemon yourWordPressFolder/
Tutorials by Honey Boney.
The wodb class
Tutorial by Honey Boney on Youtube
An excellent tutorial by Zac Gordon: “How to Build a Responsive WordPress Theme with Bootstrap”. You’ll learn to hack a WP theme from scratch with Bootstrap and jQuery enabled.
- Bruger: xxxx.mmd.eal.dk
- Password: *********
- Database: xxxx_mmd_eal_dk
Filen wp-config.php kommer til at se sådan ud:
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
/** MySQL database username */
/** MySQL database password */
define(‘DB_PASSWORD’, ‘*******’); // password hidden here 😉
/** MySQL hostname */