Category: Custom Code
With 206 articles also related to:
Aleš Sýkora wrote:
Get WooCommerce Checkout fields slugs
January 9, 2024 in Custom Code, WooCommerce, WordPress
Knowing checkout field slugs is crucial for customizing and optimizing your checkout process. It’s like having a secret key to unlock the full potential of your e-commerce site.
Aleš Sýkora wrote:
Display the content of a parent post in a child post using Bricks Builder
January 5, 2024 in Bricks Builder, Custom Code, WordPress
In this tutorial, you will learn, how to display content of parent post on it’s child post page. It is not a normal scenario, however, sometimes is needed.
Aleš Sýkora wrote:
Display Bricks element if is_page or is_archive or is_single
January 5, 2024 in Bricks Builder, Custom Code, Plugins, WordPress
Use global reusable templates and change the content with determitaion functions.
Aleš Sýkora wrote:
Display published post number in WordPress
December 6, 2023 in Custom Code, WordPress
To display a number of published posts you need a wp_count_posts php function.
Aleš Sýkora wrote:
How to Translate RSS Feeds with TranslatePress
December 6, 2023 in Custom Code, Plugins, WordPress
One of the challenges I found when using the TranslatePress plugin with Oxygen builder and Bricks builder is the translation of RSS feeds, which is not supported. Supported from TranslatePress – Multilingual (2.6.7+). EDIT: 06.12.2023 – The TranslatePress now support the RSS feeds, but only Titles are being translated, so this code works better. This…
Aleš Sýkora wrote:
Load more button for Bricks Gallery and Limiting the Number of Displayed Images
May 23, 2024 in Bricks Builder, Custom Code, Plugins, WordPress
If you like to hide your Bricks Builder gallery until user click on show more button, let’s do it! Step 1: Structuring the Gallery Ensure your gallery in Bricks Builder is structured with a specific class, like .product__gallery. By default, each image item has a consistent class .bricks-layout-item. Just ensure if it doesn’t changed in…
Aleš Sýkora wrote:
Change WooCommerce clear variations text
November 28, 2023 in Custom Code, Plugins, WooCommerce, WordPress
If you’re looking to customize the text of the “Reset Variations” link in WooCommerce, you’ve come to the right place. In this article, we’ll walk you through the process of changing the reset variations text using a simple code snippet. What is reset variations text and where is located? It’s the text, which appears after…
Aleš Sýkora wrote:
Bricks builder WooCommerce Queries
November 28, 2023 in Bricks Builder, Custom Code, Plugins, WooCommerce, WordPress
WooCommerce TOP selling products query in Bricks You need to use Query editor for this and add this code: WooCommerce Featured products query in Bricks To display featured products only, use this in your Query Loop: Retrieve WooCommerce “NEW” products added not more than 30 days ago Bricks builder currently lacks the Date Query, however,…
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…