• Resolved hongpong

    (@hongpong)


    Hello, the following css in pdfemb-embed.pdf.css breaks totally unrelated elements – by setting

    max-width: none;
    This was marked resolved but it is not.

    .entry-content > :not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.woocommerce), .entry-content > .wp-block-pdfemb-pdf-embedder-viewer
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hongpong

    (@hongpong)

    set the following

        wp_dequeue_style('pdfemb_embed_pdf_css');
        wp_deregister_style('pdfemb_embed_pdf_css');

    using the unusual hook wp_print_footer_scripts

    add_action( 'wp_print_footer_scripts', 'your_function_name', 0  ); // this has to be ZERO
    

    this worked for me. may need wp_enqueue_scripts, wp_footer or wp_head actions as well.

    Hi @hongpong,

    We are sorry for missing to reply in a timely manner.

    Checking the latest version of PDF Embedder 4.6.4, this appears to be solved as we only use a single class that shouldn’t affect anything else:

    .wp-block-pdfemb-pdf-embedder-viewer{max-width:none}
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘max-width breaks many elements’ is closed to new replies.