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 / change1.php
Created April 19, 2016 19:21
Code for Divi Contact form module
$post_name = get_the_title( $post->ID );
@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 / 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;
}
.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 {
<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/">
<?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);
}
RewriteRule ^login$ wp-login.php
RewriteBase /
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
<figure>
<img src="img src" alt="alt attribute">
<figcaption>image caption</figcaption>
</figure>