Skip to content

Instantly share code, notes, and snippets.

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

Eduard Ungureanu eduard-ungureanu

🎯
Focusing
View GitHub Profile
@eduard-ungureanu
eduard-ungureanu / new-twitter-logo.CSS
Created August 23, 2024 08:53
Update Twitter logo in Monarch
.et_social_networks .et_social_twitter .et_social_icon_twitter:before,
.et_social_networks .et_social_twitter .et_social_icon_twitter:after {
content: "\e094" !important;
font-family: ETModules !important;
}
.et_social_networks .et_social_twitter{
background-color: #000000 !important;
}
@eduard-ungureanu
eduard-ungureanu / 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-ungureanu
eduard-ungureanu / 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-ungureanu
eduard-ungureanu / 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-ungureanu
eduard-ungureanu / test.php
Created October 12, 2023 13:42
This is a simple PHP code
<?php
echo "hello world;
?>
@eduard-ungureanu
eduard-ungureanu / 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-ungureanu
eduard-ungureanu / 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-ungureanu
eduard-ungureanu / 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-ungureanu
eduard-ungureanu / 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-ungureanu
eduard-ungureanu / 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);