Current Post/Page Ancestor, CSS

This should be on stackoverflow. If I understand correctly what you want, you need to change: .sf-menu li:hover, .sf-menu li.sfHover, .sf-menu li a:focus, .sf-menu li a:hover, .sf-menu li a:active { outline: 0; background: #AF1D21 } with: .sf-menu > li:hover, .sf-menu > li.sfHover, .sf-menu > li a:focus, .sf-menu > li a:hover, .sf-menu > li a:active { … Read more

Site layout problems when logged in due to admin bar

This is really just a CSS question. The admin bar does its best to do this for all sites by giving a top margin to the <html> element: margin-top: 28px !important; But if the theme uses certain positioning methods, that rule won’t have the desired effect, which is what is happening in your case. From … Read more

Is it possible to make invisible a div only on certain pages using CSS?

You need to target the specific pages with the build in body_class selectors. Themes have a template tag for the body tag which will help theme authors to style more effectively with CSS. The Template Tag is called body_class. This function gives the bodyelement different classes and can be added, typically, in the header.php’s HTML body tag.

Installing non-standard fonts [closed]

If your font is free convert it http://onlinefontconverter.com. open type can be used in website try appending format(“opentype”). I will strongly suggest converting this from from given link, if your font is free and open source. @font-face { font-family: UtopiaStd; src: url(‘/wp-content/themes/opti-child/UtopiaStd-Regular.otf’) format(“opentype”); }