background preloader

Wordpress

Facebook Twitter

Mastering WooCommerce Products Custom Fields | Remi Corson - WordPress Expert Developer. WooCommerce is without any doubt the more powerful e-commerce plugin for WordPress. And what i love with WooCommerce is that there’s an API for nearly everything. Today, i decided to show you how you can customize WooCommerce dynamically, and in particular how to add custom fields to any WooCommerce products. Here is the final result of what you’ll learn to do in this post: If you want to add custom fields to product variations, click here! As you can on the screenshot above we will see how to add custom fields to the product edition page.

To do that we will be working on the functions.php file of your theme’s folder only. To begin we will add custom fields to the product general tab, we will see later how to add custom fields to the other tabs, and how to create your own tabs. The right hooks The first step is to hook an action to woocommerce_product_options_general_product_data. Adding New Fields The snippet above link two custom functions to the right hooks. Text Field Type Example: Documentation - Events Manager for WordPress. Installation and Setup For those of you new to Events Manager, we highly recommend you check out our getting started page, which gives a quick overview of how to get up and running. Your Events Once you’ve installed Events Manager, it’s time to start adding event and locations! Here’s some handy links to help you along the way. Advanced Usage Requires knowledge of HTML.There are several ways of showing your events throughout your site.

Placeholders – change event page information/layoutsConditional Placeholders – placeholders that display on conditions being metShortcodes – for pages/postsEvent Search Attributes – add filters and options to shortcodesCustom Event/Location Fields – Add custom fields to your eventsOptimization Recommendation – plugin-specific tips to speed up your websiteGeneral Optimization Recommendations – more tips to speed up your websiteUpgrading to Dev-Versions – Get the latest and greatest! Developer Docs & Tutorials Finding Help.

Screenfly by QuirkTools — Test Your Website at Different Screen Resolutions. WordPress 2.2 – Modifier les widgets originaux « burninghat. Lors de la conception du thème « NewBurn » pour ce blog, j’ai été confronté à un sérieux problème de conception. Je voulais qu’il soit « widget ready » MAIS les widgets d’origine (et notamment les widgets « Recherche » et « Pages ») ne me convenaient pas du tout. « Recherche » car il ne tenait pas compte du fichier « searchform.php » du thème (étonnant d’ailleurs vu que ce n’est pas le comportement original de la sidebar, c’est un truc que je ne m’explique toujours pas au niveau de WP2.2) et « Pages » car il ne permet d’exclure des pages de la liste (celle de « Navigations » dans mon cas) ou de personnaliser la moindre l’affichage du listing.

Après moults recherche sur le forum de WordPress-fr et dans le Codex WordPress ainsi qu’avec l’aide de l’article de CSS4Designr, j’ai trouvé une solution qui ne me convenait guère (solution 1) et qui ne permet d’ajouter des éléments « perso » à la sidebar. Solution 1 – Editer le fichier « wp-include/widget.php« fonction originale fonction modifiée. Docs/WPMeetup-WooCommerce.pdf. Template_Hierarchy.png (1453×1443)

Administration