Content Egg Pro Plugin
Pricing
  • Content Egg WP Plugin
  • Getting started
    • Installation
    • Upgrade Free to Pro
    • Automatic updates
  • Modules
    • General information
    • Affiliate modules
      • Aliexpress module
      • Amazon module
      • Amazon No API module
      • Avantlink Products module
      • Awin module
      • Bestbuy module
      • Bolcom module
      • CityAds Products module
      • CJ Products module
      • Daisycon module
      • Ebay module
      • Envato module
      • Flipkart module
      • GdeSlon module
      • Impactradius module
      • Kelkoo module
      • Kieskeurignl module
      • Rakuten Linkshare module
      • Linkwise module
      • Lomadee Products module
      • Offer module
      • Optimisemedia module
      • Shareasale module
      • Shopee module
      • Tradedoubler Products module
      • Tradetracker Products module
      • Trovaprezzi
      • Udemy module (deprecated)
      • Sovrn (Viglink) module
      • Walmart module
      • Webgains module
    • Coupon modules
      • Admitad Coupons module
      • CJ Links module
      • Coupon module
      • Lomadee Coupons module
      • Skimlinks Coupons module
      • Tradedoubler Coupons module
      • Tradetracker Coupons module
    • Content modules
      • Bing Images module
      • Flickr module
      • Freebase module
      • Google Books module
      • Google Images module
      • Pixabay module
      • Qwant Images module
      • Related Keywords module
      • RSS Fetcher module
      • Twitter module
      • Youtube module
    • Feed modules
      • General information
      • Field mapping
      • Mass import
      • Price comparison based on feeds
      • Troubleshooting
    • Module cloning
    • Deprecated modules
    • My network isn't listed
    • Affiliate Egg integration
    • Deeplink settings
  • Set Up Products
    • How to add products
    • Price comparison websites
    • Autoblogging
    • Prefill tool
    • Products page
    • How to add badge icons
  • Frontend
    • How content is displayed
    • 🆕Gutenberg blocks
    • 👉Shortcode parameters
    • Product groups/variations
    • Product sorting
    • Featured images
    • Frontend Search
    • Translation
    • Greenshift templates
  • Updating products
    • Price update
    • Product list update
    • Why prices don't update
    • Out-of-stock products
    • Price history
    • Price alert
    • Price movers
  • 🪄AI
    • Activating AI features
    • AI content generation
    • Smart groups
    • OpenAI API
    • Claude API
    • OpenRouter API
    • Custom prompts
  • WooCommerce Integration
    • General information
    • Product synchronization
    • Attributes synchronization
    • WooCommerce and autoblogging
  • Integrations
    • Affiliate Egg Integration
    • Cashback Tracker Integration
    • External Importer integration
    • WooCommerce Integration
  • Custom Templates
    • Customizing templates with CSS
    • How to install a custom template
    • 🪄ChatGTP Template Creator
    • How to create a custom template
  • Customization
    • Localization
    • For developers
    • Useful code snippets
    • REST API
    • Compatibility with themes
  • FAQ
    • How to add price comparison blocks to WooCommerce
    • How to add custom logos for merchants
    • How to import from CSV data feeds
    • How to change the date format or the date is not being displayed
    • Is Content Egg GDPR Compliant?
    • How to add offer count as a custom field
    • How to add products programmatically
  • Troubleshooting
    • Small font size in product blocks
    • Nothing found while search
Powered by GitBook
On this page
  • How to Create a Custom Template Using ChatGPT
  • Example with screenshot
  • Prompt examples
  1. Custom Templates

ChatGTP Template Creator

PreviousHow to install a custom templateNextHow to create a custom template

Last updated 9 months ago

How to Create a Custom Template Using ChatGPT

  1. Access the Template Creator:

    • Navigate to the "Content Egg Template Creator" GPT chat by clicking the following link:

  2. Describe Your Desired Template or Use Screenshots for Reference:

    • In the chat, describe in detail the template you want to create. Provide as many details and instructions as possible to ensure you get the expected result. Include specific elements, layout preferences, styling details, and any other relevant information.

    • You can also ask ChatGPT to generate a template similar to the one shown in your attached screenshots.

  3. Save and Install the Template:

    • Once you receive the generated template, save the file with the name format data_your_name.php.

    • .

  4. Review and Refine:

    • Check the result on your website to see if it meets your expectations.

    • If you need any changes, return to the ChatGPT conversation and request the necessary modifications.

    • Repeat this process until you are satisfied with the final template.

Please note that ChatGPT may make errors and generate invalid code. Ensure your site functions properly after installing your template by thoroughly auditing your code if possible.

Example with screenshot

Prompt examples

  1. Compact list layout

Template Name: My compact list

Layout: Compact list

Columns:
1. Product Image Column. Maximum height: 50px. Maximum width: 90px. Affiliate link on the image. Center the image.
2. Product Title Column. Affiliate link on the title. Truncate long product titles to 7 words max.
3. Product Price Column. Price color: red. Display old price (if available) below the current price. Old price color: grey, strikethrough.
4. Merchant Logo Column. Maximum logo height: 20px. Hide this column on mobile devices.
5. Buy Now Button Column. Button color: blue. Display merchant domain below the button. Merchant domain font: grey, small. Center the button and merchant domain.

Features:
- Center all content in columns for mobile devices.
- All affiliate URLs include `target="_blank"` and `rel="nofollow"`.
- Apply alt text for all images.
- Add a thin, light grey border at the bottom of each list item, except the last one.
- Ensure the template is responsive for mobile devices. One column on mobile devices.
- Add at the bottom (small font): "Prices and availability are subject to change. Last updated: [Last Update]".
  1. Price comparison

Template Name: My price comparison

This template is designed for price comparison of the same product from different merchants. It features a clean and user-friendly layout to help users quickly compare prices and make informed purchasing decisions.

Layout:

1. Left column: 
- Displays the image of the first product.
- The image is clickable, leading to the product's affiliate link.

2. Right column:
- Product Title. Displays the title of the first product in an <h2> tag for prominence.
- Price Comparison Table. A compact table that lists all available offers. Each row contains: 
	- The merchant's small icon and domain name.
	- The price of the product in bold font.
	- A "See it" button.

Stylings:

Table Styling:
- The price comparison table is bordered.
- Each row has a hover effect.
- The price cell has a very light green background color to highlight it. Centered.
- Remove margin and padding from table cells.
- Remove the table header.
- Set buttons to full column width.
🪄
Content Egg Template Creator
Install the template on your website