Customization styles and templates
The customization of the plugin does require some experience in HTML, CSS and even PHP to change the templates around to an arbitrary theme look. Plugin's styles and templates are designed to work relatively well with most themes, but if you do have the need to modify any template and add or remove styles - try to follow these conditions:
- Create new folder in your child theme "w2mb-plugin/". You will place custom files in this folder.
- If you want to change the layout or styles of maps section on your site do not modify existing CSS files, instead create new file and give it exactly the same name, just add -custom postfix to the end of name before file's extension. For example, resources/css/frontend.css file from the plugin folder must have following name and placed into w2mb-plugin/resources/css/frontend-custom.css folder of your child theme. Using this method will save your modifications and custom code during further updates.
- The same convention for any templates - .tpl files in templates/ folder. For example, custom templates/frontend/index.tpl.php template must have following name and placed into w2mb-plugin/templates/frontend/index-custom.tpl.php folder of your child theme.
Relative path of custom file in your child theme "w2mb-plugin/" folder must be exactly the same as the path of original file. resources/css/ will be w2mb-plugin/resources/css/, templates/frontend/ will be w2mb-plugin/templates/frontend/.
Templates of addons place in own folders. For example, addons/w2mb_fsubmit/templates/ will be w2mb-plugin/templates/w2mb_fsubmit/ in your child theme. - Other part of customization is that you can manage categories icons, locations icons and map markers icons.
Custom icons files place in the same way as CSS and templates, in your child theme "w2mb-plugin/" folder.
w2mb-plugin/resources/images/categories_icons/, w2mb-plugin/resources/images/locations_icons/, w2mb-plugin/resources/images/map_icons/ folders for categories icons, locations icons and map markers icons accordingly. - Inside resources/sass/ folder the plugin contains SASS files for the frontend and backend parts including RTL styles.
MapBox Locator plugin has special customization settings to change some elements on frontend pages like links and buttons colors, background of the search form, primary and secondary colors, jQuery UI style.