• 0

Admin CSS Issue, PageLines 2.4.4 w/ WordPress 3.5.2


Question

Posted · Report post

PageLines admin.css overrides WordPress CSS; background CSS shorthand property assigns explicit given values and sets missing properties to their initial values.
 
Due to the added <body> class 'toplevel_page_PageLines-Admin'...
 
<body class="wp-admin wp-core-ui js pagelines_ui toplevel_page_PageLines-Admin folded auto-fold admin-bar branch-3-5 version-3-5-2 admin-color-fresh locale-en-us no-customize-support">
 
...the PageLines CSS...
 
./wp-content/themes/pagelines/admin/css/admin.css?ver=2.4.4 (line 127)
 
.toplevel_page_PageLines-Admin .wp-menu-image{
background: transparent url('../images/favicon-pagelines.png') no-repeat 50% 50%;
background-size: 20px 20px;
}
 
...is overriding WordPress CSS, changing the background style for ALL elements with the wp-menu-image class on the admin page (not just PageLines elements), and resulting in corrupted admin menu backgrounds.
 
Given the PageLines HTML...
 
<li id="toplevel_page_PageLines-Admin" class="wp-has-submenu wp-has-current-submenu wp-menu-open menu-top toplevel_page_PageLines-Admin menu-top-first menu-top-last">
<a class="wp-has-submenu wp-has-current-submenu wp-menu-open menu-top toplevel_page_PageLines-Admin menu-top-first menu-top-last" href="admin.php?page=PageLines-Admin">
<div class="wp-menu-arrow"><div></div></div>
<div class="wp-menu-image"><br></div>
<div class="wp-menu-name">PageLines</div>
</a>
...
...changing the PageLines CSS by adding the anchor element, or using the id attribute of the li element instead of the class attribute, resolves the issue...
 
./wp-content/themes/pagelines/admin/css/admin.css?ver=2.4.4 (line 127)
 
a.toplevel_page_PageLines-Admin .wp-menu-image{
background: transparent url('../images/favicon-pagelines.png') no-repeat 50% 50%;
background-size: 20px 20px;
}
 
Is this a PageLines bug or am I missing something?
 

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

Posted · Report post

Hi there,

 

I'll ask one of our developers to take a look at the code you've provided, if you could send a screenshot of how it's displaying as well we'll forward this over to them as well.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Images attached. As per code in earlier post, the PageLines admin.css replaces the WordPress styles for WordPress items when the PageLines menu page is selected.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for the update 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now