Wordpress Troubleshooting
Unlimited Elements:
-
Traveling to ue widget via browser history can delete you css, saving in this state is unrecoverable. Date: June 2023
-
UE isn’t maintining styles between refreshes:
- TryElementor -> tools -> Rebuild
- Add Specificity to your attribute’s css selector / css page
Elementor:
- Width / Height coming from somewhere (chrome debugger: purple padding)
- Check flex-basis attribute
Forms:
- Parse Errors:
- Check the synax of the form
- Check the chrome debugging -> Network tab
- See the format of the request: (I had a wordpress hook injecting a js into the request causes the error).
Wordpress
Finding Wordpress compiled selectors
- Network Tab of chrome’s debug tools
- Search the template’s Post ID (find it in the template’s URL)
Debuging PHP
-
in wp-config: change WP_DEBUG -> true
- Make sure WP_DEBUG_LOG -> true (should already be)
-
Find debug log in SFTP:
wp-content -> debug.log
- VScode’s file explorer refresh to update the log.
-
In your code:
- error_log()
- print_r( $x, true) will print arrays