https://millionclues.com/wordpress-tips/git-github-basics/
https://millionclues.com/wordpress-tips/git-github-basics/
https://millionclues.com/wordpress-tips/git-github-basics/
By OutsourcedContent — on October 10, 2017 /** * Include File In WordPress Theme’s Functions.php * * @since 1.0 * @refer https://millionclues.com/wordpress-tips/php-include-and-require-wordpress/ */ include_once( dirname(__FILE__) . ‘/includes/simple-post-likes/post-like.php’);
By OutsourcedContent — on January 12, 2018 Add this to the functions.php /** * Add Response code to video embeds in WordPress * * @refer http://alxmedia.se/code/2013/10/make-wordpress-default-video-embeds-responsive/ */ function abl1035_alx_embed_html( $html ) { return ‘<div class=”video-container”>’ . $html . ‘</div>’; } add_filter( ’embed_oembed_html’, ‘abl1035_alx_embed_html’, 10, 3 ); add_filter( ‘video_embed_html’, ‘abl1035_alx_embed_html’ ); // Jetpack Add this to…
Here we will see we can we add additional custom image size to post thumbnails in WordPress media uploader to use in our WordPress theme. WordPress has a built-in feature for Post Thumbnails. When you upload an image in any post or in media library, WordPress automatically resize and crop image to some predefined sizes,…
By default, WordPress displays all of your blog’s pages in search results along with blog posts. But on a specific project you may want to exclude pages from WordPress search results to make your search more relevant and less crowded. After all, most of the time, your readers want to find interesting posts, not pages…
By OutsourcedContent — on August 29, 2017 Escaping a text with links can be replaced if escaped with __() during localization. This not ideal since the person writing the localizing file could replace links with their own. The proper way to do this is explained with an example below: sprintf( __( ‘If you like this…
By OutsourcedContent — on October 12, 2017 You might want to read this post on how to conditionally display fields in Contact Form 7 plugin with simple JavaScript first to get some context. Here we are trying to display a line of text when all checkboxes are checked. Here is the result. Here is the…