• Resolved roliw80

    (@roliw80)


    Dear friends, I’m planning to modify header.php and only display certain objects when the user is on or under a specific path. Is there any way I can get the full breadcrumbs path as text with a function/variable, so that I can use this:

    if (strpos(BREADCRUMBSPATH, 'My Page A') !== false) {
            //do something
    } 

    Thanks so much.
    Roland.

Viewing 1 replies (of 1 total)
  • Hi @roliw80,

    You can copy the header.php file to your child-theme and modify it as you need. And for the breadcrumbs, you can use shortcode mentioned in this doc to show it.

    I hope that will help. Feel free to reach out to us if you have any further queries.

    Kind regards,
    Herman 🙂

Viewing 1 replies (of 1 total)

The topic ‘Php Var for Page Title’ is closed to new replies.