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( 'prima_get_setting_calltoaction_text', 'prima_custom_calltoaction_text' ); | |
function prima_custom_calltoaction_text( $text ) { | |
/* call to action text on homepage */ | |
if ( is_home() || is_front_page() ) | |
$text = 'Get free shipping now!'; | |
/* call to action text on shop page */ | |
if ( is_shop() ) | |
$text = 'Get 10% discount when you purchase $100 or more!'; |
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
/* show mobile menu button */ | |
.mobile-icon-nav { | |
display: block !important; | |
} | |
/* show mobile cart button */ | |
.mobile-icon-cart { | |
display: block !important; | |
} | |
/* centering header logo / title */ | |
#header-title, |
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
// events slider - detail background | |
.home-slider-events .slide-event-detail { | |
background: rgba(28, 171, 197, 0.85); | |
} | |
// event list - date box (top left) | |
.tribe-events-list .tribe-events-event-date { | |
background: rgba(62, 201, 206, 0.64); | |
} |
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 | |
/* Remove Default Genesis Loop Output */ | |
remove_action( 'genesis_entry_header', 'genesis_do_post_format_image', 4 ); | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 ); |
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
if ( $post->post_parent ) | |
{ | |
wp_redirect( get_permalink( $post->post_parent ), 301 ); | |
} | |
else | |
{ | |
wp_redirect( site_url(), 301 ) ); | |
} | |
die(); |
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 | |
add_filter("the_content", "the_content_filter"); | |
function the_content_filter($content) { | |
// array of custom shortcodes requiring the fix | |
$block = join("|",array("col","shortcode2","shortcode3")); | |
// opening tag |
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 custom background color for featured header in the homepage only */ | |
body.home #header-featured { | |
background: #F00; | |
} |
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
/* Change the width of header title and menu. */ | |
/* #header-title (25%) + #header-menu (75%) = 100% */ | |
#header-title { | |
width: 25%; | |
} | |
#header-menu { | |
width: 75%; | |
} | |
/* Default logo image (left aligned). */ |
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-title { | |
width: 35%; | |
} | |
#header-menu { | |
width: 65%; | |
} |
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 ul.products li.product, .woocommerce-page ul.products li.product { | |
text-align:center; | |
} | |
.woocommerce .products .star-rating, .woocommerce-page .products .star-rating { | |
float:none; | |
display:block; | |
margin-left:auto; | |
margin-right:auto; | |
} |