You're browsing the category: Programming

Java, C++, PHP, you name it.

Tutorials

WordPress: Visual Editor Stylesheet Modification

Have you ever wondered how to style the WordPress Visual Editor (when writing posts) using your current theme’s functions file? Well, lucky for you there is a way to do that!

You can edit quite a lot with this function: typefaces, font size, image styling, and so much more. All it takes is to create a separate stylesheet and add a small function to your theme’s functions.php file.

Add to your theme’s functions.php file:

 Create ‘visual-editor.css’ and add your custom CSS

Add all the CSS you want to use that you want to see on your WordPress Visual Editor. For example, on this blog, I made one just to increase the font size of the Visual Editor. So I did something like this:

Note: You can name the file whatever you want, just make sure to use the correct filename on the PHP function. Also, upload the CSS file to the same directory where your theme’s style.css is.

And voila! Now you have more ways to customize the WordPress interface to your liking. If you have any questions, please let me know by leaving a comment.

Tutorials

WordPress: Custom Signature on Posts

Do you ever read blogs that have a custom image or signature on the bottom of the posts? Well, if you have a WordPress blog and want to add your own custom signature on your posts, it’s really easy to do!

Edit your theme’s functions.php file

Like I wrote on the code comment, you can replace the <img> tag with any content you want to add as your signature (custom text, quote, etc). Don’t forget to customize the styling (alignment and other properties) of the signature using the .signature CSS class.

That’s it! If you have any comments or questions, make sure to leave a comment!