WordPress.org

Forums

WP Google Map Plugin
[resolved] Unnecessary styles in admin area (8 posts)

  1. m_i_n
    Member
    Posted 1 year ago #

    Is it necessary for the plugin to print in the whole admin area the following styles?

    label{
    	padding-bottom:5px;
    	font-weight:bold;
    	margin-left:10px;
    }
    .success{
    	background-color:#CF9 !important;
    	border:1px solid #903 !important;
    }

    Such general selector as 'label' affects whole admin area - often destroys styles of WP options and other components.

    https://wordpress.org/plugins/wp-google-map-plugin/

  2. Flipper Code
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    This'll not affect your other part of the admin because we're loading scripts only on the plugin's own pages.

    add_action('load-'.$pagehook_name_here, 'call_function_here');

    Thanks

  3. m_i_n
    Member
    Posted 1 year ago #

    I wouldn't report issue, if that would be the case. Unfortunately, those styles DO affect whole dashboard (it's printed everywhere). Please have a look:

    http://snag.gy/Wffno.jpg

    You can visit for example Settings / Reading and see in the HTML code.
    Disabling the plugin makes it back to normal.

  4. Flipper Code
    Member
    Plugin Author

    Posted 1 year ago #

    that's a strange for me also. we'll take an action on it and will update the plugin. Thanks for your information about the plugin.

  5. m_i_n
    Member
    Posted 1 year ago #

    Thank you.

    BTW, to be safe (except adding styles only if needed), I recommend to wrap it all with a container, and use selectors like:

    .my-plugin-container label { ... }

  6. m_i_n
    Member
    Posted 1 year ago #

    I can see you've fixed in 2.3.5 unnecessary code on every admin page, but one file (http://snag.gy/eqtsF.jpg) still affects WordPress messages. You can see it in the previous screen - "Settings saved" box.

  7. Flipper Code
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    Thanks for your very depth attention towards the plugin and we're taking care of these changes. Something else, Do you do freelance work too? we need someone like you who can take a close look on our all plugins and do programming for it's customization.

    Thanks

  8. Flipper Code
    Member
    Plugin Author

    Posted 10 months ago #

    I hope all issues are solved. Please open a new thread if you have any question.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Google Map Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic