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
Option 1: This option uses one third of available width for image and two third for the content area. (default is 50%) | |
@media screen and (min-width: 981px){ | |
.et_pb_column_3_4 .et_pb_post_extra.el_dbe_full_width .post-media{ | |
width: calc((100% - 120px) / 3); | |
} | |
.et_pb_column_3_4 .et_pb_post_extra.el_dbe_full_width .post-content{ | |
width: calc((100% - 120px) / 3 * 2); | |
} | |
} |
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-tabs .et_pb_tab_active a { | |
color: #ffffff!important; | |
} | |
.custom-tabs ul.et_pb_tabs_controls { | |
float: left; | |
width: 30%; | |
display: block; | |
background: transparent; | |
} |
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
function remove_divi_post_status( $post_states, $post ) { | |
// Make sure that $post_states is an array. Third party plugin might modify $post_states and makes it null | |
// which create various issue (i.e. Piklist + Having a page configured as a static page) | |
if ( ! is_array( $post_states ) ) { | |
$post_states = array(); | |
} | |
if ( et_pb_is_pagebuilder_used( $post->ID ) ) { | |
// Remove Divi if existing | |
$key = array_search( 'Divi', $post_states ); |
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
Default media and container width is 50%. The following CSS snippet will change the media container width to 1/4 and post content to 3/5. | |
@media screen and (min-width: 981px){ | |
.et_pb_column_4_4 .et_pb_post_extra.el_dbe_full_width .post-media { | |
width: calc((100% - 120px)/ 4); | |
} | |
.et_pb_column_4_4 .et_pb_post_extra.el_dbe_full_width .post-content { | |
width: calc((100% - 120px)/ 4*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
$postbg = get_post_meta( get_the_ID(), 'postbg', true); | |
if( ! empty( $postbg ) ) { | |
$postbg = get_post_meta($post->ID, 'postbg', true); | |
$posts .= '<div class="post-content" style="background-color: '.$postbg.' ;">'; | |
} else{ | |
$posts .= '<div class="post-content">'; | |
} |
OlderNewer