Category: Code

Server permissions problem solution

Make sure you cd into the correct folder you want the server want to be able to control before you run these commands. If you run this in your root folder, make sure you understand file permissions correctly and that your wp-config.php with user credentials now is readable by users that have server access. This …

Simple toggle-function for photos

This codeblock is used for showing and hiding photos when a button in #mydiv is clicked. When the photos are showing and you hover your mouse over them a span-tag is showing. Both the span and .photos got the display:none; rule active in the CSS.