mehdijaone
Forum Replies Created
-
Hello again
I removed the custom code. When I click on the button (as I already explained) , a # is added to my url and nothing happens.
For instance: my url before clicking is like https://myDomain.com/dashboard and after clicking is like https://myDomain.com/dashboard/#
It seems within the button there is no specific url to redirect the instructor with a grant to access creating a new course!
Thank you so much for assisting to solve this problem
- This reply was modified 1 year, 5 months ago by mehdijaone.
Thank you so much for assisting, Nafiz
Well, as I already explained, this btn has no specified url in it, when I click on it, a ( # ) is added to url and nothing more! So it won’t work! However I have added a custom code to the footer.php which works only for admin role. The code is like:
jQuery(document).ready(function($) {
var createCourseButton = $(“#tutor-create-new-course”);
if (createCourseButton.length) {
createCourseButton.attr(“href”, “<?php echo admin_url(‘admin.php?page=tutor#’); ?>”);
}
});
By this code I can click on that btn to see something happen! Without this code nothing happens.
beside this, I have done all the ways you mentioned!
Thanks for replying back.
Astra has been activated on this project