Skip to content

Instantly share code, notes, and snippets.

View asufian97's full-sized avatar
🎯
Focusing

Abu Sufian asufian97

🎯
Focusing
  • front-end/wordpress developer
  • Sylhet,Bangladesh
View GitHub Profile
@asufian97
asufian97 / style.css
Created February 28, 2018 01:21
css main style default content
/*
* Title: Eventus Design - HTML Template
* Author: VicThemes
*/
/* --------------------------------------------------------
@asufian97
asufian97 / normalize.css
Created February 28, 2018 01:17
css normalize css
/*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */
/**
* 1. Change the default font family in all browsers (opinionated).
* 2. Prevent adjustments of font size after orientation changes in IE and iOS.
*/
html {
font-family: sans-serif; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
@asufian97
asufian97 / gigs adds on seo
Created February 27, 2018 02:42
those link are increase visitor website or fiverr gig
https://pingomatic.com/
https://www.pingmylinks.com/
https://www.pingmyurls.com/
@asufian97
asufian97 / wp-nav.php
Created January 6, 2018 02:31
add some class on wp_nav menu
\\add custom class into <ul> tag
function atg_menu_classes($classes, $item, $args) {
if($args->theme_location == 'header_menu') {
$classes[] = 'nav-item';
}
return $classes;
}
add_filter('nav_menu_css_class','atg_menu_classes',1,3);
//add custom class into <ul><li><a> means a tag
register taxonomy
add_action('init', 'wpshout_register_taxonomy');
function wpshout_register_taxonomy() {
$args = array(
'hierarchical' => true,
'label' => 'Awesome Taxonomy',
);
register_taxonomy( 'awesome_taxonomy', array( 'post', 'slider', 'awesome' ), $args );
$args = array(
@asufian97
asufian97 / all board result.txt
Created December 30, 2017 09:03
psc,jsc and ssc result
Board PSC jsc All Result
##########কিভাবে JSC/JDC ও PSC পরীক্ষার ফলাফল দেখবেন। কালেকট→→টেক মাসটার বিডি
🔰🔰 JSC/JDC র ফলাফল দেখার জন্য 🔰🔰
#এখান থেকে রেজিঃ নাম্বার ছাড়া ফলাফল দেখতে পারবেন ⏬
http://eboardresults.com/app/stud/
#এখান থেকে রেজিঃ নাম্বার দিয়ে ফলাফল দেখতে পারবেন⏬
http://www.educationboardresults.gov.bd/
#এখান থেকে সব স্কুল এর ফলাফলের জন্য⏬
http://eboardresults.com/app/stud/?rtype
বা
@asufian97
asufian97 / function.php
Last active December 28, 2017 02:22
wordpress theme cutsomizer api
<?php
function my_customizer($wp_customize ){
$wp_customize->add_setting('header_logo',array(
'default' => '#000',
'transport' => 'refresh'
));
$wp_customize->add_section('my_theme_section',array(
@asufian97
asufian97 / all.php
Created December 14, 2017 03:03
iso or mixitup dynamic tab in wordpress,সহজেই এটা দিয়ে করা যাবে পোর্টফলিও ট্যাব।
//এটা কাস্টম পোস্ট এ বসবে , অব্যই ফানশন এর ভিতর হবে।
$labels = array(
'name' => __( 'Portfolio','webdgallery'),
'singular_name' => __( 'Portfolio','webdgallery'),
'add_new' => __( 'Add New','webdgallery' ),
'add_new_item' => __( 'Add New Work','webdgallery' ),
'edit_item' => __( 'Edit Work','webdgallery'),
'new_item' => __( 'New Work','webdgallery'),
'view_item' => __( 'View Work','webdgallery'),
'search_items' => __( 'Search Portfolio','webdgallery'),
@asufian97
asufian97 / cmb2.php
Created December 6, 2017 14:50
add hook and display metabox on custom post and page,
//function.php
<?php
add_action( 'cmb2_admin_init', 'cmb2_sample_metaboxes' );
/**
* Define the metabox and field configurations.
*/
function cmb2_sample_metaboxes() {
// Start with an underscore to hide fields from custom fields list
$prefix = '_yourprefix_';
@asufian97
asufian97 / custom-field
Last active December 6, 2017 01:57
add custom field on specific page
echo get_post_meta(get_the_ID,'$id'true);