Skip to content

Instantly share code, notes, and snippets.

View IamSohaggazi's full-sized avatar
🏠
Working from home

Mahmud Sohag Gazi IamSohaggazi

🏠
Working from home
  • Chandpur, Bangladesh
View GitHub Profile
// owl dot number enable
var i = 1;
$('.owl-carousel .owl-dot').each(function(){
$(this).text(i);
i++;
});
//way two
<?
$name=$_POST['name'];
$Email=$_POST['email'];
$website=$_POST['url'];
$message=$_POST['message'];
$body .= "Name: " . $name . "\n";
$body .= "Email: " . $Email . "\n";
$body .= "Website: " . $website . "\n";
$body .= "Message: " . $message . "\n";
**//functions menu reg //**
function start_theme_menus(){
register_nav_menus(array(
'main_menu'=> 'main menu',
'footer_menu'=> 'footer menu'
));
}
<?php
function portfolios_shortcode($atts){
extract( shortcode_atts( array(
'expand' => '',
), $atts) );
global $paged;
$posts_per_page = 6;
$settings = array(
'showposts' => $posts_per_page,
@IamSohaggazi
IamSohaggazi / Fixed Navigation css
Last active June 8, 2018 03:53
Fixed Navigation Bar Css
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
position: fixed;
top: 0;
width: 100%;
}
.nav ul{list-style: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #f1f1f1;
height:60x;
}
.nav ul li{float: left;}
/* 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) {
}