View fuctions.php
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
// The first URL is your actual URL. The second is your CDN url. | |
add_filter( 'fl_builder_render_css', function( $css ) { | |
$css = str_replace( 'https://pressavenue.com/', 'https://your.cdn.com/', $css ); | |
return $css; | |
}); |
View functions.php
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
//enqueues our external font awesome stylesheet | |
function enqueue_our_required_stylesheets(){ | |
wp_enqueue_style('font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/5.7.2/css/font-awesome.min.css'); | |
} | |
add_action('wp_enqueue_scripts','enqueue_our_required_stylesheets'); |
View functions.php
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
//enqueues our locally supplied font awesome stylesheet | |
function enqueue_our_required_stylesheets(){ | |
wp_enqueue_style('font-awesome', get_stylesheet_directory_uri() . '/css/font-awesome.css'); | |
} | |
add_action('wp_enqueue_scripts','enqueue_our_required_stylesheets'); |
View functions.php
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
//Beaver Builder - Replace your actual URL with the CDN URL for CSS purposes | |
// You would adjust the URLs to fit your URLs. The first URL is your actual URL. The second is your CDN url. | |
add_filter( 'fl_builder_render_css', function( $css ) { | |
$css = str_replace( 'https://pressavenue.com/', 'https://your-amazing-cdn-uwl-here.com/', $css ); | |
return $css; | |
}); |
View posts.php
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
Shortcode Example | |
[fl_year] 2018 | |
[fl_year format="y"] 18 | |
[fl_year format=“F j, Y”] May 26, 2018 | |
[fl_year format=“l, F j, Y”] Saturday, May 26, 2018 | |
[fl_year format=“m-d-Y”] 05-25-2018 | |
[fl_year format=“n-j-y”] 5-25-18 | |
[fl_year format=“d.m.y”] 25.05.18 |
View posts.php
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
[fl_year] |
View functions.php
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_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); | |
function woo_remove_product_tabs( $tabs ) { | |
unset( $tabs['additional_information'] ); // Remove the additional information tab | |
return $tabs; | |
} |
View functions.php
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_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); | |
function woo_remove_product_tabs( $tabs ) { | |
unset( $tabs['description'] ); // Remove the description tab | |
unset( $tabs['reviews'] ); // Remove the reviews tab | |
unset( $tabs['additional_information'] ); // Remove the additional information tab | |
return $tabs; | |
} |
View functions-plugin.php
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
/*------------------------------------- | |
Move the Yoast SEO Meta Box to the Bottom of the edit screen in WordPress | |
---------------------------------------*/ | |
function yoasttobottom() { | |
return 'low'; | |
} | |
add_filter( 'wpseo_metabox_prio', 'yoasttobottom'); |
View additional-or-custom-css.css
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 this to the Additional CSS area in the customizer or to the style.css in your child theme - More info and help at www.PressAvenue.com | |
or on the blog post https://pressavenue.com/create-fixed-top-bar-menu-beaver-builder | |
*/ | |
.fl-page-bar { | |
position: fixed; | |
width: 100%; | |
z-index: 999; | |
} | |
.fl-page-header-fixed { |
NewerOlder