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
// CUSTOM ADMIN LOGIN HEADER LOGO | |
function my_custom_login_logo() | |
{ | |
echo '<style type="text/css"'> h1 a { background-image:url(' . get_stylesheet_directory_uri() . '/assets/images/logo_admin.png) !important; } '</style'>'; | |
} | |
add_action('login_head', 'my_custom_login_logo'); |
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( 'your-post-type_post_type_args', '_my_rewrite_slug' ); // Here replace "your-post-type" with the actual post type, e.g., "cherry_services", "cherry-projects" | |
function _my_rewrite_slug( $args ) { | |
$args['rewrite']['slug'] = 'our-services'; // Replace "our-services" with your preferable slug | |
return $args; | |
} |
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
/** | |
* WooCommerce Extra Feature | |
* -------------------------- | |
* | |
* Change number of related products on product page | |
* Set your own value for 'posts_per_page' | |
* | |
*/ | |
function woo_related_products_limit() { | |
global $product; |
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
wp.blocks.registerBlockType('my_new-block', { | |
title: 'My Extra Block', | |
icon: 'heart', | |
category: 'common', | |
attributes: { | |
content: {type: 'string'} | |
}, | |
edit: function(props) { | |
function somename(event) { | |
props.setAttributes({content: event.target.value}) |
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
<?php | |
/** | |
*Plugin name: Extra | |
*Author: My name | |
*Version: 1.0.0 | |
*/ | |
function loadMyBlockFiles() { | |
wp_enqueue_script( | |
'my-test-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
@media (max-width: 764px) { | |
.wp-block-columns { | |
display: block; | |
} | |
} |
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
<?php | |
$done=false; | |
if ( function_exists( 'jet_theme_core') ) { | |
$done = jet_theme_core() ->do_location( 'header' ); | |
} | |
?> | |
<?php | |
if ( ! $done ) { | |
astra_header(); | |
} |
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
<header class="entry-header"> | |
<?php $utility->attributes->get_title( array( | |
'class' => 'entry-title', | |
'html' => '<h3 %1$s>%4$s</h3>', | |
'echo' => true, | |
) ); | |
?> | |
</header> |
NewerOlder