Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello again @misagues

    I see you have already made your own topic. Thank you.

    The slideout is hidden by default by CSS (see below) and shows with JavaScript on click of the “Add Giftwrap” prompt link. The plugin comes with templates, in a /templates/wcgwp/ folder. There are two slideout.js files which you could override in your theme with just <script></script> and no Javascript would run. Instructions for how to use theme templates are in the FAQ here, and at web.little-package.com

    Another option, you could probably just override this line of CSS

    .wc-giftwrap .wcgwp_slideout{display:none;margin-bottom:3em}

    with something like this

    body .wc-giftwrap .wcgwp_slideout{display:inline-block}

    And get quick easy results.

    Thread Starter misagues

    (@misagues)

    Hi @littlepackage

    First, thank you for your work on the plugin (it’s great) and your quick response to the topic.

    Yes, before opening the support topic I checked the help and did tests with the templates, but without success. The truth is that my knowledge of javascript is basic.
    As I said in the first topic, the result of emptying the javascript of the two templates (cart-slideout-js.php and checkout-slideout-js.php) is that the link does not work, the gift wrap is never shown.

    The CSS solution has worked perfectly.

    Another option, you could probably just override this line of CSS

    .wc-giftwrap .wcgwp_slideout{display:none;margin-bottom:3em}

    with something like this

    body .wc-giftwrap .wcgwp_slideout{display:inline-block}

    And get quick easy results.

    Thanks!

    • This reply was modified 4 years, 10 months ago by misagues.

    @misagues
    You might also change the templates to just say <script></script> because if you don’t, there’s a chance you get some unexpected behavior when someone clicks the link repeatedly.

    Thread Starter misagues

    (@misagues)

    Work Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘View gift wrap without clicking the link’ is closed to new replies.