Breadcrumbs only display on posts pages


Where would I find the coding to mess around with breadcrumbs?

What im trying to achieve its a breadcrumb on all posts page that says “Return to Blog” and brings you back to the blog page.

I also dont want bread crumbs to appear anywhere else on the site.
Thanks for any help you can offer!

Hi There,

To achieve that, you have to setup a child theme first:

After that adding this custom code under functions.php file locates in your child theme:

add_action( 'x_before_view_integrity_content', 'print_breadcrumb_for_posts' );
function print_breadcrumb_for_posts(){
	if(is_singular( 'post' )){
		<div class="custom-breadcrumb">
			<a href="<?php echo get_permalink( get_option('page_for_posts') ); ?>">Return to Blog</a>

Hope it helps :slight_smile:

awesome! Thank you!
Id like to also display the blog date on the same line. But on the right side of the screen. I know how to position things with css. But how can I add the post date to this?


Hello Rena,

Post date is part of the post meta which you can enable it by going to X > Theme Options > Blog. It will be displayed right below the post title as shown here:

Adding a new element for the post date at the right side of your screen will require custom development which is already beyond the scope of our support. You might want to contact 3rd party developer and do the work for you.

Please note that custom coding is outside the scope of our support. Issues that might arise from the use of custom code and further enhancements should be directed to a third party developer.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.