How to Translate a WordPress Plugin/Theme

How to Translate a WordPress Plugin/Theme

If you haven’t translated a WordPress plugin/theme before, it’s easier than you might think and doesn’t take all that long. Developers don’t always create translation ready themes, so when you buy a premium theme make sure to check the plugin’s features list or ask the developer if the plugin has been localized. There are three types of files used in the framework: POT (Portable Object Template) files: The first step in the translation process is using a program to search through the WordPress source code to pick out text passed into a __() or __e() function, generating a POT file. This file will contain all the text available for translation. PO (Portable Object) files: The second step involves translating the text in a POT file into the target language, saving both English and translator messages in a PO file. MO (Machine Object) files: In the last step, the PO file is converted into a machine readable format. There are many translation tools available, such as GlotPress, Launchpad and Pootle, but we’re going to use LOCO Translate. LOCO Translate is a free, easy to use open source program for Mac OS X, Windows and UNIX/Linux for editing PO files and generating […]

Customize your Admin Area in WordPress

Customize your Admin Area in WordPress

Have you recently started using WordPress for your client’s project and want to further impress your client with your own brand? WordPress admin dashboard is the first page that is shown when you login into the wordpress admin panel. It is an ideal place for your branding where you can put your custom logo, widgets, custom text in as many places as you can without affecting the design of the website. Customize WordPress Login site Adding custom logo to WordPress Dashboard Adding Custom widget and footer to WordPress Dashboard When you develop a website for your client, most of them don’t understand the efforts that you have put into creating a dynamic website, or the 1000 lines of code that you have written to create a custom plugin. All they care about is what they see. Any commercial product would further make it more personal to the client instead of looking general. So why don’t you spend few minutes after completion of a project for your branding and make it feel more unique to the client? Following our guide on this series “Customize your Admin Area in WordPress”, we are not going into the detailed explanation of WordPress core functions, […]

How to Change “Leave a Reply” Text

How to Change “Leave a Reply” Text

Comments are an easy way to boost user engagement and with WordPress platform, there are a lot customizations you can do to improve comment feature. For example, you can style your comment layout, change comment form style, comment text field to bottom, etc. By default, most WordPress themes nomally have a comment form at the bottom of posts for asking visitors to “Leave a Reply” You may think this default word is so boring, rigid and you want to change something more interesting and attractive. So today , we will show you how to easily change the comment reply form text, instead of  “Leave a Reply” in WordPress comments. Change “Leave a Reply” Text for a Site-Wide This method will change the reply text for all comment reply forms in your entire site. Paste the following code into the functions.php file of your WordPress theme, after making the changes described below the code:

Don’t forget to replace ‘Leave a Comment:’on line 3 with the phrase of your choice. You must leave the single quotes around the phrase. Leave the rest of the code intact. Copy the entire code and paste it into functions.php. Make sure it’s inside the proper php tags. […]

Display the Latest Sticky Posts in WordPress

Display the Latest Sticky Posts in WordPress

How to make Sticky Posts in WordPress In our previous tutorial for How to create a new post to your WordPress Website, I have mentioned about Sticky Post in the Publish area of the Edit Post screen. Sticky posts are placed at the top of all blog posts and stay there until new posts are published. You can see that making Sticky Posts in WordPress is really easy. Look at the Visibility: Public field on the right side and click Edit. Check the box next to the Stick this post to the front page and publish it. If you want to make an older post sticky, Open the post to edit and just follow the same steps as above and click save. How to display the latest Sticky Posts. Have you ever want to display the latest sticky posts as featured posts for your in WordPress? Following our steps in this section. First of all, you need to copy and paste code snippet as below into your theme’s functions.php file to queries the WordPress database to retrieve the 5 latest sticky posts (each sticky post’s title with a link in a list format)

The shortcode [latest_stickies] display your latest sticky posts, in any WordPress post, page, or even a […]

Take Control of the WordPress Editor

Take Control of the WordPress Editor

WordPress Editor Visual Editor is a robust feature in WordPress that display as a rich text editor and makes your post edit screen look like a Microsoft Word. If Visual Editor is available in your WordPress Website, your post edit screen will have two editors: Visual and Text. Users can write posts and format them using the buttons in the toolbar“Visual” tab interface where will shows up on your display is exactly the way it will be published. Besides, we can edit post by performing on the “Text” tab interface and geting into the HTML code of the post. For the 1st time, you may click the “Toolbar Toggle” button on the post editor screen to extra more features and useful options in the toolbar above your post. However, by WordPress default Visual Editor only displays some basic buttons as Heading tags, align text, bold, italic, links, … and missing other buttons that you may need such as Font text, Font size, …..So it also somewhat limited when users need more unique decorations. In next sections I will suggest you using different methods to add advanced editor to your toolbar in post edit screen. Let’s go! Add Advanced Editor Using Plugin If you’d like more advanced features, without […]

How to Create a WordPress Child Theme

How to Create a WordPress Child Theme

A Child Theme is a theme that is actively inherited all the functionality and styling of another theme, called the Parent Theme. The purpose of using Child Theme is modifying an existing theme (Parent Theme) by creating a separate set of files that you can use to customize the theme without affecting its code at all. It means that you aren’t actually modifying the files of Parent Theme and can turn off your child theme and back to the original whenever you want.  Why use a Child Theme? So there are a few reasons why you should to use a child theme as below: WordPress users tend to proceed directly editing the CSS or editing php files to change in-depth a theme. This is extremely dangerous because if you later update the theme to the latest version, then your modifications may be lost due to the new version file overwrite. By using a Child Theme you will ensure that your modifications are preserved. Using a Child Theme can speed up development time. Using a Child Theme is a great way to learn about WordPress theme development. How do a Child Theme work Child Theme directory structure consist of : at […]