Skip to content

Instantly share code, notes, and snippets.

<script>
(function($) {
function collapse_menu() {
var ParentMenuItem = $('.et_mobile_menu .parent-menu-item > a');
ParentMenuItem.off('click').click(function() {
$(this).attr('href', '#');
$(this).parent().children().children().toggleClass('show-menu-items');
$(this).toggleClass('switched-icon');
});
}
.et_mobile_menu .parent-menu-item > a {
background-color: transparent;
position: relative;
}
.et_mobile_menu .parent-menu-item > a:after {
font-family: 'ETmodules';
content: '\3b';
font-weight: normal;
position: absolute;
.modal-example-1 .el-icon span.dipl_modal_trigger_element.dipl_modal_trigger_icon.et-pb-icon:before {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
background: #eeeeee;
border-radius: 50%;
opacity: 1;
@elicus
elicus / gist:fc0248afc1c0fe848b23fd1076b850fe
Created June 30, 2020 06:48
Swap Postion of Currency and Price in the Divi Restro Menu
.el-drm-menu-item-price {
display: flex;
flex-direction: row-reverse;
}
@elicus
elicus / gist:6893b3852547fd2b838f3253bbe9a36e
Created June 2, 2020 05:20
SQL Query to Change URL of WordPress Installation Manually
UPDATE wp_options SET option_value = replace(option_value, 'oldurl.com', 'newurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';UPDATE wp_posts SET guid = replace(guid, 'oldurl.com','newurl.com');UPDATE wp_posts SET post_content = replace(post_content, 'oldurl.com', 'newurl.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'oldurl.com','newurl.com');
@elicus
elicus / change-all-items-text-in-divi-restro-menu
Created May 15, 2020 16:42
Change text for "All Items" in Divi Restro Menu Plugin. Add the following code to the Divi Theme Options >> Integrations >> Add Code to the Head of your Blog
<script>
jQuery(window).load(function(){
jQuery('.el-drm-menu-items-categories').find('li[data-id=""]').text('Custom text');
});
</script>
UPDATE wp_options SET option_value = REPLACE (option_value, 'http://www.YOUR-OLD-DOMAIN.com', 'http://www.YOUR-NEW-DOMAIN.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = REPLACE (guid, 'http://www.YOUR-OLD-DOMAIN.com','http://www.YOUR-NEW-DOMAIN.com');
UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'http://www.YOUR-OLD-DOMAIN.com','http://www.YOUR-NEW-DOMAIN.com');
@elicus
elicus / divi-module-dev-helper.php
Created April 24, 2020 11:40
Function to fix error while creating custom divi module
<?php
protected function _enqueue_bundles() {
// Frontend Bundle
$site_url = wp_parse_url( get_site_url() );
$hot_bundle_url = "http://localhost:3000/static/js/frontend-bundle.js";
wp_enqueue_script( "{$this->name}-frontend-bundle", $hot_bundle_url, $this->_bundle_dependencies['frontend'], $this->version, true );
if ( et_core_is_fb_enabled() ) {
// Builder Bundle
$hot_bundle_url = "http://localhost:3000/static/js/builder-bundle.js";
wp_enqueue_script( "{$this->name}-builder-bundle", $hot_bundle_url, $this->_bundle_dependencies['builder'], $this->version, true );
/* Divi Vertical Tabs 1 */
.vertical-tabs1 {
border: none;
}
.vertical-tabs1 ul.et_pb_tabs_controls {
float: left;
width: 30%;
margin-right: 3%;
/* Grid Extended 1 */
@media screen and (min-width: 981px) {
.ge1 .et_pb_post_extra.el_dbe_grid_extended .post-content {
order: 0;
width: 66% !important;
}
.ge1 .et_pb_post_extra.el_dbe_grid_extended .post-media {
width: 34% !important;