Skip to content

Instantly share code, notes, and snippets.

View vishnusomanus's full-sized avatar

Vishnu Soman U S vishnusomanus

View GitHub Profile
<a href="#" class="scrollToTop" style=" width: 77px; padding: 5px; text-align: center; background-color: #c42e2f; font-weight: bold; color: #ffffff; text-decoration: none; position: fixed; bottom: 60px; right: 40px; display: none; border-radius: 50px;"><i class="fa fa-chevron-up" aria-hidden="true"></i></a>
<script type="text/javascript">
jQuery(document).ready(function(){
//Check to see if the window is top if not then display button
jQuery(window).scroll(function(){
if (jQuery(this).scrollTop() > 100) {
jQuery('.scrollToTop').fadeIn();
} else {
jQuery('.scrollToTop').fadeOut();
<style type="text/css">
body {
font-family: arial;
}
table {
border: 1px solid #ccc;
width: 100%;
margin:0;
function custom_wp_nav_menu($var) {
return is_array($var) ? array_intersect($var, array(
//List of allowed menu classes
'current_page_item',
'current_page_parent',
'current_page_ancestor',
'first',
'last',
'vertical',
'horizontal'
/*Adding table titles and unset default titles*/
add_filter('manage_waitlist_posts_columns' , 'add_waitlist_columns');
function add_waitlist_columns($columns) {
unset($columns['author']);
unset($columns['seodesc']); //unset fields
unset($columns['seotitle']);
<style>
.wether_box {
min-height: 100px;
background: #35394b;
float: left;
width: 100%;
padding: 10px;
}
.title_area {
function getVideoUrlAction( $id = null,$quality='high' ){
$return = array();
$quality_index = array('high'=>0,'medium'=>0,'small'=>0);
$videoID = empty( $id ) ? ( $this->getRequest()->getParam('videoid') ) : $id ;
$xmlReqURL = 'http://www.youtube.com/get_video_info?&video_id='.$videoID.'&asv=3&el=detailpage&hl=en_US';
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
.container {
background: rgba(0, 0, 0, 0.4);
text-align: center;
padding: 50px 0px;
position: relative;
//add in function.php
<?php
add_action( 'add_meta_boxes', 'flatfee_field' );
function flatfee_field() {
global $post;
if($post->ID == '40')//40 is page id
add_meta_box("flatfee", "Flatfee", "add_flatfee", "page", "normal", "high");
}
function add_flatfee(){
Download wp plugin
............................................
https://wordpress.org/plugins/qtranslate-x/
header style sheet code
............................................
<?php
$lang='en';
$page='@';
<?php
$tax_terms = get_terms('product_cat', array(
'hide_empty' => false,
'parent' => 0
));
//print_r($tax_terms);
?>
<ul>
<?php
foreach ($tax_terms as $term_single) {