This file contains hidden or 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
/* Resizing Logo and modifying z-index to be rendered on top of everything else */ | |
#top-header {z-index: 99999;} | |
@media only screen and (max-width: 980px) { | |
#logo { | |
min-height: 100px; | |
} | |
} | |
@media only screen and (min-width: 981px) { | |
#logo { | |
min-height: 120px; |
This file contains hidden or 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_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); | |
function theme_enqueue_styles() { | |
wp_enqueue_style( 'Divi-style', get_template_directory_uri() . '/style.css' ); | |
} |
This file contains hidden or 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
h1{ | |
font-size: 1.5em; | |
color: #000; | |
} | |
h2{font-size: .9em;} | |
h3{ | |
font-size: 1.2em; | |
font-weight: 300; | |
line-height: 2em; | |
} |
This file contains hidden or 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 the following to the Theme header.php (typically) */ | |
<nav itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement" role="navigation"> | |
wp_nav_menu(['theme_location' => 'primary_navigation', 'walker' => MyNavWalker(), 'menu_class' => 'nav']); | |
</nav | |
/* Add this to the functions.php . This adds the 'url' attribute to every <a> link in the menu */ | |
function add_menu_attributes( $atts, $item, $args ) { | |
$atts['itemprop'] = 'url'; |
This file contains hidden or 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 Schema to HTML head on DIVI Theme only!!! */ | |
add_action('et_head_meta', 'custom_schema_json'); | |
function custom_schema_json () { | |
$schema = get_post_meta(get_the_ID(), 'schema_field', true); | |
if(!empty($schema)) { | |
echo $schema; | |
} | |
} |
This file contains hidden or 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-class-name ul | |
{ | |
list-style-type: none; | |
} | |
.custom-class-name ul li | |
{ | |
text-indent: -1.4em; | |
margin-bottom: 10px; | |
} |
This file contains hidden or 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
.img-class { | |
width: 200px; | |
height: 230px; | |
object-fit: cover; | |
object-position: top; | |
} |
This file contains hidden or 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
<script> | |
window.setTimeout(function(){ | |
DiviArea.show('get-newsletter') | |
}, 3000); | |
</script> |
This file contains hidden or 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 | |
/** | |
* | |
* SendInBlue integration with Contact Form 7 | |
* | |
*/ | |
// SendInBlue API KEY |
OlderNewer