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 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 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_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 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
/* | |
* 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 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
define( 'FREELANCER_SCRIPT_DEBUG' , true ); |
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
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 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 wp_enqueue_script( 'jquery-ui-draggable' ); ?> |
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
Custom Hookbox: | |
Name - Custom Toggle Icon | |
Setup as "Shortcode" | |
Code: | |
<div class="responsive-menu-icon"> | |
<i class="fa fa-ellipsis-h" aria-hidden="true"></i> |