Skip to content

Instantly share code, notes, and snippets.

View shehabkhan013's full-sized avatar
💭
Wordpress Theme Developer

A. M. Shehab Khan shehabkhan013

💭
Wordpress Theme Developer
View GitHub Profile
@shehabkhan013
shehabkhan013 / search.css
Created July 31, 2019 03:40
Mobile Search Option
.mobile-search {
position: absolute;
right: 65px;
top: 50%;
z-index: 9999;
background: #4F2271;
border-radius: 22.5px;
display: none;
transform: translateY(-50%);
}
@shehabkhan013
shehabkhan013 / comment.css
Last active October 16, 2018 08:17
Comment CSS
/*Comment List styles
--------------------------------------------------------------*/
.form-item {
border: 1px solid #ffffff;
padding: 15px;
}
.comment-list .row {
margin-bottom: 0px;
@shehabkhan013
shehabkhan013 / admin.js
Last active October 6, 2018 06:17
CMB2 Post Format Interactivity Add
//includ the Js file is js folder
(function ($) {
$(document).ready(function () {
$("#post-formats-select .post-format").on("click", function () {
if ($(this).attr("id") == "post-format-image") {
$("#_alpha_image_information").show();
} else {
$("#_alpha_image_information").hide();
}
});
@shehabkhan013
shehabkhan013 / search.php
Last active September 1, 2018 18:48
WordPress All Functionality for Search Form
/* Put the Search Form Start*/
<?php
if(is_search()){
?>
<h3><?php _e("You searched for","alpha") ?>: <?php the_search_query(); ?></h3>
<?php
}
?>
<?php
@shehabkhan013
shehabkhan013 / add_function.php
Created January 30, 2018 20:04
Wordpress Comment php file and Moving Input Field and Replay Button Click To not Page Loading Function
// Replay Button Click To Page Note Loading
function consult_wpb_move_comment_field_to_bottom( $fields ) {
$comment_field = $fields['comment'];
unset( $fields['comment'] );
$fields['comment'] = $comment_field;
return $fields;
}
@shehabkhan013
shehabkhan013 / wp_author_meta.php
Created January 28, 2018 10:31
Wordpress Get Author Information In User Area
//for user profile picture
<?php echo get_avatar(get_the_author_meta('ID'), 100);?>
//for user profile Name
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>"><?php the_author(); ?></a>
//for user discription
<?php echo get_the_author_meta('description'); ?>
@shehabkhan013
shehabkhan013 / blog-page.php
Created January 27, 2018 18:12
Wordpress Blog page Content Dynamic with while loop
<?php
if(have_posts()):
while(have_posts()): the_post();
?>
<div class="blog_left_single_item">
</div><!-- blog_left_single_item -->
<?php endwhile;?>
@shehabkhan013
shehabkhan013 / nav-menu.php
Created January 27, 2018 16:26
Wordpress Navigation menu Dynamic With dropdown Support
//Must be included walker menu from wp-bootstrap-navwalker.php on github
register_nav_menus(array(
'header_menu' => 'Header Menu',
'footer_menu' => 'Footer Menu'
));
<?php
@shehabkhan013
shehabkhan013 / googlefonts.php
Last active October 9, 2018 11:11
Wordpress google fonts Dynamic
//Refarence themeshaper
function theme_name_fonts_url() {
$fonts_url = '';
$OpenSans = _x( 'on', 'OpenSans font: on or off', 'theme-slug' );
$Montserrat = _x( 'on', 'Montserrat font: on or off', 'theme-slug' );
@shehabkhan013
shehabkhan013 / textanimation.js
Last active January 26, 2018 17:36
text animation js active (textillate.js)
$('.banner_effect').textillate({ in : {
effect: 'fadeInRight',
delayScale: 2
},
out: {
effect: 'flipOutY',
sync: true
},
loop: true
});