This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hide admin-bar from frontend when logged in | |
add_action('admin_bar_init', 'my_admin_bar'); | |
if(!function_exists('my_admin_bar')){ | |
function my_admin_bar() | |
{ | |
remove_action('wp_head', '_admin_bar_bump_cb'); | |
add_action ('wp_head', '_admin_bar_new'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
And in required place add | |
<?php get_template_part('layouts/templates/searchform', 'header'); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
**Hide a particular metabox id from a page id | |
**Inspirations: | |
** 1. http://www.farinspace.com/page-specific-wordpress-meta-box/ | |
** 2. http://wordpress.stackexchange.com/questions/50732/possible-to-limit-custom-meta-boxes-depending-on-what-page-template-is-used | |
** 3. http://codex.wordpress.org/Plugin_API/Action_Reference/admin_head | |
** I have to hide 'test_image_id' from the page id 38 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function google_map_js(){?> | |
<?php if (is_page(403)) { ?> | |
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// [Ref:][http://www.remicorson.com/mastering-woocommerce-products-custom-fields/] | |
/*=================================================================== | |
== FUNCTIONS FOR FREE PRODUCT & TOTAL PRODUCT | |
====================================================================*/ | |
/****************CUSTOM FIELD FOR CUSTOM GENERAL FIELD**************************************************/ | |
// Add Free Number Custom Field in Woocommerce | |
//Display Field |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Easy Digital Downloads - Sample Gateway | |
Plugin URL: http://easydigitaldownloads.com/extension/sample-gateway | |
Description: A sample gateway for Easy Digital Downloads | |
Version: 1.0 | |
Author: Pippin Williamson | |
Author URI: http://pippinsplugins.com | |
Contributors: mordauk | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
<title>Google Maps Multiple Markers</title> | |
<script src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.10.1.min.js"></script> | |
</head> | |
<body> | |
<div id="map" style="width: 500px; height: 400px;"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Div Shortcode | |
Plugin URI: http://www.billerickson.net | |
Description: Allows you to create a div by using the shortcodes [div] and [end-div]. To add an id of "foo" and class of "bar", use [div id="foo" class="bar"]. | |
Author: Bill Erickson | |
Version: 2.1 | |
Author URI: http://www.billerickson.net | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.section-front-about-container .latest-news | |
{ | |
margin : 0; | |
padding : 0; | |
} | |
.section-front-about-container .latest-news > ul | |
{ | |
list-style : none; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="#testimonial-01" class="go-down scroll" rel="testimonial-01_link"><i class="fa fa-angle-down"></i></a> | |
rel="testimonial-01_link" <-- is the next div testimonial-01 id |