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:
    1. Check the synax of the form
    2. Check the chrome debugging -> Network tab
    3. 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

  1. in wp-config: change WP_DEBUG -> true

    • Make sure WP_DEBUG_LOG -> true (should already be)
  2. Find debug log in SFTP: wp-content -> debug.log

    • VScode’s file explorer refresh to update the log.
  3. In your code:

    • error_log()
    • print_r( $x, true) will print arrays