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
<?php
add_filter('site_url', 'wplogin_filter', 10, 3);
function wplogin_filter( $url, $path, $orig_scheme ) {
$old = array( "/(wp-login\.php)/");
$new = array( "login");
return preg_replace( $old, $new, $url, 1);
}
<section class="slide-up-boxes">
<a href="http://elegantthemes.com">
<h5>I am a moderator on...</h5>
<div>Eelegant themes are best resource for wordpress premium themes. If you want your site to have a slick look this is the place</div>
</a>
<a href="http://weddingtweets.net">
<h5>Curently i'm working on...</h5>
<div>This project includes a lot of wordpress customization and integration of BuddyPress.</div>
</a>
<a href="http://www.mobstermobiledesign.com/">
.slide-up-boxes a {
display: block;
height: 130px;
margin: 0 0 20px 0;
background: rgba(215, 215, 215, 0.5);
border: 1px solid #ccc;
height: 65px;
overflow: hidden;
}
.slide-up-boxes h5 {
@eduard-un
eduard-un / custom-fonts.css
Created April 19, 2016 18:12
code for Custom fonts without Jquery article
h1{
font-family:"League Gothic";
src:url(Fonts/League-Gothic.otf)
color:#CCC;
size:14px;
}
@eduard-un
eduard-un / code.txt
Created April 19, 2016 19:11
Code for Sublime text article
@echo off
SET st2Path=C:Program FilesSublime Text 3sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT*shellOpen with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT*shellOpen with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT*shellOpen with Sublime Text 3command" /t REG_SZ /v "" /d "%st2Path% "%%1"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOTFoldershellOpen with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@eduard-un
eduard-un / change1.php
Created April 19, 2016 19:21
Code for Divi Contact form module
$post_name = get_the_title( $post->ID );
wp_mail( apply_filters( 'et_contact_page_email_to', $et_email_to ),
sprintf( __( 'Customization Request for %1$s%2$s', 'Divi' ),
sanitize_text_field( $et_site_name ),
( '' !== $title ? sprintf( _x( ' - %s', 'contact form title separator', 'Divi' ), sanitize_text_field( $title ) ) : '' )
), stripslashes( wp_strip_all_tags( $POST['et_pb_contact_message'] ) ), apply_filters( 'et_contact_page_headers', $headers, $contact_name, $contact_email ) );
wp_mail( apply_filters( 'et_contact_page_email_to', $et_email_to ),
sprintf( __( 'Customization request for %1$s', 'Divi' ),
sanitize_text_field( $post_name )), stripslashes( wp_strip_all_tags( $POST['et_pb_contact_message'] ) ), apply_filters( 'et_contact_page_headers', $headers, $contact_name, $contact_email ) );
<link href="/apple-touch-icon-57x57.png" rel="apple-touch-icon" sizes="57x57" />
<link href="/apple-touch-icon-114x114.png" rel="apple-touch-icon" sizes="114x114" />
<link href="/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72" />
<link href="/apple-touch-icon-144x144.png" rel="apple-touch-icon" sizes="144x144" />
<link href="/apple-touch-icon-60x60.png" rel="apple-touch-icon" sizes="60x60" />
<link href="/apple-touch-icon-120x120.png" rel="apple-touch-icon" sizes="120x120" />
<link href="/apple-touch-icon-76x76.png" rel="apple-touch-icon" sizes="76x76" />
<link href="/apple-touch-icon-152x152.png" rel="apple-touch-icon" sizes="152x152" />
<link href="/favicon-196x196.png" rel="icon" type="image/png" sizes="196x196" />
<link href="/favicon-160x160.png" rel="icon" type="image/png" sizes="160x160" />
foo
bar
baz
qux
quux