Category:
With 208 articles also related to:
Aleš Sýkora wrote:
Solve “No ACF gallery field data found” when the gallery field is empty with Oxygen conditionals
November 28, 2023 in Oxygen Builder, Plugins, WordPress
If you want to hide the gallery field, when your ACF gallery is empty, use this tutorial! :) Wrap Gallery with DIV and add class .gallery-wrapper (set the width of div to 100%)Open conditionals on the div.gallery-wrapperCreate conditional: Dynamic Data > Advance Custom Field > Your Gallery Field NameOutput type – leave emptySet conditional rule…
Aleš Sýkora wrote:
Display list of WooCommerce categories
November 28, 2023 in WordPress
If you need to display list of all WooCommerce categories without products, you can use my code. It will display all categories with link to their archive page. It will also display category image, name of course and count of products inside the category. It is all wrapped in HTML with OxyNinja framework applied. So…
Aleš Sýkora wrote:
Display all WooCommerce categories and their products inside
February 11, 2021 in WordPress
If you need to display all your WooCommerce categories in the list and their products inside, you can use mine code. For example you need to create one page layout for food felivery. Use my second tutorial, if you like to display all subcategories and its products on parent category archive. Page = Food Delivery…
Aleš Sýkora wrote:
WooCommerce category clustered by child taxonomies in WordPress
February 6, 2021 in WordPress
If you need to display your parent product category sorted by child taxonomies in clusters – for each child taxonomy it owns row – for example: Breakfasts Category Archive – Parent category Vegetarian – child categoryProduct 1Product 2Vegan – child categoryProduct 1Product 2Meat lovers – child categoryProduct 1Product 2 You can edit and use my…
Aleš Sýkora wrote:
Child posts menu for custom post type parent item
November 28, 2023 in WordPress
This code will help you display menu of childs on current post. For example: Product 1 = parent has those child pages: – Product usage- How to- Disclaimer- Calculator When you put this child items menu in your template, it will show all childs of product 1 on all child pages and also on product…
Aleš Sýkora wrote:
Get WordPress title for page, post, category, archive in Oxygen
November 28, 2023 in Oxygen Builder, Plugins, WordPress
Want to create only one template for Header and Footer – the main template – in Oxygen sometimes? So You need to display the title of current page, post, archive, category in one place. It cannot be done with Oxygen conditionals :(. So you have to make it done with code block and custom PHP.…
Aleš Sýkora wrote:
Change required fields by current time in Iconic Delivery Slots
January 21, 2021 in WordPress
If you need to set the fields required in some times, you need to use custom function for that. Why is it needed? For example ASAP delivery is not possible to cutoff in the morning. You can set cutoff time in the evening. but next day, it is avaible immediately after midnight. So I created…
Aleš Sýkora wrote:
Translate labels in Iconic Delivery Slots
January 21, 2021 in WordPress
If you need to change labels of fields added by Iconic Delivery Slots to WooCommerce checkout, use this snippet:
Aleš Sýkora wrote:
Change WP Rocket lazyload treshold
January 21, 2021 in WordPress
Default treshold for lazyload is 300px in WP-Rocket. That means that images that are within 300px of the viewport (browser window) are loaded for smooth user experience. If you like to load less images – for example 100px after viewport only – you can not set it up directly in WP Rocket’s settings page. To…
Aleš Sýkora wrote:
Translate WordPress string with code
January 21, 2021 in WordPress
Sometimes you want to change just one word in translation and you dont want to create .po and .mo files, install translation plugins etc. So use the function str_replace and replace the string you want. For example I am changin “Add to cart” to “Přidat do košíku”. You can place this code to your code…