Add Custom Logo in WordPress Admin Login Page

If you want to display a custom logo instead of default WordPress logo in wp-admin login page, you need to add following code into functions.php /*** Change Logo In Admin Login Page With URL And Title ***/ add_action('login_head', 'admin_login_logo'); function admin_login_logo() { $logoImage = get_theme_mod( 'custom_logo' ); $logoUrl = wp_get_attachment_image_src( $logoImage , 'full' ); echo … Continue reading Add Custom Logo in WordPress Admin Login Page

Add page number to Yoast meta description and page titles/descriptions to avoid duplication

if ( ! function_exists( 'ujp_add_page_number' ) ) { function ujp_add_page_number( $s ) { global $page; $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; ! empty ( $page ) && 1 1 && $s .= ' - ' . sprintf( __( 'Page %s' ), $paged ); return $s; } add_filter( 'wpseo_metadesc', 'ujp_add_page_number', 100, … Continue reading Add page number to Yoast meta description and page titles/descriptions to avoid duplication

Get specify category + Jquery + Ajax

Template file foreach ( $terms as $term ) : ?> echo '';endif; ?> jQuery(document).ready(function() { /* * Trigger window resize function in javascript */ function ESresize(){ if (typeof (Event) === 'function') { // modern browsers window.dispatchEvent(new Event('resize')); } else { //This will be executed on old browsers and especially IE var resizeEvent = window.document.createEvent('UIEvents'); resizeEvent.initUIEvent('resize', … Continue reading Get specify category + Jquery + Ajax

How to on click yotube video play in popup

<a href="JavaScript:Void(0);" data-toggle="modal" data-src="" data-target="#testimonial" class="d-block video-link video_btn"><img class="d-block w-100" src="" alt="" width="100%" height="100%" /> /********************************/ ✕ /********************************/ var $videoSrc; $('.video-link').click(function() { $videoSrc = $(this).data( "src" ); }); //console.log($videoSrc); // when the modal is opened autoplay it $('#testimonial').on('shown.bs.modal', function (e) { $("#testimonial_video").attr("src", $videoSrc + "?enablejsapi=1&rel=0&autoplay=1&amp;showinfo=0"); }) // stop playing the youtube video when I close … Continue reading How to on click yotube video play in popup

new articles are published and contact form 7 combine.

// alerts as new articles are published and contact form 7 combine. function qd_notifyauthor_postcontact($post_id) { global $wpdb,$wpcf7s_posted_data; //$submission = WPCF7_Submission::get_instance(); $tablename = $wpdb->prefix.'cf7dbplugin_submits'; $result = $wpdb->get_results("select * from ".$tablename." LIMIT 0,100"); //echo "<pre>"; print_r($result); exit; $demo = array(); foreach($result as $results) { $submit_time = $results->submit_time; $form_name = $results->form_name; $field_name = $results->field_name; $field_value = $results->field_value; $field_order … Continue reading new articles are published and contact form 7 combine.