Author: Support Admin

Add Post Category Slug to Body Class in WordPress
[ad_1] By default WordPress adds many useful classes to body and posts, to help theme developers to style their sites effectively with only CSS and without needing to edit theme files unnecessarily. For example, WordPress adds the category name when you’re viewing an archive page so you can style archive pages differently for each category.…

Remove Website/URL From WordPress Comment Form
[ad_1] By OutsourcedContent — on October 5, 2017 Add this to the active theme’s functions.php. /** * Remove Website From Comments Form * * @since 1.0 * @refer https://millionclues.com/wordpress-tips/remove-websiteurl-from-wordpress-comment-form/ */ function mc_disable_comment_url ($fields) { unset($fields[‘url’]); return $fields; } add_filter(‘comment_form_default_fields’,’mc_disable_comment_url’); [ad_2]

Using Google Fonts In WordPress – The Right Way
[ad_1] By OutsourcedContent — on October 6, 2017 Add this in functions.php replacing the font of course. /** * Adding Goolge Fonts To WordPress – The Right Way * * @refer https://wp-mix.com/right-way-include-google-fonts-wordpress/ */ function right_way_to_include_google_fonts() { if (!is_admin()) { wp_register_style(‘google’, ‘https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700’, array(), null, ‘all’); wp_enqueue_style(‘google’); } } add_action(‘wp_enqueue_scripts’, ‘right_way_to_include_google_fonts’); [ad_2]

Add Meta Keywords Tag Without Plugin in WordPress
[ad_1] Last week, we have posted about how to add meta description tag to your WordPress website without using any plugins and in this article, we will be showing you a way to add meta keywords tag to head section of website. First of all before proceeding any further, I would again recommend you to…

Make A Div Stick To Bottom Of Parent Div
[ad_1] By OutsourcedContent — on October 6, 2017 Here is the HTML Markup <div class=”parent”> <div class=”child”> <?php echo “Hello”; ?> </div> </div> And the CSS .parent { position: relative; } .child { position: absolute; bottom: 0px; } [ad_2]

The Right Way To Load CSS On WordPress Login Pages
[ad_1] By OutsourcedContent — on October 8, 2017 /** * Custom Login CSS * * @refer https://millionclues.com/wordpress-tips/right-way-load-login-css-wordpress/ */ function mc_load_custom_login_css() { wp_enqueue_style( ‘login-css’, get_template_directory_uri() . ‘/assets/css/login-page.css’ ); } add_filter( ‘login_enqueue_scripts’ , ‘mc_load_custom_login_css’ ); Or you can use the Custom Login Admin Front-end CSS Plugin. [ad_2]

Add Shortcode for Paypal Donation Button in WordPress
[ad_1] Couple of months ago, I was looking for a simple WordPress plugin to use on one of my client’s website to accept PayPal donations. I was looking for an easy and flexible way to add a PayPal donation button in posts content without hardcoding links everywhere. There are a couple of interesting plugins I…

PHP Include And Require Files In WordPress functions.php – The Right Way
[ad_1] 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’); [ad_2]

Show A Field Only When All Checkboxes Are Selected In Contact Form 7
[ad_1] 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…

Add Search Form in Post Content With Shortcode
[ad_1] In previous article we have shown you how to create a shortcode for PayPal donation button so you can add a donation button easily anywhere you desire. And in this article we will show you how to add WordPress search form in post content with the help of shortcodes. There are times when you…