Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tribulant Software

    (@contrid)

    @blackstar1979

    Thank you for your post and sorry to hear about the problem.

    Does that CSS make your dashboard blank, or?
    Can you please provide a screenshot of what it does exactly?

    I look forward to your response so that we can assist further with this.

    Thread Starter blackstar1979

    (@blackstar1979)

    There is no blank output…
    1. plugin’s js limit columns to 3 (i use 4 as i have wide screen)
    2. plugin overrides admin theme columns widths (there are not null margins too sometimes) so every last column is not at it’s place but after-under

    My margins are 2% so i made my temp solution like this:

    /*** BLACKSTAR CUSTOM ***/
        function dashboard_columns() {
          add_screen_option(
                'layout_columns',
                array(
                    'max'       =>   4,
                    'default'   =>   4
                )
            );
            ?>
          <div id="newsletters-postbox-container-css">
              <style>
            .postbox-container {
                min-width: 23% !important;
            }
            .meta-box-sortables.ui-sortable.empty-container {
                display: none;
            }
            </style>
          </div>
          <script type="text/javascript">
          jQuery(document).ready(function() {
            postbox_container_set_width(jQuery('.columns-prefs input[name="screen_columns"]:checked').val());
            jQuery('.columns-prefs input[name="screen_columns"]').on('click', function(element) {
              var columns = jQuery(this).val();
              postbox_container_set_width(columns);
            });
          });
          var postbox_container_set_width = function(columns) {
            if (columns == 1) {
              jQuery('#newsletters-postbox-container-css').html('<style>.postbox-container { width:98% !important; min-width:98% !important; }</style>');
            } else if (columns == 2) {
              jQuery('#newsletters-postbox-container-css').html('<style>.postbox-container { width:48% !important; min-width:48% !important; }</style>');
            } else if (columns == 3) {
              jQuery('#newsletters-postbox-container-css').html('<style>.postbox-container { width:31% !important; min-width:31% !important; }</style>');
            } else if (columns == 4) {
              jQuery('#newsletters-postbox-container-css').html('<style>.postbox-container { width:23% !important; min-width:23% !important; }</style>');
            }
          }
          </script>
            <?php
        }
    /***.BLACKSTAR CUSTOM ***/

    I couldnt find the hook to override it at my custom functions :/

    (for some reason you made your own columns handle in plugin)

    Plugin Author Tribulant Software

    (@contrid)

    @blackstar1979

    Ah, yes, the Newsletter plugin adds back in the “Number of Columns” setting that WordPress got rid of a few releases back because of new media queries. You’ll see it when you click “Screen Options”

    But it only includes 1, 2, 3 columns, not more. So I’m adding this to our development list so that we can improve this in our upcoming release.

    Thank you for the wonderful feedback!

    Thread Starter blackstar1979

    (@blackstar1979)

    Yes, because now it auto adjust number of columns in dashboard (for my resolution its 4 on new install)… maybe you will add your custom columns fix as additional option to choose if wanted?

    Plugin Author Tribulant Software

    (@contrid)

    @blackstar1979

    We have fixed/improved this in our latest development.
    You will now be able to specify 1, 2, 3 and 4 dashboard columns.
    Unfortunately the maximum is 4, WordPress doesn’t recognize anything higher than that.

    We will release an update of the Newsletter plugin shortly with this fix included.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘.postbox-container destroys admin dashboard’ is closed to new replies.