Opened 8 years ago
Closed 7 years ago
#2317 closed enhancement (worksforme)
Plugin Directory: Provide a way to link to a specific section on pages
Reported by: | tellyworth | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Plugin Directory | Keywords: | has-patch has-screenshots |
Cc: |
Description
It should be possible to create a link directly to the Screenshots, FAQ, etc.
Section headings could be #anchors, or a small anchor placed beside them. Linking directly to a section should automatically expand that section.
Attachments (2)
Change History (10)
#2
@
8 years ago
Based on https://wordpress.slack.com/archives/meta/p1481131005000350 it looks like this could be a request to link to specific FAQ entries.
#4
@
8 years ago
- Milestone changed from Plugin Directory v3.0 to Plugin Directory v3 - Future
- Summary changed from Provide a way to link to a specific section on plugin detail pages to Plugin Directory: Provide a way to link to a specific section on pages
#5
@
7 years ago
For now I'd recommend using https://developer.wordpress.org/resource/dashicons/#admin-links, but a new anchor Dashicons could be nice. cc @empireoflight
#6
@
7 years ago
- Keywords has-patch has-screenshots added
Hello,
2317.diff
is my first attempt for this ticket.
It simply add link to anchor with @melchoyce admin-links
dashicons.
The HTML code is inspired by handbooks similar links (see https://make.wordpress.org/docs/handbook/developer-resources/handbooks/#whats-needed-at-the-moment for example).
Unfortunately, I can't edit CSS files as it is generated with preprocessors, I am afraid to do something stupid :)
CSS rules to add:
– on .section h2:first-of-type
add display: inline-block
– add the following new rules:
.section .anchor { display: inline-block; line-height: normal; text-decoration: none; } .section .anchor:hover, .section .anchor:focus { text-decoration: underline; }
Is something is wrong, feel free to ask me some fixes :)
Cheers,
Jb
#7
@
7 years ago
Tabs and FAQ sections can be linked to directly. That feels like it's what we need for now?
#8
@
7 years ago
- Milestone Plugin Directory v3 - Future deleted
- Resolution set to worksforme
- Status changed from new to closed
With the exception of the Contributors & Developers section in the Details tab, all sections can be linked to. Contributors & Developers are available in the Advanced view as well.
This is already implemented, however there isn't a visible link for it.
Example: https://wordpress.org/plugins-wp/debug-bar/#changelog