Jumble - Wishlist Overriding templates via a theme

“Jumble - Wishlist Overriding templates via a theme” Documentation by “WP Plugin Experts”

Overriding templates via a theme

The template files of WooCommerce Wishlists contain the markup and template structure for the front-end of your site. If you open these files you'll notice they all contain many hooks which will allow you to add/move content without having to edit the template files themselves. This method protects even further against any upgrade issues as the template files can be left completely untouched.

Alternatively, you can edit these files in an upgrade safe way through overrides. Simply copy it into a directory within your theme named /woocommerce/woocommerce-collections, keeping the same file structure.

Example: To override the wishlist listing design, copy: jumble-wishlist/includes/templates/wishlist-listing/wishlist-listing.php to yourtheme/jumble-wishlist/wishlist-listing/wishlist-listing.php

The copied file will now override the Jumble Wishlists default template file. Do not edit these files within the core plugin itself as they are overwritten during the upgrade process and any customizations will be lost.

The following template files can be found within the /jumble-wishlist/includes/templates/ directory:

Templates
  • add-to-wishlist/
    • add-to-wishlist-content.php
    • add-to-wishlist-footer.php
    • add-to-wishlist-header.php
    • add-to-wishlist.php
    • success-message/
      • add-to-wishlist-success.php
  • wishlist-button/
    • wishlist-button.php
  • wishlist-edit/
    • wishlist-edit-content.php
    • wishlist-edit.php
    • popups/
      • wishlist-delete.php
      • cover-image.php
      • item-details.php
      • status.php
  • wishlist-item-listing/
    • wishlist-item-image-listing-content.php
    • wishlist-item-listing-content.php
    • wishlist-item-listing-loop-content.php
    • wishlist-item-listing.php
  • wishlist-listing
    • wishlist-listing-content.php
    • wishlist-listing-list-format-content.php
    • wishlist-listing-loop-content.php
    • wishlist-listing-loop-table-content.php
    • wishlist-listing.php
  • css/
    • woo-cl-coll-dropdown.css
    • woo-cl-collection-edit.css
    • woo-cl-collection-listing.css
    • woo-cl-email-share.css
    • woo-cl-featured-collections.css
    • woo-cl-item-listing.css
    • woo-cl-popup.css
    • font-awesome/
      • css/
        • font-awesome.min.css
      • fonts/
        • fontawesome-webfont.eot
        • fontawesome-webfont.svg
        • fontawesome-webfont.ttf
        • fontawesome-webfont.woff
        • fontawesome-webfont.woff2
        • FontAwesome.otf
    • fonts/
      • Roboto-Light.ttf
    • images/
      • close_icon.png
      • deleteicon.png
      • icon.png
      • lock.png
      • present.png
      • round.png
      • smallicon.png
      • woocl_read_more.png
  • emails/
    • collection-share.php
    • plain/
      • collection-share.php
  • featured-wishlist-listing/
    • featured-wishlist-listing-content.php
    • featured-wishlist-listing.php
  • social-buttons/
    • email.php
    • facebook.php
    • google.php
    • linkedin.php
    • social-button.php
    • twitter.php
    • popup/
      • email-share-success.php
      • email-share.php

These files contain the markup and template structure for the front-end (and HTML emails) of your store. If you want to edit one of these templates simply copy it into a directory within theme named /jumble-wishlist, keeping the same file structure, e.g. move "/templates/wishlist-listing/wishlist-listing.php" to "yourtheme/jumble-wishlist/wishlist-listing/wishlist-listing.php". The copied file will now override the Jumble Wishlist default template file. Do not edit these files within the core plugin itself as they are overwritten during the upgrade process and any customisations will be lost.