Welcome to Togethernet Web Design, Teddington › Forums › ProductPrint Pro Support › Visual Composer
- This topic has 16 replies, 2 voices, and was last updated 6 years, 1 month ago by togethernet.
-
AuthorPosts
-
May 18, 2016 at 11:38 am #1075Geoff ElliottParticipant
We have a product page built with visual composer and it looks great on the screen.
However, when we try to print, a number of the visual composer shortcodes appear on the printout too (as they are located within the course description area)
Is it possible – even with further bespoke customisation to edit the output for this?
Thanks
May 18, 2016 at 12:10 pm #1076togethernetKeymasterHi Geoff
This problem was reported earlier, unfortunately I have not had a chance to delve into it.
However, the other user who reported it suggested this:Add the following:
WPBMap::addAllMappedShortcodes();
to the print plugin code just before it outputs the content.
May 18, 2016 at 3:45 pm #1077Geoff ElliottParticipantThanks for the suggestion, I am not au fait with in depth coding, would you be able to advise which PHP file I need to add the code into and what line to add it after please?
Thanks
May 18, 2016 at 3:55 pm #1078togethernetKeymasterIf you can give me admin access to your site dashboard (email me at admin@togethernet.co.uk) I can give it a try for you, otherwise I would need to set up a testbed with Visual Composer installed and that might take me some time to sort.
I’d soon be able to tell if it would work, and if not I am happy to refund you. I am aware that the plug-in will not work with every theme on the market.
Regards
Ken
October 6, 2016 at 10:20 am #1155Geoff ElliottParticipantI am unable to give you access due to our security restrictions, however, if you can please tell me the name of the file and the line where I need to copy the code above I can try it.
Thanks
October 31, 2016 at 12:12 pm #1169Geoff ElliottParticipantI still have this issue, are you able to assist please?
I am not sure where I need to add this in
WPBMap::addAllMappedShortcodes();Thanks
October 31, 2016 at 12:50 pm #1170Geoff ElliottParticipantI still have this issue, are you able to assist please?
I am not sure where I need to add this in
WPBMap::addAllMappedShortcodes();Thanks
October 31, 2016 at 1:10 pm #1171Geoff ElliottParticipantI have managed to figure it out and the fix you mentioned has worked.
I would be interested in some further support/customisation, can you please contact me to discuss?
Thanks
October 31, 2016 at 1:35 pm #1172togethernetKeymasterI have tried Visual Composer and had a little limited success.
If you try editing the file tpl-print.php
and add the following code imediately after the<?php WPBMap::addAllMappedShortcodes(); ?>
This may work for some Visual Composer shortcodes but certainly not all.
Visual Composer is useful but does interfere with the working of a number of plugins.October 31, 2016 at 1:37 pm #1173togethernetKeymasterWell done indeed – it didn’t work great for me – so it would be helpful to know what changes you made.
What customisations are you interested in?
October 31, 2016 at 1:41 pm #1174Geoff ElliottParticipantI added the code here
//the array_merge checks if there are any missing keys (settings) from $ops, our custom options in the backend
$ops = array_merge($def, $ops);WPBMap::addAllMappedShortcodes();
//now we are going to output the HTML to the print page
?>
and so far it appears to have removed all of the Visual Composer short codes 🙂
If possible, I would like to be able to format the output to fit onto one sheet and to exclude certain elements – is that possible?
Thanks
October 31, 2016 at 2:35 pm #1175togethernetKeymasterYes that should be possible using CSS to adjust the element sizes and possibly using the display attribute to control display of certain elements.
The plugin has its own css file where you can tweak the definitions- This reply was modified 7 years, 10 months ago by togethernet.
October 31, 2016 at 2:42 pm #1177Geoff ElliottParticipantThank you for the quick reply – Can you please confirm which CSS file we would need to edit, however, as you developed the plugin, I would rather cover the cost of your time to make some tweaks for us.
We would like to remove the images from the print out completely – as well as the video file which should then allow the information to all fit on one page?
Thanks
November 3, 2016 at 10:07 am #1178Geoff ElliottParticipantMorning,
Are you able to help me with this please? – are you able to change the stylesheet for me?
Thanks
November 3, 2016 at 4:39 pm #1179togethernetKeymasterYes – but will need admin access to do this. (See trail above)
-
AuthorPosts
- You must be logged in to reply to this topic.