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
/* 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) {
}
.nav ul{list-style: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #f1f1f1;
height:60x;
}
.nav ul li{float: left;}
@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%;
}
<?php
function portfolios_shortcode($atts){
extract( shortcode_atts( array(
'expand' => '',
), $atts) );
global $paged;
$posts_per_page = 6;
$settings = array(
'showposts' => $posts_per_page,
**//functions menu reg //**
function start_theme_menus(){
register_nav_menus(array(
'main_menu'=> 'main menu',
'footer_menu'=> 'footer menu'
));
}
<?
$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";
// owl dot number enable
var i = 1;
$('.owl-carousel .owl-dot').each(function(){
$(this).text(i);
i++;
});
//way two
<?php
//**php for dynamic title***************************************************************************//
<title><?php bloginfo('name'); ?></title>
///***php for images and jequery slider******************************************************//
<?php echo get_template_directory_uri(); ?>/
//php for css***********************************************//
<?php
/*this is for init default jquery*/
function various_theme_jquery() {
wp_enqueue_script('jquery');
}
add_action('init', 'various_theme_jquery');
/*this is to enqueue js and css*/
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="post-header">
<div class="date"><?php the_time( 'M j y' ); ?></div>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="author"><?php the_author(); ?></div>
</div><!--end post header-->
<div class="entry clear">
<?php if ( function_exists( 'add_theme_support' ) ) the_post_thumbnail(); ?>