Visual Composer

This topic contains 16 replies, has 2 voices, and was last updated by  togethernet 1 year, 10 months ago.

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #1075

    Geoff Elliott
    Participant

    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

    #1076

    togethernet
    Keymaster

    Hi 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.

    #1077

    Geoff Elliott
    Participant

    Thanks 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

    #1078

    togethernet
    Keymaster

    If 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

    #1155

    Geoff Elliott
    Participant

    I 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

    #1169

    Geoff Elliott
    Participant

    I still have this issue, are you able to assist please?

    I am not sure where I need to add this in
    WPBMap::addAllMappedShortcodes();

    Thanks

    #1170

    Geoff Elliott
    Participant

    I still have this issue, are you able to assist please?

    I am not sure where I need to add this in
    WPBMap::addAllMappedShortcodes();

    Thanks

    #1171

    Geoff Elliott
    Participant

    I 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

    #1172

    togethernet
    Keymaster

    I 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.

    #1173

    togethernet
    Keymaster

    Well 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?

    #1174

    Geoff Elliott
    Participant

    I 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

    #1175

    togethernet
    Keymaster

    Yes 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 3 years, 6 months ago by  togethernet.
    #1177

    Geoff Elliott
    Participant

    Thank 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.

    Biology

    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

    #1178

    Geoff Elliott
    Participant

    Morning,

    Are you able to help me with this please? – are you able to change the stylesheet for me?

    Thanks

    #1179

    togethernet
    Keymaster

    Yes – but will need admin access to do this. (See trail above)

Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in to reply to this topic.