WordPress.org

Ready to get started?Download WordPress

Forums

Printing Header image in Twenty Twelve (7 posts)

  1. usaadi
    Member
    Posted 10 months ago #

    Hello,

    I have a child theme based on Twenty Twelve. When I try to print the blog page, the header image fails to print. As far as I can tell, the header image is not a background, so why isn't it printing? What can I do to make it printable?

    link to website

    Thanks,
    usaadi

  2. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of assistance.

  3. usaadi
    Member
    Posted 10 months ago #

    I edited the post with the link. Here it is again: http://www.almontadaalarabi.com/

  4. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    You need to over-write :

    .author-avatar,
    	#colophon,
    	#respond,
    	.commentlist .comment-edit-link,
    	.commentlist .reply,
    	.entry-header .comments-link,
    	.entry-meta .edit-link a,
    	.page-link,
    	.site-content nav,
    	.widget-area,
    	img.header-image,
    	.main-navigation {
    		display: none;
    	}

    at line 1662 of the parent theme'#s stylesheet in your child theme's CSS for img.header-image.

  5. usaadi
    Member
    Posted 10 months ago #

    Yes, that seems to be what I was looking for. Thanks for the quick reply.

  6. alchymyth
    The Sweeper & Moderator
    Posted 10 months ago #

    check the 'print styles' section in style.css of Twenty Twelve (near the end).

    img.header-image is in the list of items with display: none;

    overwrite this in the child theme's style.css, with:

    @media print {
    	img.header-image {
    		display: block;
    	}
    }
  7. usaadi
    Member
    Posted 10 months ago #

    I made the changes and now the header image appears in print preview. I don't have access to a printer at the moment, but I'm sure it will work now. Thanks a lot.

Reply

You must log in to post.

About this Topic