Site logo

Archived topic

Breadcrumbs positioning on Niche theme

3 replies · Started by Renato Frota on October 17, 2021

Viewing posts 1–4 of 4

Hi,

The positioning of breadcrumbs in Niche theme demo store (product page) is above product title.

However, on my website it is positioned right at the top of the page (above the product's main picture).

Can you please let me know how to replicate the demo layout?

Thanks.

Hi there,

try adding this PHP Snippet:

remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 );
add_action( 'woocommerce_single_product_summary', 'woocommerce_breadcrumb' , 1 );

This doc explains how to add PHP:

https://docs.generatepress.com/article/adding-php/

Hello, David.

With your code, the breadcrumbs got duplicated. However, after observing your code and noticing the priority is set to 1, I understood the actual problem: the breadcrumbs are added to the product page by a GP Element. I just had to change it's priority from 10 (it's placed after product price) to 1 (it is placed where I expected it to be).

Thank you for the excellent support.

Aha - glad to hear you found the answer!

This archived topic is closed to new replies.