Hide donations goal
-
Hi Team,
I want to use the Multi-Step Template with “Percentage Raised” as Goal Format and would like to display the goal progress bar, percentage and number of donations made but while hiding the donation Goal Amount.
Currently, I can’t because when I choose the “Percentage Raised” as Goal Format, I have to display the Goal Amount. There is no option to specifically hide this total amount goal…I already tried adding additional CSS code:
.goal {
display: none !important;
}and
.give-goal-progress .give-goal {
display: none !important;
}also via the functions.php file:
function custom_give_hide_goal() {
if ( is_singular( 'give_forms' ) ) {
?>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function() {
var goalElement = document.querySelector('.give-goal');
if (goalElement) {
goalElement.style.display = 'none';
}
});
</script>
<?php
}
}
add_action('wp_footer', 'custom_give_hide_goal');but none of these solutions worked…
Can you please help me?
Thanks.The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.