View add_function.php
// 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;
}
View wp_author_meta.php
//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'); ?>
View blog-page.php
<?php
if(have_posts()):
while(have_posts()): the_post();
?>
<div class="blog_left_single_item">
</div><!-- blog_left_single_item -->
<?php endwhile;?>
View nav-menu.php
//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
View googlefonts.php
//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' );
View textanimation.js
$('.banner_effect').textillate({ in : {
effect: 'fadeInRight',
delayScale: 2
},
out: {
effect: 'flipOutY',
sync: true
},
loop: true
});
View menu-active.js
li.current_page_item
--------------------------
$(".header-menu li a").each(function () {
if ($(this).attr("href") == pgurl || $(this).attr("href") == pgurl + '.html') {
$(this).parent().addClass("current_page_item");
$(this).parents('li').addClass("current_page_item");
}
});
View Ajax-Contact-Form-php.js
PHP Code:
--------------
<?php
// Only process POST reqeusts.
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// Get the form fields and remove whitespace.
$name = strip_tags(trim($_POST["name"]));
$name = str_replace(array("\r","\n"),array(" "," "),$name);
$email = filter_var(trim($_POST["email"]), FILTER_SANITIZE_EMAIL);
View search.css
/* Search area-Start */
.search-area {
text-align: center;
}
.search-icon {
border: 1px solid transparent;
color: #333;
display: inline-block;
font-size: 17px;
View instagram-active.js
var feed = new Instafeed({
get: 'user',
userId: 6665768655,
accessToken: '6665768655.1677ed0.313e6c96807c45d8900b4f680650dee5',
target: 'Instafeed',
resolution: 'thumbnail',
limit: 6,
template: '<li><a href="{{link}}" target="_new"><img src="{{image}}" /></a></li>',
});
feed.run();