Search code examples
templatesbloggerblogger-dynamic-views

Unwanted box in blogger posts


blogger post

Any suggestions on how to remove the white box in the attached image? I have installed a customer theme and disabled comments on the page. But cant seem to get rid of the box. Many thanks in advance.


Solution

  • You have disabled comments but comments div still there and has padding and background. Paste this code before </head> element to hide comments div in all static pages.

    <b:if cond='data:blog.pageType == "static_page"'>
      <style>
        #comments {display: none}
      </style>
    </b:if>
    

    Or if you want to hide the div in a specific page use the next and change page URL to your page URL.

    <b:if cond='data:blog.url == "page URL"'>
      <style>
        #comments {display: none}
      </style>
    </b:if>