Category: Snippets

  • Embed Divi Layouts

    Embed Divi Layouts

    This Code has multipe functionalities and requires the Premium-Theme Divi. Add to your functions.php, f.ex. through Code Snippets. Then, visit Divi > Divi Library and copy the shortcode next to the design you wish to embed.

  • Block enumarated E-Mails

    Block enumarated E-Mails

    We had a lot of sign-ups using 07370230723@domain.com. And we wanted to block that. We used the following functions.php Snippet to block enumarated E-Mails through WordPress. Insert into your functions.php, f.ex. with Code Snippets.

  • LazyLoad Divi Rows and Sections

    LazyLoad Divi Rows and Sections

    With this code, there will be added automatically lazyload-references to Divi Rows and Sections, as well as its inner content. This code is in Alpha and should be used carefully, although it’s currently in use on our main blog, www.gooloo.de, with no issues.

  • Purge LiteSpeed Cache on the Homepage daily Mon-Fri

    Purge LiteSpeed Cache on the Homepage daily Mon-Fri

    Hi, We needed a small piece of code, that would purge the Homepage Monday through Friday selectively, at 12:01pm CET. Please note: This code uses the Berlin Timezone at 12:01pm CET. Change according to your needs. Insert into the functions.php, f.ex. through Code Snippets.

  • Back to top

    Back to top

    This PHP Code adds a Back-to-top Button using a Font Awesome Icon. The used design is used on our main blog, www.gooloo.de, and can be changed how you like. Please note, that this Code needs the Font Awesome Library to work. See more details, here.

  • Clean-up Action Scheduler and its Logs

    Clean-up Action Scheduler and its Logs

    To automatically clean-up finished Action Scheduler Actions and its Logs, upload the following Code to mu-plugins in the wp-content Folder and name it “action-scheduler-cleanup.php”. Or download it here (Caution: This is the “old” version at the bottom of this post), directly. Final Update To accomodate everything, this code was revised and is now based on…

  • Disable app credentials

    Disable app credentials

    To block App Passwords and Credentials in WordPress to all users, use the following Code Snippet an insert it into your functions.php File, f.ex. using Code Snippets.