1. AAWP
  2. Documentation
  3. Extending & Styling

Templating

Basics In order to edit PHP templates (depends on your intention) you need knowledge in HTML, CSS and PHP. Additionally it's recommendable to make use of a special editor like Notepad++ (Windows) or Sublime Text (MacOS). Note: Please don't edit original files inside the plugin folder due to the fact that they will be overwritten with the next update! Editing existing templates In order to edit existing templates, please go on as follows: Create a new directory called “aawp” inside your theme/child-theme folder Copy the template file you want to edit out of the plugin folder (sub-directory “templates) Insert the...

Star Ratings: Replace icons

Basics The basic structure of star ratings looks as follows: 1 icon for the gray (inactive) background 1 icon for the yellow (active) foreground For a 4-star product rating, 4 active and 1 inactive star will be shown. Icon sources On the one hand you can create your own icons with almost every picture editing tool. On the other hand you can make use of a public resource like Iconfinder. Anyway the file format should be SVG, alternatively PNG or GIF. After getting your icons, please upload them on your server (e.g. via WordPress media). Default sizes On the plugin...

How-to translate AAWP into your language

Our plugin can be easily translated into any language and even includes several non-English translations. If your language is not included in the list below, or your language has an incomplete translation, follow the instructions below to create and/or update a translation. At this time, AAWP includes translations for the following languages: English (default) German Spanish French Italian Vietnamese Please note: Some translations may not 100% completed yet. Centralized translation platform We think that handling translations should be as easy as possible for you. That's why we decided to setup our very own translation platform. In case you don't have...

Quick translate or replace single words

In general our plugin is ready to be translated in your language. Additionally you can edit certain text strings (e.g. sale ribbon or button text) easily via plugin settings. Anyway there might be some situation where you don't want to make use of our prepared translations or only want to replace single words. Therefore we prepared a filter which can be used to quickly replace single terms. In this example we're going to update the text “Reviews” to “Amazon Reviews”. Making use of our filter The filter looks as follows: 123456add_filter( 'aawp_replace_translations', function( $translations ) {     $translations['%s Reviews']...