Looking for a reliable partner to bring your project to the next level? Whether it’s development, design, security, or ongoing support—I’d love to chat and see how I can help.
What is a @font-face? @font-face is a CSS at-rule used to define custom fonts for use on web pages. It allows web designers and developers to specify downloadable fonts that can be used to render text on their websites, regardless of whether the font is installed on the user’s device. What is the FOUT, FOIT […]
Due to Google AMP (Accelerated Mobile Pages) , I have been looking for a way to effectively do Syntax Highlighting without Javascript in pure PHP. I was about to write my own, when I found an older article from phoboslab. Thanks Dominic for saving me some time ;) Its not perfect, but close enough. A simple Syntax Highlighting Class that does just that. […]
Again another Google AMP article, this time dealing with Syntax Highlighting. If you have a code centric website, this is important. In one of my last articles I talked about a Generic Syntax Highlighter. This time I want to show you, how to add Syntax Highlighting with GeSHi to a custom template in AMP-WP. FIRST SOME RESOURCES Please read up on […]
“Schema.org is a collaborative, community activity with a mission to create, maintain, and promote schemas for structured data on the Internet, on web pages, in email messages, and beyond.” This shared vocabulary from Google, Bing and Yahoo helps to understand your content! This shows how to associate your logo with your organization. BEFORE <a href=”http://www.yoursite.com/”> <img […]
add_action( ‘unload_textdomain’, ‘my_unload_textdomain’ ); function my_unload_textdomain( $domain ) { switch($domain){ case “remove_textdomain”: unload_textdomain( ‘remove_textdomain’ ); load_plugin_textdomain( ‘remove_textdomain’, false, $your_location.’/languages/’ ); break } } Sometimes you might like to store all language files in your own central location, so that translators have one easy place to access all language files. Put the above into the functions.php and add […]
When building plugins or addons, sometimes we need to save custom files within WordPress. These can be custom JavaScript or CSS files that a user edited and are loaded to override core functionality. In most cases inline styles and scripts are an option, but not always the most elegant way. Everyone has to decide that for themselves. (wp_add_inline_style) Not talking about performance […]
PHP if( !isset($_SERVER[‘PHP_AUTH_USER’]) ) { if (isset($_SERVER[‘HTTP_AUTHORIZATION’]) && (strlen($_SERVER[‘HTTP_AUTHORIZATION’]) > 0)){ list($_SERVER[‘PHP_AUTH_USER’], $_SERVER[‘PHP_AUTH_PW’]) = explode(‘:’, base64_decode(substr($_SERVER[‘HTTP_AUTHORIZATION’], 6))); if( strlen($_SERVER[‘PHP_AUTH_USER’]) == 0 || strlen($_SERVER[‘PHP_AUTH_PW’]) == 0 ) { unset($_SERVER[‘PHP_AUTH_USER’]); unset($_SERVER[‘PHP_AUTH_PW’]); } } } .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ app.php [QSA,L] </IfModule>
CodePress Admin Columns allows you to manage and organize columns, for posts, users, comments and media lists in the WordPress admin panel. This little tweak allows you to add sorting to your columns. Add and adjust depending on the columns you have setup. Enjoy coding …
In the past 2 years, the e-Learning market has been exploding. Online Learning Management Systems (LMS) have become very popular, to build e-learning platforms. They not only offer text based content, quizzes, assignment management, course evaluation, social features, but also allow the integration of video, audio and other linked content. Many support SCORM (Sharable Content Object Reference Model), […]
easily build out your own REST API or use the long available HTTP REST API 1.0+ for WordPress. But with the new HTTP REST API 2.0+ its getting really easy to build out your own REST API Namespace and assign routes for all your JSON needs. The new REST API will make its appearance in WordPress 4.4, but […]
PORTALZINE® NMN
Alexander Gräf
Stettiner Str. Nord 20
DE-49624 Löningen