The plugin doesn’t support removing on demand the “previous” button on the final step.
You can hack a bit the plugin to remove the “previous” button on the final step, but by doing this you won’t be able in the future to update the plugin.
For hacking you need to replace the line 83 in the plugin’s /assets/js/script.js file from:
if ( theIndex != 0 ) $('#wpmc-prev').addClass('current');
to
if ( theIndex != 0 || theIndex < sections.length - 1) $('#wpmc-prev').addClass('current');
then minify the /assets/js/script.js file to /assets/js/script.min.js.
i see, how about just hiding it? maybe disable the link and using css to hide the button?
Please try to hide the button with CSS and let me know how that works.
hey, i was try your suggest about hacking the js file, but i don’t understand this statement: “then minify the /assets/js/script.js file to /assets/js/script.min.js”, how to minify that?
you said minify into script.min.js but the file is already there:
http://prntscr.com/ktujqi
should i overwrite those file?
-
This reply was modified 3 years, 10 months ago by
yudhafebrian.
Yes, you need to overwrite that file.
There are many methods for minifying a JS file. You can google “JS minifying” or use this website.