I gang

custom breadcrumb in wordpress

hi,

When there are multiple possible breadcrumbs, WooCommerce picks the first possibility. If the product is found from following a different path, the breadcrumbs no longer match the expected order. To make the breadcrumbs match the path used to reach the product I used the following strategy:

Use a cookie to record the last visited product archive page.

On the single product page, generate a list of all possible breadcrumbs.

Hide all the breadcrumbs except for the desired path.

Step 1 – Record the Cookie

This goes in [url removed, login to view] template at the very top before any information is outputted -> from line 2 to 9

Step 2 – Generate All Possible Paths

This goes on the [url removed, login to view] page. By default, I hide them all except for the first one using CSS. The .first class provides a distinguishing element to select -> from line 83 to 119

Step 3 – Show the active breadcrumb

i added script in header and footer plugin -> Before the </BODY> closing tag (footer)

now my custom breadcrumb is at the bottom of single page product and it's working right ( i think)

i want to use it instead the original breadcrumb in all pages

can you help me? or if you have a different solution to have a different breadcrumb for multicategory products explain to me.

regards

Færdigheder: PHP, WooCommerce, WordPress

Se mere: wordpress breadcrumb function custom post types, wordpress categories custom sql, wordpress page custom working, wordpress advanced custom fields, wordpress plugin custom database fields, wordpress work custom field, wordpress subscribe2 custom footer, wordpress subscriber2 custom footer, wordpress gallery custom, wordpress sort custom date, wordpress design custom, wordpress theme custom design professional, wordpress plugin custom admin, wordpress sort custom field date, wordpress add custom configuration fields

Om arbejdsgiveren:
( 4 bedømmelser ) bergamo, Italy

Projekt-ID: #14406956

Tildelt til:

UniqueContent204

At Unique Corporation, we offer quality and unique articles, Blogs, E-books, Press releases, Reports, SEO, Web site content, Social Media content, Link building plus much more at reasonable rates. We provide our client Mere

$100 USD in 5 dage
(3 bedømmelser)
4.0

16 freelancere byder i gennemsnit $33 for dette job

Webln

Hello! my name is Viktor. We are IT Company «Webin». We provide website design and web and app development services for organizations, public and government institutions, company or private web-pages. We got acquainte Mere

$17 USD in 2 dage
(9 bedømmelser)
4.6
maisotech

hello. i have seen your requirements, It will be done. please come on chat for detail discussion. Relevant Skills and Experience I have 3 yrs exp in PHP, HTML5/CSS3, MYSQL, WordPress. I have developed a number of comp Mere

$25 USD på 1 dag
(27 bedømmelser)
4.1
saaz109

Hello Sir, We are an Indian And Australian development company here. we have checked your posted details here and want more clarification in it, Relevant Skills and Experience so message us to discuss on it more then Mere

$100 USD in 2 dage
(14 bedømmelser)
4.4
devwaleed

Hi, I am interested in this project. I have good experience of this. Kindly send me more details over chat, I would like to discuss this with you. Thanks Relevant Skills and Experience PHP Proposed Milestones $25 USD Mere

$25 USD på 1 dag
(12 bedømmelser)
3.6
Arbutus9

We are a group of developers with a proven track record in Website Designing, Software and Mobile app developmentOur key skills are: PHP/MySQL, CodeIgniter, Laravel, WordPress, Relevant Skills and Experience ASP .NET, Mere

$25 USD på 1 dag
(6 bedømmelser)
3.2
cezarysiwa

My name is Cezary Siwa, I'm experienced PHP/Wordpress developer. I do WP plugins and sell them on Codecanyon. I have over 8 years of commercial experience. Relevant Skills and Experience Wordpress, PHP, CSS, HTML, JS Mere

$25 USD på 1 dag
(5 bedømmelser)
2.3
BinaryWrap

Hi Client, We're excited to work on this project, our skills in web development and design using { HTML, CSS, JavaScript, Material Design, Bootstrap, AngularJS, AngularJS 2, PHP, Node.js, ionic, [url removed, login to view], MEAN Sta Mere

$30 USD in 3 dage
(2 bedømmelser)
1.9
$25 USD på 1 dag
(1 bedømmelse)
0.8
technoweb7

Please look at amazing discount on website development-- [url removed, login to view] Greetings, we are a team of 35 developers and 20 designers and each having more than 8 years experience. I would very much happy to wo Mere

$25 USD på 1 dag
(0 bedømmelser)
0.0
$25 USD på 1 dag
(2 bedømmelser)
0.0
iicoderscom

Let connect on chat and begin the project Relevant Skills and Experience Having good hands of experience in Plugin development & customization. Proposed Milestones $20 USD - milestone

$20 USD in 0 dage
(0 bedømmelser)
0.0
usamamujib

A proposal has not yet been provided

$24 USD in 7 dage
(0 bedømmelser)
0.0
$15 USD på 1 dag
(1 bedømmelse)
0.0
suritaverma

PLEASE SAY HELLO…. I have more the 5 years experience in WordPress,Core PHP, Codeigniter Framework, Cake PHP,HTML5, XHTML, CSS3, JQuery, DHTML, Bootstrap jQuery plugins,XML PARSING, INTERFACE BUILDER, COCOA TOUCH, COR Mere

$25 USD på 1 dag
(0 bedømmelser)
0.0
GpreetKaur

Hello Employer *****REGARDING YOUR PROJECT***** Please initiate a chat so that I can discuss about the project in details and can quote the Actual Time & Price. Relevant Skills and Experience *****WHY CHOOSING Mere

$15 USD på 1 dag
(0 bedømmelser)
0.0