Remove wp-container-8 element from wordpress default blank template

  • Unknown's avatar

    Hi support,

    I want to remove these elements from wordpress default blank template.

    .wp-container-8 > :where(:not(.alignleft):not(.alignright)) {
    max-width: 664px;
    margin-left: auto !important;
    margin-right: auto !important;
    }

    How is it possible in custom CSS?

    Thanks

    The blog I need help with is: (visible only to logged in users)

  • Hi @makototaguchi1110, removing that hides the entire page. Did you just want to start over with the page?

    If you want to see what removing it looks like:

    .wp-container-8 > :where(:not(.alignleft):not(.alignright)) {
      display: none;
    }

    If you want to try unsetting those attributes rather than removing those elements, here’s how:

    .wp-container-8 > :where(:not(.alignleft):not(.alignright)) {
        max-width: unset !important;
        margin-left: unset !important;
        margin-right: unset !important;
    }
  • The topic ‘Remove wp-container-8 element from wordpress default blank template’ is closed to new replies.