Skip to content

Scroll to qna tab in course details page from Discussions - #2994

Merged
shewa12 merged 3 commits into
devfrom
scrollToActiveCourseTab
Sep 10, 2026
Merged

Scroll to qna tab in course details page from Discussions#2994
shewa12 merged 3 commits into
devfrom
scrollToActiveCourseTab

Conversation

@nur-alam

@nur-alam nur-alam commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Open the course Q&A from a dashboard discussion and native-scroll to the course details tabs via #tutor-course-details-tab-wrapper.
  • Add id="tutor-course-details-tab-wrapper" on the single course tab section and append that hash to the Q&A action URL (?page_tab=qna).
  • Update the YouTube API key field description and placeholder in settings.

…for active course tabs based on URL parameters in `course-landing.js`.

- Updated `single-course.php` to include an ID for the course details tab for better navigation.
- Modified `qna-single.php` to append a hash to the action URL for direct linking to the course details tab.
- Adjusted SCSS styles to include scroll margins for course details tabs, improving layout with respect to the admin bar.
@nur-alam nur-alam changed the title Scroll to course details tab from Q&A Scroll to course details tab from Discussion Sep 9, 2026
@nur-alam nur-alam changed the title Scroll to course details tab from Discussion Scroll to course details tab from Discussions Sep 9, 2026
@nur-alam nur-alam changed the title Scroll to course details tab from Discussions Scroll to qna tab in course details page from Discussions Sep 9, 2026
@nur-alam
nur-alam requested a review from shewa12 September 9, 2026 05:42
@shewa12
shewa12 merged commit a21f3de into dev Sep 10, 2026
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants