Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View w5d's full-sized avatar

W5 Designs w5d

View GitHub Profile
@w5d
w5d / copyright.php
Last active August 16, 2018 04:26
Copyright
@w5d
w5d / childFunctionsCustomUrlProjects.php
Created February 20, 2015 15:10
Custom URL for Divi Projects
//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' => '',
#ctabutton {
background: #D4EA59;
color: black !important;
border-color: white;
}
/*Thank you @ShanetheBoland for the source with this one*/
@w5d
w5d / hamburger.css
Last active November 6, 2015 16:58
Hamburger on desktop too
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;
@w5d
w5d / header.php
Created February 23, 2015 05:21
Divi Header phone number "click to call"
<!-- 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>
@w5d
w5d / call
Last active November 6, 2015 16:54
Blurb module to touch to call
//Shortcode to make the blurb icon a call feature
tel:+15555555555
#main-header { display:none; }
#page-container { padding-top:0px !important }
https://www.wpthemefaqs.com/hide-the-divi-theme-header/
@w5d
w5d / style.css
Created June 13, 2015 15:01
Removing the Divi Header Bottom Border
/*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/
@w5d
w5d / FeaturedImgPost.css
Created May 29, 2015 15:52
turn off featured img in post Divi
/*Turn Off featured img in posts*/
.post-meta+img {
display: none !important;
}
@w5d
w5d / wp.config.php
Created March 3, 2015 18:01
Remove Site and plugin editor from Wordpress dashboard
// add to wp-config.php
define( 'DISALLOW_FILE_EDIT', true );