#1632 closed defect (bug) (fixed)
Remove link from function/hook/whatever title
| Reported by: | theMikeD | Owned by: | coffee2code |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Developer Hub | Keywords: | has-patch |
| Cc: |
Description
Example: https://developer.wordpress.org/reference/functions/add_meta_box/
The title should not be a link. It links to itself (which makes no sense) and it makes it difficult to copy a sub-section of it.
Attachments (2)
Change History (8)
#2
@
11 years ago
I would, yeah. Wrap it in a span and target that for styling. There' no reason for this to be a link at all is there?
This ticket was mentioned in Slack in #meta by chris_dev. View the logs.
11 years ago
#5
follow-up:
↓ 6
@
11 years ago
Thanks for the patch, @chris_dev!
FYI, differences between what was committed and 1632.1.diff:
- Did not remove link from content-reference-archive.php (visitors need to actually get to pages listed in an archive).
- Retained bottom-border styling for
h1 a:hoverlinks (it still applies for archives). - Adjusted text-indent (formerly a margin-left) for the various responsive breakpoints.
- Made changes to main.scss and regenerated main.css from that. (see the docs for contributing to DevHub for more info about this).
#6
in reply to: ↑ 5
@
11 years ago
Thanks for the advice, This is my first time contribute for Meta.
I will keep it in my mind about scss
Replying to coffee2code:
Thanks for the patch, @chris_dev!
FYI, differences between what was committed and 1632.1.diff:
- Did not remove link from content-reference-archive.php (visitors need to actually get to pages listed in an archive).
- Retained bottom-border styling for
h1 a:hoverlinks (it still applies for archives).- Adjusted text-indent (formerly a margin-left) for the various responsive breakpoints.
- Made changes to main.scss and regenerated main.css from that. (see the docs for contributing to DevHub for more info about this).
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I just replaced href value to "#" cause if I get the anchor tag off, style of the title is broken.