CSS issues for active state on menu links
-
Hi, I am having trouble applying CSS to style my links in italic when active–works on hover. I'm sure it is something very simple that I'm doing wrong. I have applied the following code:
a:hover {
font-family:Lifeitalics;
}
a:active {
font-family:Lifeitalics;
}Also on the projects page I am noticing faint lines from the thumbnail images on hover which should be covered by the titles on mouseover.
Lastly, is there a way to make the site title non-clickable?
My website is: www.normanwilcoxgeissen.com
Many thanks,
Norman -
Dear @Organstudio
-
Italic
The italics seems to work now. Did I miss something? -
Lines
I can't see any faint lines. Can you upload a screenshot? -
Title
Yes. With a trick. But you could add a CUSTOM CSS which says:
.sitetitle.txt { pointer-events: none; }Best!
Marius
-
-
Hi Marius,
Many thanks for your response.
-
The italics work for hover but I would like the state (italics) to remain on selection so as to identify the page that is active. Is there an easy way to implement this with CSS?
-
Lines – I have since modified the design slightly so all good here.
-
Title CSS – perfect thanks!
All best,
Norman -
-
-
@mariusjopen said in CSS issues for active state on menu links:
.current-menu-item a {
font-family: Lifeitalics;
}Hi @mariusjopen
Yes that works perfectly!
Many thanks!
Norman -
@mariusjopen said in CSS issues for active state on menu links:
.current-menu-item a {
font-family: Lifeitalics;
}Hi @mariusjopen
Yes that works perfectly!
Many thanks!
NormanThis post is deleted! -
Dear @Organstudio
can I ignore the last comment you made?
It looks like you deleted it.Best!
Marius
For paid 1-on-1 Lay Theme Coaching, contact Audrey (audrey@cyberslayers.work) or me (info@laytheme.com).
We also code custom websites or bespoke Lay features. Drop me a line at info@laytheme.com or check out my work at arminunruh.com.
Want to support my work? paypal.me/arminunruh
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