Replies: 1 comment
|
Thanks! This shipped as a built-in feature in v2.0.0 — every card on the Species page now has All About Birds/eBird (following your INFO_SITE setting) and Wikipedia pills, plus a "Details & history" link to the bird's full detail page. Your patch guide worked well in the meantime, so thank you for writing it up. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The Species page currently lacks the Info and Wikipedia quick-link buttons that appear on the Overview and Recordings pages. Here's how to add them. The change requires two small edits to
scripts/species.php— one CSS block and one HTML block.Step 1 — Open the file
nano ~/BirdNET-Pi/scripts/species.phpStep 2 — Add the CSS
Use Ctrl+W to search for this exact line:
You'll land on a line that looks like this:
Place your cursor at the end of that line and press Enter to create a new line. Paste these four lines:
Step 3 — Add the HTML
Use Ctrl+W to search for this exact line:
There is only one
</table>in this file. It's inside the species card loop and looks like this in context:Place your cursor at the end of the
</table>line and press Enter. Paste these six lines:Step 4 — Save and exit
Press Ctrl+O, then Enter to save. Press Ctrl+X to exit nano. No service restart needed — reload the Species page in your browser and each card will show the links.
Notes:
.species-card-linksso it won't affect any other part of the UI.zach7036Enhanced Version fork running on Raspberry Pi 4B with RaspiOS Bookworm.All reactions