Skip to content

Instantly share code, notes, and snippets.

/* Span the full width of the column */
.caldera-grid .btn {
width:100%;
}
/* Center the button to it's column */
.caldera-grid .btn {
display: block !important;
margin-left: auto;
margin-right: auto;
}
/* Float the botton to the right of its column */
.caldera-grid .btn {
float:right;
}
/* Change background and text color */
.caldera-grid .btn {
background-color:#BD6983 !important;
color:white !important;
font-weight: 900;
}
/* Change background and text color on hover */
.caldera-grid .btn:hover {
background-color:white !important;
/* Switch Divi Logo on Mobile Devices */
@media only screen and (max-width: 981px) {
#logo {
content: url(“http://mydomainname.com/wp-content/.../MyMobileLogo.png”);
max-height: 160px;
height: auto; /* default value - the browser calculates the height */
}
}
/* Restrict the width of the logo if necessary */
.et_pb_pricing_table:hover {
transform: scale(1.1);
-ms-transform: scale(1.1); /* IE 9 */
-webkit-transform: scale(1.1); /* Chrome, Safari, Opera */
z-index: 99;
transition-duration: 3s; /* Specifies how many seconds or milliseconds a transition effect takes to complete. */
-webkit-transition-duration: 5s; /* Safari */
}
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
/* Place the word MENU after the mobile hamburger */
.mobile_menu_bar:after {
content: 'MENU';
position: relative !important;
bottom: 10px;
left: 10%;
color: #c4c4c4;
}
/* Change the hamburger to X when opened */
animation-name: none;
<?php
/*
Plugin Name: Simple Divi Shortcoder
Plugin URI: https://divinotes.com/how-to-build-a-simple-plugin-to-easily-embed-divi-section-module-within-another/
Description: The purpose of this plugin is to allow you to embed Divi sections or modules within other Divi modules or anything else that supports shortcodes.
Version: 1.0
Author: Your Name
Author URI: https://divinotes.com
License: GPL2