Apps Ballance Cash_2 Chat Checkout Click Code Cog_Wheels Compose_email Conference Contacts Earth Edit_File_1_ Email Email_2 File Folder_2 Gift Group Group_2 Help ID ID_2 Key Keys Laptop_Store Like_1_ Link Lock Log_Out Map Marketing Mobile_UI Navigation POS Partnership Profile Safe_2 Search_User Secure_Files Settings Share Shield Shield_2 Shopping_Cart Support_Male Trash Type_pin User_female User_male logo copy

Customizing the Templates

Iain Poulson avatar
Iain Poulson Last updated on January 2, 2023

A lot of times when building a site or theme with WP User Manager, you will want to customize the template of the like button or the profile tab likes content. Luckily WPUM allows you to do this and it’s very easy to do.

First of all, you should learn how the template system works. Read more information in this article:  

https://wpusermanager.com/article/121-templates-customization/

Now that you learned how to override the templates, we will have a look at which templates are used by the user directory.

Like Button

templates/likes/button.php

The button.php file, is the template file responsible for rendering the Likes button and showing the current count of likes. The structure of the HTML is an anchor with a specific class and data attribute, as well as child span elements with classes, both will need keeping in any custom HTML your write.

Profiles Tab Content

templates/profiles/likes.php

The likes.php file, is the template file responsible for rendering the liked content of a user on their profile page. 

WP User Manager logo

Get Started with the Best WordPress Membership Plugin Today

Connect, Manage and Build your Membership Site

Need more help?

If you still didn't find an answer you can always contact us

Submit a ticket