crabbly / crabbly/Print.js

Can't print with style

Open
#693 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.5k
Forks
688
PR merge metrics
No merged PRs in 30d

Description

Hi!

I'm sorry because I'm pretty sure you've already answered to that question many times but even when I check all topics, I can't solve my problem.

I explain :

I'm using Wordpress > Elementor & Formidable (to get the context).

Inside my Formidable view (Html), I put a button to print my nutritional values but I can't embed CSS with it, I tried to use `targetStyles: ['*']` but nothing works, everytime my print window is ugly.

This is what I want to print (without the print button)
![image](https://github.com/crabbly/Print.js/assets/3245566/7a3ee3db-9635-4c5b-8ffa-019b8c8df3fe)

This is what I get :
![image](https://github.com/crabbly/Print.js/assets/3245566/8684a7b5-f6a6-4318-9672-c83bb237f8ff)

Here the code I inserted : `Imprimer` ([50] is a variable of formidable)

I have correctly imported css and js files inside the head tag :
![image](https://github.com/crabbly/Print.js/assets/3245566/38f65267-2bbf-4328-a70e-80743878f876)

Please, does anyone has a solution for me ? (I can't use external CSS file on my wordpress, all is merged and managed by wordpress).

Thanks a lot!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.