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 | |
/** | |
* Copy this sample file to config.local.php and update it with any variables that you would like to override | |
*/ | |
return array( | |
'meta-box' => array( | |
'post_types' => array( | |
'post', | |
'page', | |
'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
<div class="tmpl-media-10 boldgrid-section dynamic-gridblock"> | |
<div class="container"> | |
<div class="row" style="padding-top: 20px; padding-bottom: 20px;"> | |
<div class="col-md-12 col-xs-12 col-sm-12 text-center col-lg-12"> | |
<div class="bg-video bg-video-2 color1-border-color" data-imhwpb-draggable="true"> | |
[embed height="630" width="1120"]https://vimeo.com/505335690[/embed] | |
</div> | |
</div> |
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 | |
// do not include above code | |
function si_filter_localeconv( $localeconv = array(), $doc_id = 0, $locale = '' ) { | |
switch ( $locale ) { | |
case 'en_GB': | |
$localeconv = egp_local_array(); | |
break; | |
case 'en_US': | |
$localeconv = us_local_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
<?php | |
add_action( 'wp_head', 'my_unique_css_func_name' ); | |
function my_unique_css_func_name() { | |
?><style> | |
/* Your styles here */ | |
</style><?php | |
} |
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('admin_bar_menu', 'add_toolbar_items', 100); | |
function add_toolbar_items($admin_bar){ | |
$admin_bar->add_menu( array( | |
'id' => 'my-item', | |
'title' => 'My Item', | |
'href' => '#', | |
'meta' => array( | |
'title' => __('My Item'), | |
), | |
)); |
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( 'admin_menu', 'linked_url' ); | |
function linked_url() { | |
add_menu_page( 'linked_url', 'External link', 'read', 'my_slug', '', 'dashicons-text', 1 ); | |
} | |
add_action( 'admin_menu' , 'linkedurl_function' ); | |
function linkedurl_function() { | |
global $menu; | |
$menu[1][2] = "http://www.example.com"; | |
} |
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
/** | |
* Adjust the quantity input values | |
*/ | |
add_filter( 'woocommerce_quantity_input_args', 'jk_woocommerce_quantity_input_args', 10, 2 ); // Simple products | |
function jk_woocommerce_quantity_input_args( $args, $product ) { | |
if ( is_singular( 'product' ) ) { | |
$args['input_value'] = 1; // Starting value (we only want to affect product pages, not cart) | |
} | |
$args['max_value'] = 80; // Maximum value |
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 print_r($pageBannerImage); ?> |
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
jQuery(document).ready(function($){ | |
$(".site-title a").attr("href", "https://google.com"); | |
}); |
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
<div class="tmpl-about-6 boldgrid-section dynamic-gridblock background-parallax" style="background-position: 50% 50%; background-size: cover; background-image: url('https://demo2.cloudwp.dev/trial-8384w43w/wp-content/uploads/2022/10/ixlibrb-0.3.5q80fmjpgcropentropycstinysrgbw1600h900fitcrops11369019c2a9bb4375e46943072f1eab.jpg');" data-image-url="https://demo2.cloudwp.dev/trial-8384w43w/wp-content/uploads/2022/10/ixlibrb-0.3.5q80fmjpgcropentropycstinysrgbw1600h900fitcrops11369019c2a9bb4375e46943072f1eab.jpg"> | |
<div class="container"> | |
<div class="row hidden-md hidden-lg hidden-sm" style="padding-top: 0px; padding-bottom: 50px; border-width: 0px;"> | |
<div class="col-md-7 col-sm-5 col-xs-12 col-lg-7"></div> | |
</div> | |
<div></div> | |
<div class="row" style="padding-top: 0px;"> | |
<div class="col-md-5 col-sm-7 col-xs-12 col-lg-5"> | |
<div style="padding: 80px 5%;" class="bg-box-cover color5-background-color color-5-text-contrast bg-background-color bg-box"> | |
<h2 class="h1 color2-color" style="text-align: center; font-size: 4em;">A |