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 | |
/* | |
Shortcode practise | |
*/ | |
function query_shortcode($attr, $content = null) { | |
extract( shortcode_atts( array( | |
'type' => 'post', | |
'count' => 3, |
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 | |
require_once( get_template_directory() . '/inc/cs-framwork/cs-framework.php'); | |
function indst_tm_opt_mtbx($options){ | |
$options = array(); | |
$options[] = array( | |
'id' => 'indst_tm_slide_meta', | |
'title' => 'Slider Options', | |
'post_type' => 'inds-slider', |
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 // Slider Shortcode | |
function inds_owl_slider() { | |
register_post_type( 'inds-slider', array( | |
'labels' => array( | |
'name' => 'Sliders', | |
'add_new' => 'Add New Slider', | |
'add_new_item' => 'Add New Slider', | |
'edit_item' => 'Edit Slider', | |
), |
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 get_header(); ?> | |
<div class="content-outer-wrap"> | |
<div class="content-wrap"> | |
<div class="footer-wrap"> | |
<div class="content"> | |
<div class="col1"> | |
<div class='myimage-wrap'> | |
<div class='flower'></div> | |
<div class='imageframe'> | |
<div class="top-image"> |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule ^(.*)\.html$ $1.html [nc] | |
RewriteCond %{HTTP_HOST} !^www.greatamericanautotransportation.com$ [NC] | |
RewriteRule ^(.*)$ http://www.greatamericanautotransportation.com$1 [L,R=301] | |
</IfModule> | |
# BEGIN EXPIRES | |
<IfModule mod_expires.c> |
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 echo do_shortcode( '[contact-form-7 id="1234" title="Contact form 1"]' ); ?> |
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 | |
// [desktoponly] shortcode | |
add_shortcode('desktoponly', 'wp_snippet_desktop_only_shortcode'); | |
function wp_snippet_desktop_only_shortcode($atts, $content = null){ | |
if( !wp_is_mobile() ){ | |
return wpautop( do_shortcode( $content ) ); | |
} else { | |
return null; | |
} | |
} |
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
<div id="f1_container"> | |
<div id="f1_card" class="shadow"> | |
<div class="front face"> | |
<img src="/images/Windows%20Logo.jpg"/> | |
</div> | |
<div class="back face center"> | |
<p>This is nice for exposing more information about an image.</p> | |
<p>Any content can go here.</p> | |
</div> | |
</div> |
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
/* At first Upload your desire fonts the try it */ | |
@font-face { | |
font-family: "Arvo"; | |
src: url(http://www.example.com/wp-content/themes/your-theme/fonts/Arvo-Regular.ttf); | |
font-weight: normal; | |
} | |
/* Now you can use it in for your Html code something like this*/ |
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
<!-- Use this code where do you want to show your cart icon --> | |
<div class='my-cart'> | |
<a class="cart-contents" href="<?php echo wc_get_cart_url(); ?>" title="<?php _e('View Cart'); ?>"><?php echo sprintf ( _n( '%d item', '%d items', WC()->cart->get_cart_contents_count() ), WC()->cart->get_cart_contents_count() ); ?> - <?php echo WC()->cart->get_cart_total(); ?></a> | |
</div> | |
/* Here is css */ | |
.cart-contents::before { | |
font-family: WooCommerce; |
OlderNewer