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_action( 'travelify_footer', 'travelify_footer_info', 30 ); | |
/** | |
* function to show the footer info, copyright information | |
*/ | |
function travelify_footer_info() { | |
$output = '<div class="copyright">'.__( 'Copyright ©', 'travelify' ).' '.'[the-year] [site-link]'.' '.__( 'Theme by', 'travelify' ).' '.'[th-link]'.'</div><!-- .copyright -->'; | |
echo do_shortcode( $output ); | |
} |
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
jQuery(window).load(function () { | |
var transition_effect = travelify_slider_value.transition_effect; | |
var transition_delay = travelify_slider_value.transition_delay; | |
var transition_duration = travelify_slider_value.transition_duration; | |
jQuery('.slider-cycle').cycle({ | |
fx: transition_effect, | |
pager: '#controllers', | |
activePagerClass: 'active', | |
timeout: transition_delay, | |
speed: transition_duration, |
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
// Bootstrap specific functions and styling | |
// first set the body to hide and show everything when fully loaded | |
jQuery(document.body).hide(); | |
jQuery(document).ready(function(){ | |
jQuery(".comment-reply-link").addClass("btn btn-sm btn-default"); | |
jQuery("#submit").addClass("btn btn-default"); | |
jQuery(".wpcf7-submit").addClass("btn btn-default"); | |
jQuery(".wp-caption").addClass("thumbnail"); |
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
I will leave this code here to avoid encoding issues you might face when copying from Gmail | |
You can create flexslider customizations by creating a new file in child theme and enqueue it like this: | |
add_action( 'wp_enqueue_scripts', 'sparkling_child_script' ); | |
function sparkling_child_script() { | |
wp_enqueue_script( 'sparkling_child_slider', get_stylesheet_directory_uri() . '/js/newflex.js', array( 'jquery' ), '2.2.2', true ); | |
} |
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> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<p> | |
This is an amazing text because has a custom font. | |
</p> | |
</body> |
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
p { | |
font-family: Arial,Helvetica,sans-serif; | |
} | |
@media only screen and (min-width: 980px) { | |
@font-face { | |
font-family: "OctinSports"; | |
src: url("fonts/octinsports.eot"); | |
src: url("fonts/octinsports.eot?#iefix") format("embedded-opentype"), |
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
@font-face { | |
font-family: "OctinSports"; | |
src: url("fonts/octinsports.eot"); | |
src: url("fonts/octinsports.eot?#iefix") format("embedded-opentype"), | |
url("fonts/octinsports.woff") format("woff"), | |
url("fonts/octinsports.ttf") format("truetype"), | |
url("fonts/octinsports.svg#OctinSports") format("svg"); | |
font-weight: normal; | |
font-style: normal; | |
} |
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
<!--[if IE]> | |
<link rel="stylesheet" href="css/fonts.min.css"> | |
<![endif]--> |
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
<!--[if !IE]><!--> | |
<script> | |
if (Function('/*@cc_on return document.documentMode===10@*/')() && window.innerWidth >= 980) { | |
var link = document.createElement('link'); | |
link.rel = 'stylesheet'; | |
link.href = 'css/fonts.min.css'; | |
document.getElementsByTagName('head')[0].appendChild(link); | |
} |
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 | |
function my_shortcode_function() { | |
$i = '<p>Hello World!</p>'; | |
return $i; | |
} | |
add_shortcode('my-shortcode', 'my_shortcode_function'); | |
?> |
OlderNewer