Customize templates and styles

5 min read

5 minIntermediateUltimate Affiliate Pro 9.7+

To customize the affiliate portal design, start with the built-in templates and Custom CSS boxes of Ultimate Affiliate Pro. When you need to change the layout itself, copy a template file into your theme and edit the copy. Plugin updates never overwrite it.

This guide goes from the simplest change to the most flexible one. To change only words and messages, see change texts, labels and messages.

Before you start

  • Ultimate Affiliate Pro installed, with your license active.
  • For CSS: basic knowledge of CSS selectors.
  • For template files: FTP or file manager access to your site, and a child theme, so theme updates don’t remove your files.

Pick a ready-made template #

Each front-end form and page has its own set of templates. Go to Ultimate Affiliate Pro›Showcases and open the showcase you want to change:

  • Registration Form: 14 templates, in the Register Showcase tab.
  • Login Form: 13 templates, in the Login Showcase tab.
  • Affiliate Portal: 3 templates for the top section and 4 for the content area. See Affiliate Account Page.
  • Top Affiliates: 10 themes for the leaderboard shortcode.
Login Form Template cards in Ultimate Affiliate Pro next to the Live Preview of the login form
Login Form Showcase: the template cards and the live preview.
1Template cards

Click a card to select the template. The selected one has a check mark.

2Live Preview

Shows the form with the selected template before you save, on the Registration and Login screens.

Click Save Changes.

Change the affiliate portal design with custom CSS #

For colors, fonts and spacing, use the Custom CSS box of each showcase. Each box loads its CSS only where that element appears:

  • Registration Form and Login Form: Custom CSS card in the showcase tab, which applies to that form only.
  • Affiliate Portal: Custom CSS card at the bottom of Showcases›Affiliate Portal, which applies to the Affiliate Portal only.
  • Top Affiliates: Custom CSS in the Additional Settings tab, which applies to the leaderboard only.
Custom CSS box for the affiliate portal design in the Affiliate Portal settings of Ultimate Affiliate Pro, with example CSS rules for the menu tab color and the affiliate name size
Example CSS in the Affiliate Portal Custom CSS box.
1Custom CSS

Write plain CSS rules, without <style> tags. The example changes the color of the selected menu tab and makes the affiliate’s name larger.

To find the class of an element, open the page in Chrome, Firefox or Edge, right-click the element and choose Inspect. The developer tools show its HTML and the CSS rules that style it. Most classes of Ultimate Affiliate Pro start with uap-, for example uap-ap-menu for the portal menu.

Tip

If a rule has no effect, a more specific plugin or theme rule wins. Add a parent class to your selector, or add !important to the value, as in the example. Clear your cache plugin after you save.

Override a template file in your theme #

To change the HTML of a page, such as adding a section to the Dashboard tab or moving a column, copy the template file into your theme. Ultimate Affiliate Pro loads your copy instead of its own.

  1. Find the file in the plugin folder: wp-content/plugins/ultimate-affiliate-pro/templates/public/.
  2. In your child theme, create a folder named ultimate-affiliate-pro.
  3. Copy the file there with the same name, for example wp-content/themes/your-child-theme/ultimate-affiliate-pro/account_page-overview.php.
  4. Edit the copy. Your changes appear on the site right away.

Ultimate Affiliate Pro looks for the file in the ultimate-affiliate-pro folder of the active theme first, then in the theme’s main folder, then uses its own file. With a child theme, the child theme is checked before the parent theme.

Templates you can overrideFiles in templates/public/
Affiliate Portal frame
account_page-header.php, account_page-footer.php
Dashboard tab
account_page-overview.php
Referrals, Payments, Reports tabs
account_page-referrals.php, account_page-payments.php, account_page-reports.php
Affiliate Links tab
account_page-generate_links.php
Creatives tab
account_page-banners.php
Edit account and payout details
account_page-edit_account.php, account_page-payment_settings.php
Custom tabs
account_page-custom_tab.php
Registration form
register.php
Become an Affiliate button
become_affiliate_bttn.php

The other account_page-*.php files belong to the remaining portal tabs and are overridden the same way.

Keep your copies up to date

When an update changes a template, your copy keeps the old version. After major updates, compare your file with the new one in the plugin folder and copy over the changes you need. To go back to the original template, delete your copy.

Test it #

  1. Clear your cache plugin and your browser cache.
  2. Log in as a test affiliate in a private window and open the page you changed.
  3. Check the page on a phone-size screen too, with the responsive mode of your browser’s developer tools.

Frequently asked questions #

Will plugin updates overwrite my CSS or template changes?

No. Custom CSS is saved in your database, and template copies live in your theme folder. Only files inside the plugin folder are replaced by updates.

Which folder do template overrides go in?

A folder named ultimate-affiliate-pro inside your active theme, for example wp-content/themes/your-child-theme/ultimate-affiliate-pro/. Use the same file name as in the plugin’s templates/public folder.

Can I change the design of the emails affiliates receive?

Emails use the message you write for each notification, and you can add HTML in it. See email notifications.

How do I find the CSS class of an element?

Right-click the element on the page and choose Inspect. The developer tools of your browser highlight the element and show its classes and styles.

My CSS works in the editor but not on the site. Why?

Usually a cache plugin or host cache serves the old page, or a more specific rule overrides yours. Clear the cache, then make the selector more specific or add !important.

What’s next #

What are your feelings

  • Happy
  • Normal
  • Sad