Skip to content

Instantly share code, notes, and snippets.

@sjozsef
sjozsef / Pure Bootstrap Contact Form 7 template
Last active March 23, 2023 10:03
bootstrap-contact-form-7.html
<hr />
<div class="row">
<div class="col-md-4">
[text* your-name class:form-control placeholder "Name (required)"]
</div>
<div class="col-md-4">
[email* your-email class:form-control placeholder "Email (required)"]
@sjozsef
sjozsef / wp-config.php
Created March 10, 2016 11:06
This is how to disable the built-in WP cron functionality.
/*
* Disable WP cron
*/
define('DISABLE_WP_CRON', true);
@sjozsef
sjozsef / Wordpress Cron with crontab and curl
Created March 10, 2016 11:17
How to setup a real cron job for WordPress with Linux Crontab and CURL
crontab -e
*/10 * * * * curl http://example.com/wp-cron.php > /dev/null 2>&1
@sjozsef
sjozsef / Wordpress Cron with crontab and php-cli
Created March 10, 2016 11:19
How to setup a real cron job for WordPress with Linux Crontab and PHP CLI
crontab -e
*/10 * * * * cd /var/www/example.com/htdocs; php /var/www/example.com/htdocs/wp-cron.php > /dev/null 2>&1
add_image_size( 'twentysixteen-logo', 1200, 175 );
add_theme_support( 'site-logo', array( 'size' => 'twentysixteen-logo' ) );