How to use custom styles in the Word Press post editor

Every-time I created a word press theme, I felt the need to allow my theme users to use on their contents, the CSS styles that I had created to the theme itself.

They were especially created in order to maintain a visual identity between the layout and the contents, and should be directly applied at the author’s will! – How-come the styles, created specially for that theme (my CSS Classes), weren’t available to be applied trough the default WYSIWYG text editor?

My objective was allowing users to be able to apply the custom styles, in the default panel, using the panels own logic, without any particular knowledge of HTML or CSS and without having to stick to the editor’s default predetermined styles.

In this brief tutorial I’ll explain a very simple way to do this, just by adding a couple of lines of code to your theme’s functions.php, and by creating a very simple CSS file to host your custom styles.

In my previous article about this subject (www.wdmac.com/word-press-custom-css-styles-in-the-wysiwyg-editor) we’ve edited a couple of WP core files, and the result was satisfactory. However those edits where lost on every WP upgrade, and that was not satisfactory at all. This is a clean, straightforward technique, that is “permanent” and non-upgrade-dependent.

WordPress News – PHP4 and MySQL4 R.I.P.

Our approach with WordPress has always been to make it run on common server configurations. We want users to have flexibility when choosing a host for their precious content. Because of this strategy, WordPress runs pretty much anywhere. Web hosting platforms, however, change over time, and we occasionally are able to reevaluate some of the requirements for running WordPress.
Now is one of those times. You probably guessed it from the title — we’re finally ready to announce the end of support for PHP 4 and MySQL 4!

App Inventor for Android

7/12/2010 06:59:00 AM via Official Google Blog (googleblog.blogspot.com/)

App Inventor is a new tool in Google Labs that makes it easy for anyone—programmers and non-programmers, professionals and students—to create mobile applications for Android-powered devices. And today, we’re extending invitations to the general public.

For many people, their mobile phone—and access to the Internet—is always within reach. App Inventor for Android gives everyone, regardless of programming experience, the opportunity to control and reshape their communication experience. We’ve observed people take pride in becoming creators of mobile technology and not just consumers of it.

For the past year, we’ve been testing App Inventor in classrooms around the United States, and we’ve found that it opens up the world of computer programming to students in new and powerful ways. David Wolber, professor of computer science at the University of San Francisco and part of the initial pilot program, says “students traditionally intimidated by technology are motivated and excited to program with App Inventor.” One student from Professor Wolber’s class told us: “I used to think that no one could program except CS people. Now, I’ve made dozens of applications for the Android phone!” Another student, who struggles with dyslexia, was inspired by App Inventor to take more computer science classes and is now learning Python. Check out this video to hear more about App Inventor for Android at University of San Francisco.

Visit our site to learn more about App Inventor and see sample apps. To request an invitation, fill out this form and you’ll soon be on your way to building mobile applications.

Read the full article: googleblog.blogspot.com/2010/07/app-inventor-for-android.html

Updating word-press while mobile (e-mail, MMS)

I was trying to find a way to keep one of my blogs updated while on a two week motorcycle vacation across Europe.  I needed an easy, hassle-free, non-expensive way to update small road-side bits of information.

I have several applications that would do it, like:

- Publishing directly via e-mail does not allow images, and needs an extra step checking the email to post.

- Installing a mobile UI

- Adding a custom posting interface, etc. etc.

But all this required a moderate time-consuming mobile connection, and if your are doing it abroad (roaming), by the end of the two week journey you phone bill will be grown quite fat….

What I really needed was something like an SMS, or MMS. E-mails can be sent via MMS with a fixed price. But directly publishing to word-press via email (as i’ve described in my previous article “word press posting via e-mail” ), is a bit limited.

So I’ve done a bit of research and… 

RIP José Saramago

Since life is not just tech and computers this brief post is about another form of culture.

We’re grieving the death of the Portuguese writer, nobel prize winner, José Saramago.

Saramago wich was granted the Nobel Prize for Literature, back in 1988, died this morning, aged 87yo, in his house in the Canary Islands (Spain) victim of cancer.

He was the only writer in the Portuguese language to achieve the Nobel prize.

RIP

More about José Saramago: en.wikipedia.org/wiki/Jos%C3%A9_Saramago

Navigation
Recent Posts
Recent Comments
Royalty Free Images
Stock Images
Search Royalty Free stock images on Dreamstime
Resources
Goodies & Infos
Categories
External Resources
Twitter Updates
    © 2010 - All rights reserved - WDMAC Web Design & Development Tutorials. Word Press development.