Row as link to page
-
Hey @arminunruh @Richard
I've been playing around to achieve a similar thing to where this thread started - where each row in a table acts as a single link to another page. After lots of trial and error (I am a novice with jQuery/html) I managed it with the following:
<tr onclick="location.href='http://www.websitelink.com'" style="cursor: pointer">
<td>...</td>
<td>...</td>
<td>...</td>
</tr>What I'm stuck on is the mouseover/hover. I've managed to make it so all text in the whole row becomes italic, but I'd like for all the text in the row to become a colour at the same time.
In the custom CSS I currently have:tr:hover
{
color: #B2AAE3;
font-style: italic;
cursor: pointer;
}Here is the link to the page:
https://www.vashtiali.com/writing-copy/Thanks!
-
maybe try this:
tr:hover { color: #B2AAE3!important; font-style: italic; cursor: pointer; }
or try this:
tr:hover{ cursor: pointer; } tr:hover > * { color: #B2AAE3!important; font-style: italic; }
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it