Coupon Creator

  • Coupon Creator Pro
    • Coupon Creator Pro
    • Feature Demos
    • Premium Features
    • Release Notes
    • New Feature Suggestions
  • Support
    • Contact Support
    • Guides (Start Here)
    • Frequently Asked Questions
    • Documentation
    • Tutorials
    • Support Terms
  • Contact
  • My Account
  • 0 items

Themer’s Guide

Posted on 03.23.16 | brianjessee |

Knowledge Base


Themer’s Guide

Last Updated: 3 years ago in User Guides,Video

Customizing Template Files

Coupon Creator Pro comes with a template system to enable you to move templates to your child theme where you can edit them and not lose the changes when updating Pro. Pro only feature.

1. Create a directory in your child theme (parent themes work too)
Go to your child theme directory, located at wp-content/themes/your-theme/.
Create the following directory:

  • To modify Coupon Creator Pro
    /cctor-coupons/

2. Locate the files in Pro that you would like to edit
Find the template files in the plugin directory:

  • Coupon Creator Pro template files
    /wp-content/plugins/coupon-creator-pro/src/views/

Once you have a template you would like to edit, move it to your theme.

This:

/coupon-creator-pro/src/views/category/category.php

Becomes this:

/child-theme/cctor-coupons/category/category.php

If you are not sure where a template should be moved in your theme, the comments at the top of each template will tell your were to override it:

Template override @ [your-theme]/cctor-coupons/category.php

Views and Templates

Coupon Creator Pro

Pro’s Coupon Loop Templates

  • default/default-wrap.php – Wrapper for the category template
  • default/content.php – Main content template with the title, filter bar, header and footer nav,, and the loop
  • default/nav.php – Contains the next and previous links
  • default/loop.php – Contains the loop of coupons with the template for single coupons
  • default/single-coupon.php – Contains a single coupon output

Category Templates

  • category/category.php – Wrapper for the category template
  • category/content.php – Main content template with the title, header and footer nav, and the loop
  • category/nav.php – Contains the next and previous links
  • category/loop.php – Contains the loop of coupons with the template for single coupons
  • category/single-coupon.php – Contains a single coupon output

Filter Bar Template

  • filter-bar/filter-bar.php – Filter Bar wrapper and form

Print View

  • print/single-coupon.php – Print view coupon template

Custom Category Templates

Along with the standard templates to modify you can expand the templates and create custom templates per coupon category. To do that use the slug as a new directory inside the category directory:

Custom Category Templates

  • category/slug/loop.php – Wrapper for the category template
  • category/slug/single-events – Wrapper for the category template

For example if you have a Shopping category you could modify the loop.php template by adding this to your theme:

/child-theme/cctor-coupons/category/shopping/loop.php

That will then modify only the loop.php file for the Shopping Category all other templates will continue to use the standard category templates. This feature currently only works with the coupon category archives and not with the couponloop shortcode output.

1 star1 star1 star1 star1 star
4.3 out of 5 stars
Downloads!

Get Started With Pro

Click to Buy Pro

What Users are Saying:


Simple Solution for My Site — First Rate Support! – A simple and useful plugin that offers a perfect solution for my website. … The videos are extremely helpful. Support from the developer was fast and very helpful…more

— Mike (msagman)

Wonderful Plugin & Top Notch Support – We purchased the pro version of this plugin after reviewing the free version for a while. The free version is great, but we needed some of the more advanced features that the pro version offered…more

— (infobeckettgraphics)

My client needed a coupon creator to add the mobile equivalent of clip-out paper coupons for their website. This Coupon Creator plugin was the best, most reliable solution that allows my client to easily make decent-to-good looking online coupons in-house with a minimum of design experience and fuss. Many other coupon plugins actually only generate coupon codes a-la RetailMeNot. This one lets you generate printable coupon-looking coupons or responsive, mobile-friendly discount coupons that users can pull up on their smartphone right there at the merchant.

— (typeadesign)

Great Support – I am using Coupon Creator fee version on two sites and love it! Easy to use and great support! Just what I was looking for.

— Kay (stahr5)

5-Star Rating All Day Long – I strongly recommend using this plugin if you EVER need a “Top Of The Line” well designed, clean coded, lightweight, easy to manage and style coupon plugin for whatever reason for your WP site….more

— Fish (fish911)

Login

  • Lost Password

Support Resources

  • Guides
  • Frequently Asked Questions
  • Documentation
  • Tutorials

Sign Up for Updates!

For the Coupon Creator Pro!

  • This field is for validation purposes and should be left unchanged.
  • Coupon Creator Pro
  • Coupon Creator
  • Guides
  • Frequently Asked Questions
  • Terms of Service
  • Privacy Policy

Copyright © 2023 Site · WordPress Web Design by Jessee Productions, LLC

7ads6x98y