This file contains 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="#" 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(); |
This file contains 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
<style type="text/css"> | |
body { | |
font-family: arial; | |
} | |
table { | |
border: 1px solid #ccc; | |
width: 100%; | |
margin:0; |
This file contains 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
/*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']); |
This file contains 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
<style> | |
.wether_box { | |
min-height: 100px; | |
background: #35394b; | |
float: left; | |
width: 100%; | |
padding: 10px; | |
} | |
.title_area { |
This file contains 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
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'; |
This file contains 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> | |
<title></title> | |
<style type="text/css"> | |
.container { | |
background: rgba(0, 0, 0, 0.4); | |
text-align: center; | |
padding: 50px 0px; | |
position: relative; |
This file contains 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
//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(){ |
This file contains 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
Download wp plugin | |
............................................ | |
https://wordpress.org/plugins/qtranslate-x/ | |
header style sheet code | |
............................................ | |
<?php | |
$lang='en'; | |
$page='@'; |
This file contains 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 | |
$tax_terms = get_terms('product_cat', array( | |
'hide_empty' => false, | |
'parent' => 0 | |
)); | |
//print_r($tax_terms); | |
?> | |
<ul> | |
<?php | |
foreach ($tax_terms as $term_single) { |
OlderNewer