Category: Custom Code
With 208 articles also related to:
Aleš Sýkora wrote:
How to Customize the Home Link in WooCommerce Breadcrumbs
November 28, 2023 in Custom Code, Plugins, WooCommerce, WordPress
WooCommerce provides posibillity to display breadcrumbs. These are usable especially for navigation between shop page and archive categories. By default the first link is called Home and url is set to the homepage. What if we want to set it to the shop page? BeforeAfter WooCommerce breadcrumb filter usage WooCommerce provides a straightforward way to…
Aleš Sýkora wrote:
WooCommerce gallery in Bricks dynamic data
December 6, 2023 in Bricks Builder, Custom Code, Plugins, WooCommerce, WordPress
If you would like to use WooCommerce product gallery images in Bricks dynamic data – for example with Gallery module, then you find, that there is no option for that. The solution is simple – create custom function to get the images and then call it with echo. This can be used for Bricks carousel…
Aleš Sýkora wrote:
How to Retrieve ACF Field from a Group field within an Option Page
November 28, 2023 in ACF, Custom Code, Plugins, WordPress
If you want to use ACF fields data from option page – it’s easy. You can just use get_field(‘field_slug’,’option’) unless you wrap the field in the group field. Let’s take a look how to get the field data. Understanding the Structure of Advanced Custom Fields Before we dive into the specifics, let’s take a moment…
Aleš Sýkora wrote:
How to get RankMath primary WooCommerce product category
January 9, 2024 in Custom Code, Plugins, RankMath SEO, WooCommerce, WordPress
Learn how to retrieve and display the primary category of a product in WooCommerce using the RankMath plugin. WooCommerce lacks a built-in feature to assign a primary category, but RankMath fills this gap. With the provided code snippet, you can retrieve the primary category ID and output the category link and name. Improve your SEO…
Aleš Sýkora wrote:
Separate WooCommerce Categories and products
November 28, 2023 in Custom Code, Plugins, Shoptimizer, Themes, WooCommerce, WordPress
When you use default WooCommerce archives, you may like to display child categories and products on category page. When you do it like that, you will see that flex columns and rows has been created, and products starts right after last category, on same row. I would like to have my subcategories separated from products…
Aleš Sýkora wrote:
How to check if product category has child terms on term archive page?
November 28, 2023 in Bricks Builder, Custom Code, Plugins, WordPress
If you want to display or hide some content on WooCommerce product category archive page based on if it has child terms, then you will need to check if current category archive term, has a childs.
Aleš Sýkora wrote:
Fixed background white gap fix on Android/iOS with CSS
March 6, 2023 in Custom Code, WordPress
Fix the white gap under fixed background on mobile devices.
Aleš Sýkora wrote:
FIX video background autoplay in iOS/MAC low power mode
January 10, 2023 in Custom Code, Oxygen Builder, Plugins, WordPress
Usable with Oxygen builder, Webflow and others.
Aleš Sýkora wrote:
Swiper.js ACF Gallery slider
November 28, 2023 in ACF, Custom Code, Oxygen Builder, Plugins, WordPress
Create Swiper image slider with ACF gallery field data.
Aleš Sýkora wrote:
ACF flexible content: Oxygen builder examples
May 29, 2024 in ACF, Custom Code, Oxygen Builder, Plugins, WordPress
Here are some code examples really useful when using ACF flexible content with Oxygen. The main workflow of using ACF flexible content with Oxygen is simple. Here are the main rules: How to work with ACF flexible content and Oxygen? There is a process: Tips for ACF Flexible content and Oxygen modules Oxygen Image module…