View the code on Gist.
WPML does not use wp_enqueue_style, but there is constant for language selector to prevent loading of the styles. Add following snippet to your functions.php. Read more about WPML constants and functions
Add following line to your forms “Additional Settings”. on_sent_ok: “location = ‘http://example.com/thankyou’;”
Category support for pages can be added with register_taxonomy_for_object_type() function. Add following example to your functions.php.
$caption = get_post( get_post_thumbnail_id() )->post_excerpt;
if ( $caption != "" ): ?>
<?php echo $caption; ?>
<?php endif; ?>
Scroll to element #scrollToElementId when element #btn is clicked.
Activate theme $ wp theme activate your_theme_name Delete theme $ wp theme delete your_theme_name More commands
Add following line to your wp-config.php
define( 'WPCF7_AUTOP', false );
To exclude page from search, add following code to your theme’s functions.php. Exclude page and all it’s child pages from search.
Install plugin $ wp plugin install w3-total-cache Install and activate plugin $ wp plugin install w3-total-cache –activate Plugins can be installed by plugin slug, path to local zip file or external URL. See more options at WP-CLI documentation