- http://www.codanada.com -- Coming soon!
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
# Error Message: | |
# | |
# Access to Font at '...' from origin '...' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header | |
# is present on the requested resource. Origin '...' is therefore not allowed access. | |
# | |
# -------------------------------------- | |
<IfModule mod_headers.c> | |
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$"> | |
Header set Access-Control-Allow-Origin "*" | |
</FilesMatch> |
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
function fl_builder_rewrite_cdn_urls( $css ) { | |
return str_ireplace( 'example.com', 'example-5782.kxcdn.com', $css ); | |
} | |
add_filter( 'fl_builder_render_css', 'fl_builder_rewrite_cdn_urls' ); |
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
// In BB, you can embed this to the page by going to Tools > Layout CSS/JavaScript > JavaScript | |
jQuery(document).ready(function($){ | |
// Change the Labels | |
$('#mybb-contact-form label[for="fl-name"]').text('NAME Label here...'); | |
$('#mybb-contact-form label[for="fl-email"]').text('EMAIL Label here...'); | |
$('#mybb-contact-form label[for="fl-phone"]').text('PHONE Label here...'); | |
$('#mybb-contact-form label[for="fl-message"]').text('MESSAGE Label here...'); | |
// Change the placeholders |
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
/** | |
* First, you need to setup this CSS | |
******************************************* | |
.fl-sticky { | |
position: fixed !important; | |
width: 100% !important; | |
left: 0 !important; | |
top: 0 !important; | |
z-index: 9999 !important; | |
border-top: 0 !important; |
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 | |
if( !function_exists('bblocal_post_schema_meta')){ | |
// Copied from FLTheme::post_schema_meta(); | |
// This function is invoked at the last line of this file. | |
function bblocal_post_schema_meta() | |
{ | |
// General Schema Meta | |
echo '<meta itemscope itemprop="mainEntityOfPage" itemid="' . get_permalink() . '" />'; | |
echo '<meta itemprop="datePublished" content="' . get_the_time('Y-m-d') . '" />'; | |
echo '<meta itemprop="dateModified" content="' . get_the_modified_date('Y-m-d') . '" />'; |
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
add_action( 'wp_print_scripts', function(){ | |
wp_dequeue_script( 'font-awesome' ); | |
}); | |
add_action('wp_head', function(){ | |
?> | |
<script id="bblocal-font-awesome" type='text/javascript'> | |
var fontAwesomeURL = <?php echo "'" . FL_THEME_URL . "/css/font-awesome.min.css" . "';"; ?> | |
function loadCSS(e, t, n) { |
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
@media (max-width: 768px){ | |
#bblocal-content-slider .fl-slide-foreground{ | |
margin-top: -200px; | |
} | |
#bblocal-content-slider .fl-slide-content{ | |
background-color: rgba(0,0,0,0.2); | |
} | |
} |
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
add_filter( 'fl_builder_render_css', function( $css ) { | |
return str_ireplace( 'example.com', 'cdn-url.example.com', $css ); | |
}); |
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
// | |
// Content Slider ID = "bbcw-content-slider" | |
// | |
jQuery(document).ready(function($){ | |
var $slider = $('#bbcw-content-slider .fl-content-slider-wrapper').data('bxSlider') | |
var slideCount = $slider.getSlideCount(); | |
$slider.goToSlide( Math.floor( Math.random() * slideCount ) ); | |
}); |