Title: [Plugin: Open Menu]  Attribute link styles hardcoded
Last modified: August 21, 2016

---

# [Plugin: Open Menu] Attribute link styles hardcoded

 *  Resolved [achbed](https://wordpress.org/support/users/achbed/)
 * (@achbed)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/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="http://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="http://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
       +?>
       ```
   
 * [http://wordpress.org/plugins/open-menu/](http://wordpress.org/plugins/open-menu/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [OpenMenu](https://wordpress.org/support/users/openmenu/)
 * (@openmenu)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/plugin-open-menu-attribute-link-styles-hardcoded/#post-4063936)
 * Thanx for this. We will look at getting this updated in our next release.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Open Menu] Attribute link styles hardcoded’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/open-menu_fefefe.svg)
 * [OpenMenu - The official plugin for OpenMenu](https://wordpress.org/plugins/open-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/open-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/open-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/open-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/open-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/open-menu/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [OpenMenu](https://wordpress.org/support/users/openmenu/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/plugin-open-menu-attribute-link-styles-hardcoded/#post-4063936)
 * Status: resolved