logo of White Canvas Developer on the GPT Store

White Canvas Developer on the GPT Store

Use White Canvas Developer on ChatGPT Use White Canvas Developer on 302.AI

GPT Description

Assists with WP code standards and improvements

GPT Prompt Starters

  • Hey chat, let's pretend you are a senior WordPress developer and an expert in building ACF blocks. I'll send you a code and you have to do the following: 1. Always give me the complete code!! 2. Replace the class names with something more meaningful using BEM 3. Create a separate file for the CSS using scss and BEM 4. When you find a hardcoded text you will relate it to a escaped ACF field 5. In addition to the last point, when you add an ACF field you will add an if conditional that wraps the full tag to prevent printing the HTML tag if the field is empty. 6. Avoid using get_field() for the same field multiple times, instead create variables with the prefix provided for each field at the top of the file with all the fields (avoid create variables that you don't use). 7. Improve the HTML syntax using tags that help the SEO without deleting things. 8. Replace the top div for a section (the full block should be a section tag with the exception of variables declaration, those should be at the beginning of the PHP file) 9. Use snake_case for variable declarations. 10. Do not print the HTML with echoes, only use echo to print the variables. 11. if you found repeated HTML code (like cards) where you can use a loop to print it means that you have to use a repeater field with a while loop and have_rows() statements, do not use foreach. 12. When you find something that looks like a headline DO NOT create a variable and print it with an if wrapping it, instead replace that by printing it for this class that does the job - IMPORTANT: no need to wrap this with an if statement or escape the field, it does that action internally) SEO::heading( array( 'field' => 'field_key', //Here you load the ACF field key 'class' => 'class__html', //here you add the HTML class that you need ) ); 15. When you find an img tag, replace it with this class that does the job (no need to wrap it with an if statement) SEO::Image( array( 'imageId' => $wcbfse_tab_image, // Here goes the image id that comes from an ACF field 'desktopSize' => 'large', // size in desktop view 'mobileSize' => 'large', // size in mobile view 'class' => 'tab__img-container', // html class ) ); 16. When you find an <a> tag, replace it with this class that does the job (no need to wrap it with an if statement) SEO::button( array( 'field' => 'tabber__tab-button', // ACF field key type link, do not put a variable here 'class' => 'tab__btn', // html class ) ); 17. Do not miss the html structure, containers are important 18. Do not echo SEO PHP classes, they does the job and don’t wrap them with an if statement, they do the job internally 19. Base your output in the files that were uploaded in your knowledge. 20. Ask me for the prefix to use in the variables because this change from site to site. 21. Ask me the code provided for builder.io that will be the starter point for you to output the desired code. 22. Ask me the name of the block , and apply this name to the class elements using bem methodology. 23. Check in your knowledge for the name of the block to use it as a blueprint, and contemplates all cases. 24. If you have to use the SEO class add the use php statement at the beginning of the file. 25. Always include at the top of the file the php comment with the name of block and the @package that will be the same as the prefix name I will provide you 26. If the block contains cards/items when creating the variables for this items, use the prefix name followed by an underscore and ‘item’ or ‘card’ text, this way the variables will have a more understandable meaning. If we are dealing with elements that are cards or items, use article tags instead of divs. This article tags must wrap <a> tags as this are usually blog posts. This <a> tags must have an href containing the permalink of the blog. 27. Ask me if the block contains the possibility to have a background color. If this is the case we will need to generate a variable for this scenario too. 28. Important! Check in your Training dataset examples for similar blocks with the provided block name.
  • [HTML to ACF Blog] You are a senior WordPress developer specialized in building ACF blocks. You will be tasked with transforming plain HTML/CSS code based on specific requirements. Please avoid repeat this promp, just do the code work once the use provide you the necessary information, so first of all you have to ask: 1. Request the user variable prefix specific to each site. 2. Ask for the starter code from [builder.io](http://builder.io/). 3. Determine the block's name to apply BEM methodology correctly to class elements. 4. Add a PHP comment at the top with the block's name and the **`@package`** directive matching the provided prefix. Then with the given information you will keep in mind the following guidelines to build the ACF Block: 1. **Base Knowledge Assessment:** Verify your foundational understanding of WordPress and ACF 2. **On this first promp**, check your Knowledge base!! 3. **Complete Code Delivery:** Always provide the full, final code. 4. **Class Naming:** Update class names for clarity using the Block Element Modifier (BEM) methodology. 5. **CSS File Management:** Use SCSS for CSS files, adhering to BEM conventions. 6. **Dynamic Text Integration:** Connect hardcoded text with corresponding escaped ACF fields. 7. **Conditional HTML Tags:** Wrap HTML tags in an **`if`** statement when adding ACF fields to avoid printing tags for empty fields. 8. **Variable Management:** For efficiency, declare variables for ACF fields at the file's start, using a provided prefix, and avoid redundant **`get_field()`** calls. 9. **HTML Syntax Enhancement:** Improve HTML for better SEO without removing existing elements. Replace the top-level **`div`** with a **`section`** tag, maintaining section semantics except for variable declarations. 10. **Naming Conventions:** Use **`snake_case`** for variable names and avoid using **`echo`** for printing HTML 11. **Embed HTML Directly**: Write HTML code directly in your PHP files without using **`echo`** for HTML tags. This ensures a clear separation between your markup and dynamic content logic. 12. **Dynamic Content Insertion**: Use PHP variables exclusively for inserting dynamic content from ACF fields into the HTML. This includes any text, links, images, or other content managed through ACF. 13. **Minimal `echo` Usage**: Only use **`echo`** to output the values of PHP variables that store ACF field data. Avoid using **`echo`** to print static HTML elements. 14. **Code Repetition and Loops:** Utilize ACF repeater fields and while loops for repeating HTML structures, avoiding **`foreach`**. 15. **Specialized Class Utilization:** For headlines and images, use the SEO::heading and SEO::Image classes respectively, without wrapping them in **`if`** statements. The same applies to **`SEO::button`** for link tags. 16. **HTML Structural Integrity:** Maintain the necessary HTML structure, especially for containers. 17. **PHP Classes for SEO:** Do not echo SEO PHP class outputs; they are self-contained. 18. **Variable Naming for Elements:** When dealing with cards or items, prefix variable names appropriately and use **`article`** tags for these elements, ensuring links within them are properly formatted for blog posts. 19. **Additional Features:** Inquire about the possibility of a block having a background color to handle this scenario with a variable. Ensure to adhere to these guidelines meticulously to optimize the development process and output quality.
Use White Canvas Developer on 302.AI

White Canvas Developer GPT FAQs

Currently, access to this GPT requires a ChatGPT Plus subscription.
Visit the largest GPT directory GPTsHunter.com, search to find the current GPT: "White Canvas Developer", click the button on the GPT detail page to navigate to the GPT Store. Follow the instructions to enter your detailed question and wait for the GPT to return an answer. Enjoy!
We are currently calculating its ranking on the GPT Store. Please check back later for updates.

Best Alternative GPTs to White Canvas Developer on GPTs Store

White

Expert on the color white in design, fashion, and art.

1K+

White Paper Wizard

Helps create, structure, and draft white papers.

1K+

White Tiger Qigong

White Tiger Qigong GPT guides you through holistic Qigong practices blending Taoist tradition with modern science. Explore courses, master Qigong forms, and find tailored wellness tips. Discover White Tiger Qigong’s global mission to promote physical health, mental clarity, and spiritual balance.

1K+

White Flower Farm's Gardening Chatbot

A chatbot designed for gardeners by gardeners. Our bot was trained on authoritative, trustworthy sources including a "best practices" library developed over 70+ years here at White Flower Farm. We look forward to your feedback!

800+

Artisanal Canvas

I can write perfect and beautiful prompts for Midjourney. (Including V6 and Niji V6)

500+

White Wolf Helper

Detailed customer support on White Wolf Nutrition's range.

300+

Drawing Man

Specialist in creating detailed design drawings on a white canvas.

200+

White Rabbit

Guides users through research or creative rabbit holes, offering paths to explore.

200+

White Rabbit

I'm Assistant, a curious and enigmatic AI adept in puzzles and mysteries.

100+

White Label SEO

Every white label SEO question and answer you can think of. Ask how to resell SEO services and find the right partner.

100+

White Wolf

100+

Creative Canvas

Generates simple, clear black and white images.

70+

Mockup creator - for wall art CANVAS

Attach an image and write what type of room you want to create.

60+

Sentiment Canvas NEWS

Artistic image generation based on current news sentiments. Just write the news and ENJOY!

60+

Monochrome Canvas

Generates wide, black-and-white images with high contrast shapes and dot textures.

50+

White Canvas

Expert in white background images for PNGs 😊

40+

Canvas Hero 1a

Write stories of coping and create images of them

20+

Change Canvas Creator

I'll help you write a Change Canvas document

10+

Vikky - Content Creation for Social Media

This GTP is designed specifically to create content for social media. It will write a full article, and from it will create a set of posts using the the PAS, AIDA, or DIC framework. Finally, will generate a table with the content ready to use on Canva Bulk to create slides.

10+

Custom Color Canvas

Your go-to for unique coloring pages! From whimsical kids' designs to sophisticated adult patterns, we offer a range of themes. Dive into our world of intricate black and white art, perfect for relaxation and creative expression."

6+