Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Themes & Styling

How to make Receptar theme print friendly?

theme

Started by Anthony J Cervo 6 years ago · 4 replies · 698 views
6 years ago

I'm setting up the Receptar theme for a recipe site, and it seems well suited. The problem is it isn't print friendly at all. For a recipe site, that's pretty important. I tried the Print Friendly plugin, but it only prints the instructions (main page content). Since Receptar puts all the ingredients (plus other metadata like difficultly, how many servings, etc.) in the head section (where you normally put things like title:, date: etc.), I'm wondering how I can make it printer friendly and also print the ingredients.

6 years ago

tcervo,

Have you tried using a media query to make adjustments for printing?

For example something like:

@media print {

masthead,

CSS
.entry-media.resp_video,
.secondary,
.site-header-widgets,
.sharedaddy.sd-sharing-enabled,
.jp-relatedposts,
.comments-area-wrapper {
    display: none !important;
}
.site-inner,
#content,
.site-content {
    max-width: 100% !important ;
    width: 100% !important;
    margin: 0 !important;
}

}

6 years ago

Thanks for the suggestion. I'll give that a try this weekend. For now, I've just started moving the ingredients into the body.

5 years ago

Hi there - Did you try this? Did it work? can you please share your feedback ?

👍 1
5 years ago

A feedback on that matter would be very appreciated. How did you solve the problem?

👍 1

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 196 2 months ago
Themes & Styling · by Ian, 2 months ago
3 92 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 454 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 47 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 126 3 months ago