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 Divi sidebar from all WooCommerce Product pages (as well as Shop and Category pages) | |
*/ | |
function mytheme_divi_output_content_wrapper_end() { | |
echo ' | |
</div> <!-- #left-area --> | |
</div> <!-- #content-area --> | |
</div> <!-- .container --> |
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
.background-fade .et_pb_slide.et_pb_bg_layout_dark:after { | |
position: absolute; | |
content: ''; | |
top: 0; | |
right: 0; | |
left: 0; | |
bottom: 0; | |
animation: customFadeToDark 3s ease-out 1s 1 both; | |
-webkit-animation: customFadeToDark 3s ease-out 1s 1 both; | |
} |
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
.background-fade .et_pb_slide.et_pb_bg_layout_light:after { | |
position: absolute; | |
content: ''; | |
top: 0; | |
right: 0; | |
left: 0; | |
bottom: 0; | |
background-color:rgba(255,255,255,.7); | |
} |
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
.background-fade .et_pb_slide:after { | |
position: absolute; | |
content: ''; | |
top: 0; | |
right: 0; | |
left: 0; | |
bottom: 0; | |
background-color:rgba(0,0,0,.5); | |
} |
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 all and (min-width: 768px) { | |
.et_pb_posts img, .archive .post img, .category .post img, .search .post img, .blog .post img { | |
float: left; | |
margin-right: 1em; | |
} | |
.et_pb_posts article:after, .archive article:after, .category article:after, .search article:after, .blog article:after { /* Clear floated image */ | |
content: ""; | |
display: table; | |
clear: both; | |
} |
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 all and (min-width: 768px) { | |
.et_pb_posts img { | |
float: left; | |
margin-right: 1em; | |
} | |
.et_pb_posts article:after { /* Clear floated image */ | |
content: ""; | |
display: table; | |
clear: both; | |
} |
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 | |
function mycustom_featured_width( ) { return 320; /* Custom featured post image width */ } | |
add_filter( 'et_pb_blog_image_width', 'mycustom_featured_width'); | |
add_filter( 'et_pb_index_blog_image_width', 'mycustom_featured_width'); | |
function mycustom_featured_height( ) { return 260; /* Custom featured post image height */ } | |
add_filter( 'et_pb_blog_image_height', 'mycustom_featured_height'); | |
add_filter( 'et_pb_index_blog_image_height', 'mycustom_featured_height'); | |
function mycustom_featured_size( $image_sizes ) { |
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 | |
function mycustom_featured_width( ) { return 320; /* Custom featured post image width */ } | |
add_filter( 'et_pb_blog_image_width', 'mycustom_featured_width'); | |
function mycustom_featured_height( ) { return 260; /* Custom featured post image height */ } | |
add_filter( 'et_pb_blog_image_height', 'mycustom_featured_height'); | |
function mycustom_featured_size( $image_sizes ) { | |
$custom_size = mycustom_featured_width() . 'x' . mycustom_featured_height(); |
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 | |
/** | |
* Menu items of categories and forums should be hidden if the user doesn't belong to the Group | |
*/ | |
if ( !is_admin() ) { | |
add_filter( 'wp_get_nav_menu_items', 'lenspiration_hide_groups_restricted_menu_items', 999, 3 ); | |
} | |
function lenspiration_hide_groups_restricted_menu_items( $items = null, $menu = null, $args = null ) { | |
$user_id = get_current_user_id(); | |
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 | |
if($_POST) { | |
$postdata = http_build_query($_POST); | |
$opts = array('http' =>array('method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata)); | |
$context = stream_context_create($opts); | |
$result = file_get_contents("https://mynewdomain.com$_SERVER[REQUEST_URI]", false, $context); | |
echo $result; | |
} else { | |
header("Location: https://mynewdomain.com$_SERVER[REQUEST_URI]"); | |
exit(); |