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
/** | |
* Exclude the featured image from appearing in the product gallery, if there's a product gallery. | |
* | |
* @param array $html Array of html to output for the product gallery. | |
* @param array $attachment_id ID of each image variables. | |
*/ | |
function ava_woocommerce_remove_featured_image( $html, $attachment_id ) { | |
global $post, $product; |
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
ava_customizer_default__black | |
ava_customizer_default__white | |
ava_customizer_default__accent | |
ava_customizer_default__lightgray | |
ava_customizer_default__lightyellow |
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
.header .active, | |
.header a:hover, | |
.logo_text:hover, | |
.site-archive a:hover, | |
.current-menu-item a, | |
.portfolio .project-meta a:hover { | |
text-decoration: underline !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 | |
/** | |
* Third Party Styles | |
* More info: https://github.com/grappler/wp-standard-handles | |
*/ | |
// Incorrect | |
wp_enqueue_style( 'prefix-font-awesome', get_template_directory_uri() . '/css/font-awesome.css', array(), '4.2.0', 'all' ); | |
// Corrrect |
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 | |
// Functions | |
function prefix_setup() | |
// Classes | |
class Prefix_Class {} | |
// Global Variables | |
global $prefix_passengers; |
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 | |
// Use anytime HTML element encloses a section of data: | |
echo esc_html( $no_html ); | |
// Use on all URLs, including those in the 'src' and 'href' attributes of an HTML element: | |
<img src="<?php echo esc_url( $escaped_url ); ?>" /> | |
// Use for inline Javascript: | |
<a href="#" onclick="<?php echo esc_js( $escaped_js ); ?>"><?php esc_html__( 'Click Here', 'text-domain' ); ?></a> |
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 | |
// These are incorrect: | |
__( 'Some String', 'text-domain' ); _e( 'Some string', 'text-domain' ); | |
// Instead, use: | |
esc_html__( 'Some String', 'text-domain' ); esc_html_e( 'Some String', 'text-domain' ); | |
/** | |
* For strings with necessary HTML, use the following: | |
* Note that I'm only including the actual allowed HTML for this specific string. |
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 | |
// Include a plugin from the WordPress Repository: | |
array( | |
'name' => esc_html__( 'WooCommerce', 'text-domain' ), | |
'slug' => 'woocommerce', | |
'required' => false, | |
), | |
// Include a plugin bundled within a WordPress theme: | |
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
if ( ! function_exists( 'prefix_fonts_url' ) ) : | |
/** | |
* Register Google fonts. | |
* | |
* @return string Google fonts URL for the theme. | |
*/ | |
function prefix_fonts_url() { | |
$fonts_url = ''; | |
$fonts = array(); | |
$subsets = ''; |
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
<use xlink:href="<?php echo is_customize_preview() ? esc_url( get_template_directory_uri() . '/images/sprite.svg' ) : '' ; ?>#sprite">"></use> |