Posts mit dem Label tutorial werden angezeigt. Alle Posts anzeigen

PHP simple human verfication


Change wp-content folder name in WordPress



wp-content folder contains WordPress themes and plugins, or we just call them extensions, which makes your WordPress different from others.

More or less, we all need to install some to enhance our WordPress system, just like we install softwares on our OS, but it also bring risks. Do not install any unknown extension unless you know exactly what it’s doing.We all heard about viruses and trojans, right? Although WP extensions are open source, people might not take the time to read the code line by line. On the other hand, writing secure code is a skill not every developer learns that well, so it’s possible that a useful plugin becomes a backdoor for hackers. So, be careful when you install something new.

A link as a submit button


CSS custom cursor


Targeting only Firefox with CSS



Sometimes it is the Gecko engine (Firefox) that misbehaves. What would be best way to target only Firefox with your CSS rules and not a single other browser? That is, not only should Internet Explorer ignore the Firefox-only rules, but also WebKit and Opera should.

1. Target all versions of Firefox

@-moz-document url-prefix() {
.content {
color:#000;
}
}


2. Target versions of Firefox 3

html>/**/body .content, x:-moz-any-link, x:default {
color:#000;
}


3. Target versions of Firefox 2

html>/**/body .content, x:-moz-any-link {
color:#000;
}

Create simple contact form in Laravel 4



1. Go to
app/config/mail.php
Change ‘drive’ from ‘smtp’ to ‘mail’
'driver' => 'mail',
Next, make ‘host’ name from ‘smtp.mailgun.org’ to nothing, so make it blank.
'host' => '',

Remove margin from last item in row

Remove margin from last item in row you can use css nth-child

Here the example
ul li:nth-child(3n+3) {
color: #ccc;
}


From the script work for every third from the li

Or this for only one li

ul li:nth-child(5) {
color: #ccc;
}



From the script work only for fifth from the li

Good luck

Mit jQuery Um Active Menüpunkt zu markieren

Hier ist ein jQuery-Snippet, das die aktuelle Seite URL überprüfen wird und vergleichen sie es mit den URLs im Menü und wenn sie übereinstimmen wird es eine Klasse, um den Menüpunkt hinzuzufügen.

<script type="text/javascript">
jQuery(document).ready(function($){
// Get current url
// Select an a element that has the matching href and apply a class of 'active'. Also prepend a - to the content of the link
var url = window.location.href;
$('.menu a[href="'+url+'"]').addClass('current_page_item');
});
</script>

Gambio Seo boost Fehler 500

Heute hatte ich wieder ein nettes Problem mit einer Gambio Installation. Nachdem ich die Installation auf den eigentlichen Server umgezogen hatte, habe ich den Gambio seo boost für alle drei Bereiche

Put qtranslate in the header of the Site Wordpress



All you need to do in order to have the qTranslate widget in your pages header is to add this code to header.php:

1. This will create a text-only widget.
<?php if ( function_exists( 'qtrans_generateLanguageSelectCode' ) ) qtrans_generateLanguageSelectCode( 'text' ) ?>

2. This will create an image (flag) only widget.
<?php if ( function_exists( 'qtrans_generateLanguageSelectCode' ) ) qtrans_generateLanguageSelectCode( 'image' ) ?>

3. This will create a text and image widget.
<?php if ( function_exists( 'qtrans_generateLanguageSelectCode' ) ) qtrans_generateLanguageSelectCode( 'both' ) ?>

4.This will create a dropdown widget(an HTML select element with all available languages).
<?php if ( function_exists( 'qtrans_generateLanguageSelectCode' ) ) qtrans_generateLanguageSelectCode( 'dropdown' ) ?>

WordPress - Wartungsmodus aktivieren



Code kopieren und in function.php einfügen

// Wartungsmodus
function kb_wartungsmodus() {
if ( !current_user_can( 'edit_themes' ) || !is_user_logged_in() ) {
wp_die('
Wir aktualisieren unsere Website

Im Moment arbeiten wir an dieser Website. Bitte schauen Sie in Kürze noch einmal vorbei.

Sie erreichen uns in der Zwischenzeit per E-Mail.

', 'Website im Wartungsmodus');
}}

add_action('get_header', 'kb_wartungsmodus');


Für deaktieren Wartungsmodus, löscht es einfach...
Das war......

Disabling Wordpress wpautop

To disable Wordpress wpautop put this code in function.php

remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );


And you have done, simple and easy.

Remove grey background on link clicked in ios safari



When you click (touch) a link in Safari for iOS, you get a grey background behind link.
Here the code for remove the link:

a {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

Photoshop: Englisch - Deutsch



Photoshop: Englisch - Deutsch

Fixed the menu to the top of the page on scroll down



This is the simplest to fix menu on the top of the page when the content on scroll down

Add blogger body class



If you want to make a difference between home page and post page, you can use this code.
Here the step to make them

Blogger Pagination



Blogger Pagination macht schöner dein Blog, wie zum Beispiel in mein Blog wiyono05.blogspot.com

Es geht sehr einfach zum Blogger Pagination hinzufügen, wenn du kennst CSS und HTML das ist gut, dann kannst du ändern den Style.

Beginnen wir!

Add Wordpress html sitemap without plugin



Would you like to add sitemap to your Wordpress, here is the simple way to create sitemap without plugin.

Let's start it!

Styling hr element with CSS


hr element is easy way to make line on your page, but the default style hr element looking not good, if you ever put hr element to your page and you will to make it looking better, here the sample for styling your hr element with CSS.

Refresh / Redirect using meta tag


Redirect to a Different URL using the Meta Tag "Refresh", maybe you have to redirect because you site is change to another adresse.

meta http-equiv="refresh" content="3; URL=http://wiyono05.blogspot.de" 
3 is how long in second the page will refresh.
URL where must to the new site redirect