Support » Theme: Coraline » PDF Attachment Text Overlaps Sidebars

  • Resolved amyritterbusch


    I don’t know if anyone has come across this before, but I use Coraline for a handful of WordPress websites. I came across a problem recently that I fixed and I wanted to post the solution to help others.

    I noticed that when I upload a pdf file to the media library, when I go to the attachment page for the pdf the text goes full width, but the sidebars are still there, so the text and pdf link overlap the sidebars and it looks messy and unreadable. I do not have this problem with jpgs, only pdfs.

    Screenshot of the problem

    I added this code and it fixed my problem:

    .attachment #content {
    	overflow: hidden;
    body.attachment #primary {
    	display: none;
    body.attachment #secondary {
    body.attachment #comments {
    body.attachment #content {
    		margin: 24pt 0 0;
    		width: 100%;

    Screenshot After Code Added to Site

    Link to Live Site

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Kathryn


    Automattic Happiness Engineer

    Thanks for the heads-up and for posting your workaround.

    I was able to replicate the issue when using three of the optional layouts:

    • Sidebar-Content
    • Sidebar-Sidebar-Content
    • Sidebar-Content-Sidebar

    I’m going to report this to our developers as a bug in the theme so the glitch can be fixed in a future version.

    Theme Author Automattic


    Howdy! Thanks for bringing this to our attention. This bug will be fixed in the next version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PDF Attachment Text Overlaps Sidebars’ is closed to new replies.