Skip to content

Instantly share code, notes, and snippets.

View eduard-un's full-sized avatar
🎯
Focusing

Eduard Ungureanu eduard-un

🎯
Focusing
View GitHub Profile
@eduard-un
eduard-un / blurb-image-height.css
Created August 23, 2024 08:39
Equalize Blurb Images Height
selector .et_pb_image_wrap img {
object-fit: cover;
height: 295px;
}
@eduard-un
eduard-un / check-readme.md
Last active July 31, 2024 05:56
Github Check

Instalation

  1. Install Python
  2. Open your terminal and type pip install requests
  3. Create a new file and call it check.py and save it inside a folder of your choice
  4. Paste this code
import requests
import os

def search_github_issues(repos, issue_title):
@eduard-un
eduard-un / Blog.php
Created November 10, 2023 11:23
Custom Blog module with Social Icons (Social Share by Supsystic plugin)
<?php
get_template_part( '/includes/builder/module/helpers/Overlay.php' );
class custom_ET_Builder_Module_Blog extends ET_Builder_Module_Type_PostBased {
/**
* Track if the module is currently rendering to prevent unnecessary rendering and recursion.
*
* @var bool
*/
@eduard-un
eduard-un / test.php
Created October 12, 2023 13:42
This is a simple PHP code
<?php
echo "hello world;
?>
@eduard-un
eduard-un / custom_functions.php
Created October 6, 2023 07:10
Update the PHP code to solve the get_page_by_title deprecation
<?php
// Prevent file from being loaded directly
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
add_theme_support( 'custom-background', apply_filters( 'et_custom_background_args', array() ) );
if ( function_exists( 'add_post_type_support' ) ) {
@eduard-un
eduard-un / code.html
Created May 9, 2023 08:45
Custom HTML Code
<div>
<div class="tab">
<button class="tablinks active" onclick="openPart(event, 'FRONT-UPPER')" id="defaultOpen">FRONT - UPPER</button>
<button class="tablinks" onclick="openPart(event, 'FRONT-LOWER')">FRONT - LOWER</button>
<button class="tablinks" onclick="openPart(event, 'DOOR-UPPER')">DOOR - UPPER</button>
<button class="tablinks" onclick="openPart(event, 'DOOR-LOWER')">DOOR - LOWER</button>
<button class="tablinks" onclick="openPart(event, 'SIDE-BEHIND-DOOR')">SIDE BEHIND DOOR</button>
<button class="tablinks" onclick="openPart(event, 'BACKLIGHT')">BACKLIGHT</button>
<button class="tablinks" onclick="openPart(event, 'RIGHTHAND-FRONT-SLIDER')">RIGHTHAND - FRONT - SLIDER</button>
<button class="tablinks" onclick="openPart(event, 'RIGHTHAND-REAR-SLIDER')">RIGHTHAND - REAR - SLIDER</button>
@eduard-un
eduard-un / old-code.css
Created May 3, 2023 12:21
Katalin Balogh old CSS Code
.uppercase {
text-transform: uppercase;
}
@media all and (mnin-width:981px) {
#page-container .logo_container {
position: relative;
}
#page-container div#et-top-navigation {
@eduard-un
eduard-un / reset-monarch.css
Created March 7, 2023 11:41
Override Divi Builder's CSS reset for Monarch Sharing icons - inline
.et-db #et-boc .et-l .et_social_inline .et_social_inline_top {
margin-bottom: 40px;
}
.et-db #et-boc .et-l .et_social_inline .et_social_left {
text-align: left;
}
.et-db #et-boc .et-l .et_social_inline .et_social_networks {
width: 100%;
@eduard-un
eduard-un / clear-presets-history.php
Created February 13, 2023 10:46
Clear Divi's Presets History
<?
add_action('after_setup_theme', function(){
if ( isset( $_GET['delete_global_presets'] ) ) {
delete_option( 'et_divi_builder_global_presets_history_ng' );
delete_option( 'et_divi_builder_global_presets_ng' );
die('Global Presets Deleted! :diviboom:');
}
}, 100);
<script>
(function($) {
$(document).ready(function(){
$('.et-show-more-toggle').on('click', function(e) {
e.preventDefault();
$(e.target).closest('.et-show-more-container').children('.et-show-more-content').slideToggle("300");
$(this).toggleClass('et-show-more-toggle_active');
if ($(this).hasClass('et-show-more-toggle_active')) {
$(this).text('Show Less');
} else {