[Plugin: Open Menu] Attribute link styles hardcoded
-
The attribute link currently is in solid blue. This does not work with the theme I’m using (as the background is close to black, and the resulting text is unreadable). The issue is that the element has styles applied to it directly, and as such is difficult to override.
Attached patch causes the default styles to be moved into the default theme style css file, and applies a new id to the blocks for easy identification.
diff --git templates/default/styles/style.css templates/default/styles/style.css index 48055ad..4e51275 100644 --- templates/default/styles/style.css +++ templates/default/styles/style.css @@ -84,6 +84,8 @@ -------------------------------------------------------------------*/ .om_tag {font-size:.75em;color:#00f;text-align:center;} +#om_menu #om_attr a { font-size: .9em; color: #00f; text-align: center; display: block; } + /*------------------------------------------------------------------ IE7 Hack -------------------------------------------------------------------*/ diff --git toolbox/class-omf-render.php toolbox/class-omf-render.php index 70fe07f..9369f40 100644 --- toolbox/class-omf-render.php +++ toolbox/class-omf-render.php @@ -386,7 +386,7 @@ class cOmfRender { } if (!$this->hide_attribute) { - $retval .= '<small><a href="https://openmenu.com" style="font-size:.9em;color:#00f;text-align:center;display:block">powered by OpenMenu</a></small>'; + $retval .= '<small id="om_attr"><a href="https://openmenu.com">powered by OpenMenu</a></small>'; } $retval .= '</div><!-- #om_menu -->'; @@ -866,4 +866,4 @@ class cOmfRender { } } // END CLASS -?> \ No newline at end of file +?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Open Menu] Attribute link styles hardcoded’ is closed to new replies.