Parent page not showing in breadcrumbs

Posted in: Newspaper
Post count: 12

Hello

I have created a child page using the tag div composer. I added the breadcrumbs element, but it only shows home>child page (it doesn’t show the parent page).

Note: I am using a plugin which customises the permalinks as I don’t want the parent page to be shown in the url. Before using the tag div composer to create the design of the page, the breadcrumbs showed correctly home>parentpage>child page even though I changed the permalink structure to remove parent page from the url.

Post count: 18283

Hello !

We have tested this on our side and everything works perfectly. Please make sure that you are not facing any plugin conflicts.

Thank you !

Post count: 12

Hi Vlad

Thanks for the quick reply.
There are no conflicts as far as I can tell. It was working fine when creating a page using the WordPress page builder, but when I created a page using the TagDiv builder (adding an element for breadcrumbs) the parent page doesn’t show

Post count: 12

Could you take a look?

Post count: 18283

Hello !

Our developers had a look and they suggest you to remove the breadcrumb using tagDiv Composer and select this page type: https://prnt.sc/u2qudo

Let us know the result.

Thank you !

Post count: 12

That does work. But now it shows a title at the top of the page, whereas I already had a custom title element (which looks better)

Do you think there is another solution so that I can have the correct breadcrumbs but also a custom title element?

Post count: 18283

Hello !

Please provide an url to your page and we will offer a css to hide that untill this gets fixed.

Thank you !

Post count: 12

Ok thanks Vlad.

Here is the link: https://justforcats.co.uk/test-food-review/

I have left the breadcrumbs element there for now to show you what it looks like. Would be good if the breadcrumbs element could show the parent page as I like the position it is in

Post count: 35449

Hi drh10,

If the page has set the parent page -> https://i.imgur.com/pSH4hI9.png this should display the breadcrumbs like this -> https://i.imgur.com/1Bf6kdp.png but when you are using tagDiv Composer you need to set this page template -> https://i.imgur.com/SinKKwd.png and the parent will be display.

Hope this will help you!

Post count: 12

Hi Calin

The problem is that I have a custom title area – so it doesn’t look very good when I select the page template (pagebuilder + page title).

Please see my link: https://justforcats.co.uk/test-food-review/

As you can see, the breadcrumbs from the page builder element is in the right position, but doesn’t show the parent page.

However, the parent pages does show in the breadcrumbs in the title area – but this is not what I would like as I have used a page title element to show page title (to make it look better).

Is there a way to make the parent page show in the breadcrumbs element in the page builder?

Thanks

Post count: 35449

Hi,

There are only two solutions, you can use a custom css to hide the page title and let only the breadcrumbs or you can change the code from theme in wp-content/plugins/td-cloud-library/shortcodes/common/tdb_breadcrumbs.php add this code
$buffy .= td_page_generator::get_page_breadcrumbs(get_the_title()); and comment this one -> https://i.imgur.com/d0JXjS3.png in this way when you’ll add the breadcrumbs element it will look like this -> https://i.imgur.com/IwF83Rs.png -> https://i.imgur.com/oFneUqp.png

Hope this will help you!

Post count: 12

Hi Calin

Is there anyway you could look into changing this in a future update?

Surely the breadcrumbs element should show the parent page anyway, without having to edit the theme code.

I can’t even work out how to edit the theme code anyway, to see if your second solution would work

The second option you provided doesn’t really achieve

Post count: 35449

Hi drh10,
Unfortunately for the moment this is the only solution, sorry.
I made a note to be add an option to can display the parent page on breadcrumbs, unfortunately I can not say if this will be add in the coming update.
Thank you for your understanding!

Post count: 12

Hi Calin

Ok I understand. Could you tell me where to go to edit the theme code though, like you suggested? I would like to try this way.

Also is it possible to have breadcrumbs showing on wordpress posts as well, not only pages?

Thanks

Post count: 12

I figured out how to add breadcrumbs to the post template.

But if you could still tell me how to edit the theme code that would be great

Post count: 35449

Hi,

Please try like this:
Go in Plugins > plugin editor -> https://i.imgur.com/JMZumUj.png select the tagDiv Cloud Library and go in shortcodes > common and click on tdb_breadcrumbs.php -> https://i.imgur.com/iwhVarl.png after that go on line 200 and set “/*” (this element will comment the code lines) and on line 217 close the comment using “*/” -> https://i.imgur.com/39F5jcu.png after that save the settings and check the breadcrumbs you have set using tagDiv Composer on pages.

Hope this will help you!
Thank you!

Post count: 12

Thanks I will try that.

Will these changes to the theme code disappear whenever the theme itself is updated? Would I need to install a child theme to avoid this?

Thanks

Post count: 35449

Hi, unfortunately here is the problem, these changes need to be made in a file that can not be set in the child theme, therefore these changes need to be made again after theme update.
Thank you for your understanding!

Post count: 12

That is a shame. It would be great if you could try again and request the breadcrumbs element to be improved so that it showed the parent page.

The alternative solutions are not really good enough seeing as they won’t remain permanent (i.e. will have to change the code after every update).

So until then I will have to do without breadcrumbs altogether.

Please try and request it in a future update!

Post count: 35449

Hi, I’ve made a note to our developers about this and they will improve the element in the coming updates.
Thank you for your understanding!

Post count: 12

Thanks Calin, I appreciate it !

Viewing 21 posts - 1 through 21 (of 21 total)
The forum ‘Newspaper’ is closed to new topics and replies.