Hi,
I need to insert the "add to cart" button in the course directory page.
I've added this in the function.php file (Child Theme):
add_action('bp_directory_course_item','custom_show_course_button_in_course_directory');
function custom_show_course_button_in_course_directory(){
echo the_course_button();
}
But I'd like that the button appears below the item-credits (after the price, in my case under the "price options") and not in a separate div.
Any suggestion?
Hi,
You can adjust it only by using the custom css as there is no action available to show the button below the credits.
Below is an example css:
.course.directory a.course_button.full.button {
width: 155px;
height: 40px;
padding: 10px !important;
float:right;
}