WordPress.org

Ready to get started?Download WordPress

Forums

Coraline
[resolved] PDF Attachment Text Overlaps Sidebars (3 posts)

  1. amyritterbusch
    Member
    Posted 5 months ago #

    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 {
    	display:none;
    }
    
    body.attachment #comments {
    	display:none;
    }
    
    body.attachment #content {
    		margin: 24pt 0 0;
    		width: 100%;
    	}

    Screenshot After Code Added to Site

    Link to Live Site

  2. 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.

  3. automattic
    Member
    Theme Author

    Posted 5 months ago #

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

Reply

You must log in to post.

About this Theme

About this Topic