How to create print functionality
Plugin need to be activate for this: Print Friendly and PDF
To achieve print functionality you need to complete 3 steps.
- Configuring plugin
- Creating print page
- Inserting print button on property detail page
After activation plugin navigate to
Dashboard > Settings >Print Friendly & PDF
and configure everything as per following image;
button path is /wp-content/uploads/sites/9/2016/10/PRINT.png
and CSS path is https://yourdomainname.com/wp-content/plugins/resalesonline-webkit/css/style.css
Note: change yourdomainanem with url of web on which you are working.
Now create a page with title Print and select Blank page as page template
now insert shortcode of print plugin anywhere on page
now create a page layout as per your desire by using shortcodes of property detail page.
or you can use following shortcode to save time.
Create a button to trigger print functionality. To do so you have to go back to Property page (page which you have created for property details) and insert following shortcode anywhere;
href=”/print” is slug of print page that you created for print layout.
class=”print” is used to control styling of button