Skip to content

Instantly share code, notes, and snippets.

View muzahedul03's full-sized avatar

Muzahed Tamim muzahedul03

View GitHub Profile
@muzahedul03
muzahedul03 / function1.php
Created October 25, 2017 06:08
My Google AdSense Placement Plugin Function
function my_google_adsense_placement_function(){
$output='Your AdSense Code Here';
echo $output;
}
add_action('wp_head','my_google_adsense_placement_function');
@muzahedul03
muzahedul03 / page_if_else.php
Created March 1, 2017 07:29
How Create a page by WordPress in Using Php
<?php get_header(); ?>
<section id="inner-headline">
<div class="container">
<div class="col-md-12">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
@muzahedul03
muzahedul03 / wp_menu.php
Created March 1, 2017 07:15
How Create Dynamic WordPress Menu By php Using Function
<?php
include_once('inc/theme_files.php');
function felxo_theme_menus(){
register_nav_menus(array(
'main_menu' => 'Main menu',
'footer_menu' => 'Footer menu'
));
@muzahedul03
muzahedul03 / title_lang_charset2.php
Created February 27, 2017 12:37
How use language,title,Charset attributes in WordPress By PHP
<html <?php language_attributes();?>>
<meta charset="<?php bloginfo('charset');?>">
<title><?php wp_title( '|', true, 'right' ); ?></title>
@muzahedul03
muzahedul03 / function_js.php
Created February 27, 2017 05:46
How to Use JS file in Wordpress using Function
<?php
//includes all felxo_theme_file_css
function flexo_theme_file(){
//include jS file
wp_enqueue_script('jquery');
wp_enqueue_script('easing-js', get_template_directory_uri(). '/js/jquery.easing.1.3.js', array('jquery'), '1.3', true);
@muzahedul03
muzahedul03 / function_css.php
Created February 27, 2017 05:30
How Include CSS file in Wordpress using Function
<?php
//includes all felxo_theme_file_css
function flexo_theme_file(){
//inculde CSS file
wp_register_style('bootstrap', get_template_directory_uri(). '/css/bootstrap.min.css', array(), '3.1.0',all);
wp_register_style('fancybox', get_template_directory_uri(). '/css/fancybox/jquery.fancybox.css', array(), '3.1.0',all);
wp_register_style('jcarousel', get_template_directory_uri(). '/css/jcarousel.css', array(), '3.1.0',all);
@muzahedul03
muzahedul03 / function.php
Created February 26, 2017 13:33
How include child function file in master function
<?php
include_once('inc/theme-all.php');
?>
@muzahedul03
muzahedul03 / menus.php
Last active March 21, 2017 19:31
Register navigation in WordPress
<?php
register_nav_menus( array(
'pluginbuddy_mobile' => 'PluginBuddy Mobile Navigation Menu',
'footer_menu' => 'My Custom Footer Menu',
) );
?>