• I am using the (theme leftside) found in the wordpress repo. Anyway i am trying to create a printer friendly version of the woocommerce search results page, I only want the search result page to display a list of the products that were search and NOT show the sidebar,etc this way it will be printer friendly. How do I go about this? any help in the correct direction would help

    https://www.ads-software.com/plugins/woocommerce/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Please post the url for your site.

    Thread Starter scoobydino

    (@scoobydino)

    Try this in your custom css:

    .search-results #header {display:none}

    If your theme does not have a setting where you can enter custom css, you can use a plugin like this one:
    https://www.ads-software.com/plugins/simple-custom-css/

    Thread Starter scoobydino

    (@scoobydino)

    not working. everything still remains on the page. I would like to have a printer friendly version of the search results, or have a button that opens a new page with a printer friendly version of the search results for easy printing, as it stand now, as you may or can see is that when you go to print it displays the product menu(sidebar left), and everything on page. Thanks

    Where did you put the style? I can’t find it in the page. If you removed it after testing, please could you put it back so I can debug it.

    Thread Starter scoobydino

    (@scoobydino)

    I put in my themes style.css I do not have a child theme. It is in the the folder directly I add comments in there too so you could see it, its on top of css.

    Thread Starter scoobydino

    (@scoobydino)

    comments say PRINTER FRIENDLY

    I found it now. Its working for me. I go to:
    https://aceto.briechle-fernandez.com/product_catalog/
    I type in a word and click “Search”. A page of results comes up without a sidebar.

    Consider using the custom css plugin so you don’t lose your edits when you update your theme.

    Thread Starter scoobydino

    (@scoobydino)

    yes i see it now working yes thats kind of what i want, but how or point me in correct direction.

    when I do a search or click on catagory on left to filter results get that page to pront a “printer friendy version”

    lets say there is a button that says “print” on the page and that goes to printer friendly version of the results. I tries wp-print but doesnt seems to work. it seems you are on the correct path. I just dont know how to do this.

    OK, delete that css snippet – its not going to give you a print-link.

    Activate the WP-Print plugin. Re-save permalinks. Then put:

    <?php if(function_exists('wp_print')) { print_link(); } ?>

    in search.php.

    Try putting it near the bottom but just above:

    <div class="post-nav">

    though some experimentation with the position may be needed.

    With the current version of LeftSide, this works at line 65. However the code in your theme version is different.

    Take some notes – you’ll need to do this each time you update your theme.

    Thread Starter scoobydino

    (@scoobydino)

    Okay thanks, Will This work for Woocommerce though??
    isn’t search.php part of just WordPress search?

    Ill give it a try could you recheck this post tomorrow again I really appreciate all the help.

    You are a MASTER the BEST I have seen.

    WooCommerce search outputs using search.php from the theme.

    The bad news is I think this is just printing one search result, not all of them. Presumably you don’t want a “print this post” link for each result. Might need to think again.

    WP-Print is not designed to print all the posts on a page:
    https://www.ads-software.com/support/topic/print-all-posts-2?replies=2

    However, this one will, no need to alter search.php.
    https://www.ads-software.com/plugins/pdf-print/

    Thread Starter scoobydino

    (@scoobydino)

    Thanks for all the help I tried it and its just what I need. I am just trying to customize the template it outputs so the decsriptions dont show. also remove print button on certain pages (like the home page)

    thanks

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Printer friendly search results page WOOCOMMERCE’ is closed to new replies.