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
A mobile menu – or a hamburger menu as it is often called – does not only have to be used on mobile devices and small screens. You could use it for display on desktop and larger screens as well. | |
To do this in Divi you’ll have to insert a piece of custom CSS into your Child Theme or directly into your ePanel custom css field. | |
@media only screen and ( min-width:980px ) { | |
#top-menu-nav { display:none; } | |
#et_mobile_nav_menu { display:block; } | |
} | |
.mobile_menu_bar:before { | |
content: "\61"; | |
font-size: 36px; |
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
#main-header { display:none; } | |
#page-container { padding-top:0px !important } | |
https://www.wpthemefaqs.com/hide-the-divi-theme-header/ |
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
/*Remove bottom border under logo and nav*/ | |
#main-header{ | |
-webkit-box-shadow:none !important; | |
-moz-box-shadow:none !important; | |
box-shadow:none !important; | |
} | |
REF - https://www.wpthemefaqs.com/removing-the-divi-header-bottom-border/ |
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
/*Turn Off featured img in posts*/ | |
.post-meta+img { | |
display: none !important; | |
} |
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
##From https://css-tricks.com/snippets/php/automatic-copyright-year/## | |
/*Current year only*/ | |
© <?php echo date("Y") ?> | |
//With start year | |
© 2008-<?php echo date("Y") ?> | |
Start date with error protection | |
<?php function auto_copyright($year = 'auto'){ ?> |
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 to wp-config.php | |
define( 'DISALLOW_FILE_EDIT', true ); |
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
//Shortcode to make the blurb icon a call feature | |
tel:+15555555555 |
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
<!-- Replace this | |
<span id="et-info-phone"><?php echo esc_html( $et_phone_number ); ?></span>--> | |
<span id="et-info-phone"> | |
<a href="tel:<?php echo esc_html( $et_phone_number ); ?>"> | |
<?php echo esc_html( $et_phone_number ); ?> | |
</a> | |
</span> |
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
//Code from Mayur @ elegant themes, http://www.agentwp.com/ | |
<?php | |
function override_parent() { | |
remove_shortcode( 'et_pb_fullwidth_portfolio', 'et_pb_fullwidth_portfolio' ); | |
add_shortcode( 'et_pb_fullwidth_portfolio', 'et_pb_fullwidth_portfolio_custom' ); | |
} | |
add_action( 'after_setup_theme', 'override_parent' ); | |
function et_pb_fullwidth_portfolio_custom( $atts ) { | |
extract( shortcode_atts( array( | |
'title' => '', |
NewerOlder