LearnPress is a powerful Learning Management System (LMS) plugin for WordPress that allows you to create and manage online courses. While LearnPress provides essential features like course creation, user management, and payment options, its default interface may not always align with the specific needs of your website. One such element is the visibility of course buttons like “Buy Now” or “Take This Course.”
If you’re using the BuddyX theme, a modern and responsive theme designed for community and learning platforms, customizing the visibility of these buttons is both simple and effective. Whether you’re building a course marketplace, a social learning platform, or a private training site, the BuddyX theme offers seamless LearnPress compatibility and flexibility to tweak your design. In this guide, we’ll explore how to hide LearnPress course buttons using various methods that integrate with BuddyX.
Quick Links
Why Hide LearnPress Course Buttons?
Before diving into the steps, let’s understand why hiding course buttons can be beneficial:
1. Simplifying User Experience
Some users prefer a distraction-free learning environment. By hiding unnecessary buttons, you can create a cleaner interface that focuses on content rather than additional actions.
2. Custom Enrollment Processes
For certain sites, enrollments may not occur directly through the platform. For example, businesses offering corporate training may prefer offline registration or approvals. Hiding buttons like “Enroll Now” ensures consistency with this workflow.
3. Alternative Call-to-Actions (CTAs)
Replacing default course buttons with custom CTAs, such as contact forms or inquiry options, can better suit websites with personalized course sales strategies.
Methods to Hide LearnPress Course Buttons in BuddyX
Method 1: Using Custom CSS in BuddyX
The BuddyX theme allows you to add custom CSS directly from the WordPress customizer. This is a straightforward way to hide the course buttons without modifying core files.
Steps:
- Log in to your WordPress dashboard.
- Go to Appearance > Customize.
- Navigate to Additional CSS.
- Add the following CSS code:
css.learn-press-course-buttons { display: none !important; }
- Click Publish to save your changes.
This will hide all LearnPress course buttons globally. If you want to hide buttons only on specific courses, you can use course-specific CSS selectors.
Method 2: BuddyX Child Theme Customization
For advanced users, creating a child theme is a robust solution. This allows you to modify LearnPress template files without affecting updates to the main BuddyX theme.
Steps:
- Create a Child Theme
- Create a folder named buddyx-child in the wp-content/themes/ directory.
- Add a style.css and functions.php file to the child theme folder.
- Copy LearnPress Templates
- Locate the LearnPress templates in the plugin folder (usually wp-content/plugins/learnpress/templates/).
- Copy the relevant template, such as single-course.php, into the child theme folder under buddyx-child/learnpress/single-course.php.
- Modify Template Code
Open the copied template file and locate the section responsible for displaying course buttons, which might look like this:phpdo_action(‘learn-press/before-course-buttons’);Comment out or remove this code block to hide the buttons:
php// do_action(‘learn-press/before-course-buttons’); - Activate the Child Theme
- Go to Appearance > Themes in the WordPress dashboard.
- Activate the BuddyX child theme.
This method ensures your changes remain intact even if the LearnPress plugin or BuddyX theme is updated.
Also Read: Best KPI Software for Tracking Performance
Method 3: Plugins for Custom CSS and Code Management
If you’re not comfortable with manual CSS or code edits, you can use plugins to manage customizations. Some popular options include:
- CSS Hero
- A user-friendly plugin to customize styles visually.
- Select the course buttons and set their display property to none.
- Custom CSS & JS Plugin
- Allows you to add custom CSS or JavaScript to your site easily.
- Paste the same CSS code provided above to hide buttons.
- Code Snippets Plugin
- Ideal for adding PHP snippets without modifying your theme files.
Method 4: BuddyX Theme Options
BuddyX provides built-in options to integrate with LearnPress. Check if your version of BuddyX includes settings to manage LearnPress elements:
- Navigate to BuddyX Options in the WordPress dashboard.
- Look for LearnPress Integration settings.
- Disable or toggle the visibility of course buttons if the option is available.
Replacing Course Buttons with Custom CTAs
If you want to replace course buttons instead of hiding them, you can use the following techniques:
- Custom HTML Widgets
- Replace course buttons with widgets like contact forms or inquiry buttons using shortcodes.
- Third-Party Plugins
- Use plugins like WPForms or Gravity Forms to add custom CTAs.
- LearnPress Hooks
- LearnPress provides hooks to add custom content in place of buttons.
Why Choose BuddyX for LearnPress Customization?
BuddyX is specifically designed for community and eLearning platforms. Here’s why it stands out:
- LearnPress Compatibility
BuddyX integrates seamlessly with LearnPress, making it easy to manage LMS-related customizations. - Social Learning Features
When paired with plugins like BuddyPress, BuddyX enables a collaborative learning experience, including forums, user profiles, and activity streams. - Responsive Design
Ensures your site looks great on all devices, enhancing user experience. - Customizable Options
From styling to feature toggles, BuddyX provides the flexibility to tailor your site to your specific needs.
Conclusion
Hiding LearnPress course buttons can enhance the usability and aesthetics of your eLearning platform. With the BuddyX theme, you have multiple options, from simple CSS tweaks to advanced template customizations, to achieve this. Whether you’re simplifying the user interface, aligning with your enrollment process, or creating custom CTAs, BuddyX offers the tools to make it happen.
By leveraging the methods discussed in this guide, you can create a seamless and engaging experience for your learners. Explore the BuddyX theme and its powerful features to take your LearnPress-powered site to the next level!
Interesting Reads:
How to Keep Your BuddyPress Community Safe with Content Filters
How to build connections with new members in BuddyPress?
Bridge the Gap Between Members and Non-members with BuddyPress Contact Form


