Delete underline from hypertext (linked text)

When putting hypertext in table, the underline makes the content much harder to read.
image

Is there any way to delete the underline from hypertext, but still have the text linked to a website?

Hi @jandab – yes, this can be done with CSS (set text-decoration: none; for a elements inside of tables): Apply Custom Styles – Pressbooks User Guide. You should note that removing it may produce accessibility issues for some of your readers, since underlining is a very common way of indicating that the text in question is a link and color is not a sufficient method for distinguishing content for all users (see Avoid reliance on color | Digital Accessibility​).

image

Do you need to somehow activate a possibility to make a custom style?
I don’t see that option.

Where are you creating this book and what theme are you using? Sending along the output of the diagnostics page would also be helpful https://[YOURBOOKURL]/wp-admin/options.php?page=pressbooks_diagnostics. Custom CSS has been available on Pressbooks and its main themes for a long time now, but perhaps you’re using a very old theme or on an open source network that hasn’t been updated for a while?

System Information

Book Info

Book ID: 1360
Book URL: 063-0640-22L 2022S: Grasshopper Fundamentals – Simple Book Publishing
Book Privacy: Public

Browser

Platform: Windows
Browser Name: Chrome
Browser Version: 102.0.0.0
User Agent String: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36

WordPress Configuration

Network URL: https://wp-prd.let.ethz.ch/
Network Type: Subdirectory
Version: 5.7.6
Language: en_US
WP_ENV: Not set
WP_DEBUG: Enabled
Memory Limit: 64M

Pressbooks Configuration

Version: 5.20.1
Book Theme: McLuhan Child
Book Theme Version: 0.3.1
Root Theme: McLuhan
Root Theme Version: 2.3.0

Pressbooks Dependencies

Epubcheck: Not Installed
Kindlegen: Not Installed
xmllint: Installed
PrinceXML: Installed
Saxon-HE: Not Installed

Must-Use Plugins

hm-autoloader.php: n/a

Network Active Plugins

Advanced Automatic Updates: 1.0.2
ARI Adminer: 1.2.3
ETH Zürich Polybook Customs: 0.6.1
H5P: 1.15.4
PBPrivate: 1.0.0
Pressbooks: 5.20.1
Pressbooks eskript: 0.1.3.2
Pressbooks LTI Provider: 1.3.5
VotingStar: 1.0.0

Book Active Plugins

Advanced Automatic Updates: 1.0.2
ARI Adminer: 1.2.3
ETH Zürich Polybook Customs: 0.6.1
H5P: 1.15.4
PBPrivate: 1.0.0
Pressbooks: 5.20.1
Pressbooks eskript: 0.1.3.2
Pressbooks LTI Provider: 1.3.5
VotingStar: 1.0.0

Inactive Plugins

LTI: 99.1
mPDF for Pressbooks: 3.2.4
WP QuickLaTeX: 3.8.6

Server Configuration

PHP Version: 7.3.33
MySQL Version: 5.5.5
Webserver Info: Apache/2.4.37 (Red Hat Enterprise Linux) OpenSSL/1.1.1k mod_fcgid/2.3.9

PHP Configuration

Safe Mode: Disabled
Memory Limit: 2048M
Upload Max Size: 64M
Post Max Size: 64M
Upload Max Filesize: 64M
Time Limit: 600
Max Input Vars: 3000
URL-aware fopen: On (1)
Display Errors: N/A

PHP Extensions

OPcache: Zend
XDebug: Disabled
cURL: Supported
cURL Version: 7.61.1
imagick: Installed
xsl: Installed

Hi @jandab it looks like your book is on an self-hosted open source Pressbooks network and is using a custom child theme of McLuhan. You’ll have to talk to whomever hosts your network about this, as it’s not something that we have any control over at Pressbooks. It could be a role permission issue (maybe you don’t have sufficient permissions to do this in your book), or it might be something they’ve disabled for this custom theme. I’d try to contact whomever invited you to create/access your book at ETH Zurich? Good luck!