admin管理员组

文章数量:1313106

Im wondering the possibilities of making the title of a page change depending how the user got there? For example, if they are on the homepage and make a search, would it be possible to display what they searched for as the title on just on the results page? also how i would add a breadcrumb under the title for users to see where they came from ect.

Thanks in advance.

Im wondering the possibilities of making the title of a page change depending how the user got there? For example, if they are on the homepage and make a search, would it be possible to display what they searched for as the title on just on the results page? also how i would add a breadcrumb under the title for users to see where they came from ect.

Thanks in advance.

Share Improve this question asked Dec 12, 2020 at 20:49 ChrisChris 111 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

I'm supposing we are talking about the tab title, if so its possible but not conventional, if is the page title, the code is almost the same and its feasible.

In this last case Wordpress doesn't have a breadcrumb per say, we have to make a custom one, nevertheless Woocommerce has one. If Woocommerce is installed you just need to call the function woocommerce_breadcrumb(); in your php file where that pages load.

if you don't have woocommerce we have to make a custom one. I do not have any at this moment.

本文标签: Changing title amp add Breadcrumbs