nk-crew / visual-portfolio

Portfolio layouts visual editor with Gutenberg support
https://visualportfolio.co/
GNU General Public License v2.0
44 stars 14 forks source link

jQuery Event: init.vpf not working and no resizing on Window resize #164

Closed schmoe-github closed 2 years ago

schmoe-github commented 2 years ago

Hi NK Crew,

on our page https://www.omnicon.de/ the visual portfolio is not always 100% width. I want to reinit/resize the visual portfolio, when Window is fully loaded or do something else after visual portfolio is finished intializing.

But the jQuery event mentioned in the documentation:

$(document).on('init.vpf', function (event, vpObject) { if ( 'vpf' !== event.namespace ) { return; }

console.log(event, vpObject);

});

is not fired at all and when I resize manually or in JS it does not resize itself as well.

So, how can I achieve to let visual portfolio reinit after the document is loaded or let visual portfolio reinit with a certein method.

We are using

WP Bakery (6.6.0.) with Engage Theme (3.4.7.) and Visual Portfolio Free (2.17.1) on Wordpresss 6.0.0.

Kind regards,

nk-o commented 2 years ago

Hey. I don't see the Visual Portfolio on the link you provided.

schmoe-github commented 2 years ago

It's just on the homepage where these images are shown: visual_portfolio

nk-o commented 2 years ago

This is not a Visual Portfolio plugin.