Making WordPress.org

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's profile 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)

2317.diff (1.0 KB) - added by audrasjb 7 years ago.
add accessible link to specific sections on plugin's page
Capture d’écran 2017-10-26 à 10.55.01.png (57.9 KB) - added by audrasjb 7 years ago.
rendering

Download all attachments as: .zip

Change History (10)

#1 @dd32
8 years ago

This is already implemented, however there isn't a visible link for it.

Example: https://wordpress.org/plugins-wp/debug-bar/#changelog

#2 @dd32
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.

#3 @Ipstenu
8 years ago

Related #2278

#4 @Ipstenu
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 @melchoyce
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

@audrasjb
7 years ago

add accessible link to specific sections on plugin's page

#6 @audrasjb
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 @obenland
7 years ago

Tabs and FAQ sections can be linked to directly. That feels like it's what we need for now?

#8 @obenland
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.

Note: See TracTickets for help on using tickets.