Written by Admin on 2025-05-06
How to Remove Download from Miraculous WordPress Theme
Miraculous is a popular WordPress theme that offers a wide range of features and options to create a stunning website. However, one feature that may not be desired by all users is the Download button that appears on the homepage.
If you're looking to remove the Download button from your website, the process is quite simple. Here's how you can do it:
Step 1: Install a Child Theme
Before making any changes to your website's code, it's imperative to create a child theme to avoid losing any modifications in the future.
To create a child theme, navigate to your WordPress dashboard and go to Appearance > Theme Editor. From there, create a new file and name it style.css
.
Paste the following code into the file:
``` /* Theme Name: Miraculous Child Theme Theme URI: https://www.yourwebsite.com/ Description: Miraculous Child Theme Template: miraculous Version: 1.0.0 */
@import url("../miraculous/style.css"); ```
Save the file and activate the child theme.
Step 2: Remove the Download Button
Once you've activated the child theme, you can proceed to remove the Download button from your website.
Navigate to Appearance > Theme Editor and select header.php
from the list of templates on the right-hand side.
Find the following code:
<a href="<?php echo esc_url( $miraculous_download_url ); ?>" class="btn-download theme_btn">
<span>
<img src="<?php echo esc_url($miraculous_option['download_button_icon']['url']) ?>" alt="">
<?php esc_html_e('download now', 'miraculous') ?>
</span>
</a>
Delete this code and save the changes.
Step 3: Clear Your Cache
After making changes to your website, it's always advisable to clear your cache to ensure the modifications take effect. You can do this by navigating to Settings > WP Fastest Cache and clicking on the Delete Cache button.
That's it! You've successfully removed the Download button from your Miraculous WordPress theme. If you ever want to re-enable it, simply add the code back to your header.php
file.