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
array( | |
'freelancer_before', | |
'freelancer_after', | |
'freelancer_before_header', | |
'freelancer_header', | |
'freelancer_after_header', | |
'freelancer_in_header', | |
'freelancer_in_header_main', | |
'freelancer_site_branding_logo', | |
'freelancer_site_branding_text', |
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
define( 'FREELANCER_SCRIPT_DEBUG' , 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
/* | |
* Example of the freelancer_google_fonts_url function | |
* with multiple Google Fonts and multiple subsets. | |
* Note that the fonts are required, but subsets are optional | |
* and only necessary if you're using non-default/custom subset | |
* (i.e.. something other than "latin"). | |
* | |
$google_fonts_url = freelancer_google_fonts_url( | |
// An array of Google fonts with their respective styles. | |
array( |
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( 'wp_enqueue_scripts', 'freelancer_child_enqueue_google_fonts' ); | |
/* | |
* Enqueue custom google fonts. | |
*/ | |
function freelancer_child_enqueue_google_fonts() { | |
/* | |
* Example of the freelancer_google_fonts_url function | |
* with multiple Google Fonts and multiple subsets. | |
* Note that the fonts are required, but subsets are optional |
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 a single body class through a string. | |
freelancer_add_body_classes( 'my-custom-body-class' ); | |
// Add multiple body classes through an array. | |
freelancer_add_body_classes( array( 'my-custom-body-class', 'another-body-class' ) ); |
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( 'wp_head', 'my_custom_layout' ); | |
/* | |
* This would assign a No Sidebar layout to all "Pages" | |
* on your site, but have no effect on any other area. | |
*/ | |
function my_custom_layout() { | |
// If NOT a "Page" then do nothing. | |
if ( ! is_page() ) | |
return; |
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
// Define a Right Sidebar layout. | |
add_filter( 'freelancer_layout', 'freelancer_return_right_sidebar' ); | |
// Define a Left Sidebar layout. | |
add_filter( 'freelancer_layout', 'freelancer_return_left_sidebar' ); | |
// Define a No Sidebar layout. | |
add_filter( 'freelancer_layout', 'freelancer_return_no_sidebar' ); | |
// Define a No Sidebar Narrow layout. |
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
// Hide the Theme Settings admin page from the WP Dashboard sidebar. | |
define( 'FREELANCER_SETTINGS_PAGE_HIDE', true ); | |
// Hide the Theme License admin page from the WP Dashboard sidebar. | |
define( 'FREELANCER_LICENSE_PAGE_HIDE', true ); |