Skip to content

Instantly share code, notes, and snippets.

View ShahinAhmed7's full-sized avatar
🔥
Working from home

Shahin (S) ShahinAhmed7

🔥
Working from home
  • Dhaka Bangladesh
View GitHub Profile
/* Medium Layout: 1280px. */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
}
/* Tablet Layout: 768px. */
@media only screen and (min-width: 768px) and (max-width: 991px) {
@charset "UTF-8";
/*!
Animate.css - http://daneden.me/animate
Licensed under the MIT license
Copyright (c) 2013 Daniel Eden
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
//home-8 fullpage js active
if ($.fn.fullpage){
$('#fullpage').fullpage({
continuousVertical: true,
Navigation:true,
afterRender: function () {
setInterval(function () {
$.fn.fullpage.moveSectionDown();
}, 10000);
<div class="featured-icon">
<span class="info-icon pulse"><i class="fa fa-info"></i></span>
</div>
.pulse {
cursor: pointer;
//onepage nav start
$('ul#nav > li > a').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
|| location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
<?php
if ( ! function_exists( 'myfirsttheme_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which runs
* before the init hook. The init hook is too late for some features, such as indicating
* support post thumbnails.
<?php
if ( ! function_exists( 'myfirsttheme_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which runs
* before the init hook. The init hook is too late for some features, such as indicating
* support post thumbnails.
$secondary_query = new WP_Query( 'category_name=example-category' );
// The second loop. if ( $secondary_query->have_posts() )
echo '<ul>';
while ( $secondary_query->have_posts() ) :
$secondary_query->the_post();
echo '<li>' . get_the_title() . '</li>';
endwhile;
echo '</ul>';
<?php
add_action('wp_enqueue_scripts','my_own_script');
if(!function_exists('my_own_script')){
function my_own_script (){
wp_enqueue_style('style', get_stylesheet_directory_uri().'/css/basic.css');
wp_enqueue_script('mw_one_script', get_template_directory_uri().'/js/basic.js');
}
}
?>
// menu add query ...........................
add_action('init', 'my_own_custom_menu');
if(!function_exists('my_own_custom_menu')){
function my_own_custom_menu(){
// main menu add query
register_nav_menu('nav-menu', 'main menu');
// footer menu add query