cancel
Showing results for 
Search instead for 
Did you mean: 

How to re-position breadcrumbs besides the page title?

SOLVED

How to re-position breadcrumbs besides the page title?

Hi,

 

I am trying to reposition breadcrumbs inside the page content and move it besides the Page title for all pages.

I have tried moving the breadcrumbs using local.xml but of no use.

Do anyone have the solution for this?

 

Thanks

8 REPLIES

Re: How to re-position breadcrumbs besides the page title?

Hi there what does the XML in your local.xml look like?

 

This is what you need to do:

 

Firstly unset the breadcrumbs inside the default handle:

 

 

<default>
<action block="root" method="unsetChild"><name>breadcrumbs</name></action>
</default>

 

Then you need to drop the breadcrumbs into the content block like this (still inside the default handle):

<action block="content" method="insert"><name>breadcrumbs</name></action>

 

try that and let us know how you get on.

 

Thanks,

Gareth.

 

If you're happy with this response - please mark it as a solution!
Magento Certified Front-end Developer | www.iweb.co.uk

Re: How to re-position breadcrumbs besides the page title?

I removed my local.xml

I currently have default magento RWD theme for which I am looking to move the breadcurmbs beside the Page title for all pages.

Including the cms pages and customer account pages.

How can this be acheived?

Thanks for your pervious solution

Re: How to re-position breadcrumbs besides the page title?

Thats ok we can do it without the local.xml.

 

Firstly open page.xml and cut this line, (around line 108):

<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>

Then paste it into the content block which looks like this around line 185:

 

<block type="core/text_list" name="content" as="content" translate="label">
      <label>Main Content Area</label>
</block>

so you should have something that looks like this:

 

<block type="core/text_list" name="content" as="content" translate="label">
      <label>Main Content Area</label>
      <block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs" before="-" />
</block>

The before="-" is the key to this as you are telling Magento to insert this block before everything else.

 

Please feel free to give some kudos if you find it helpful or mark it as the solution if it works for you!

 

Thanks,

Gareth.

If you're happy with this response - please mark it as a solution!
Magento Certified Front-end Developer | www.iweb.co.uk

Re: How to re-position breadcrumbs besides the page title?

Thank you this worked for me.

 

Can you please suggest a way that I can acheive the attached screenshot look

 

https://www.dropbox.com/s/6gveegbnx9wgdvw/pagetitle.png?dl=0

Re: How to re-position breadcrumbs besides the page title?

I would be happy to help. Can you mark this question as resolved and raise a new question for this please?

 

Thanks,

Gareth.

If you're happy with this response - please mark it as a solution!
Magento Certified Front-end Developer | www.iweb.co.uk

Re: How to re-position breadcrumbs only on catalog pages

I want to reposition the breadcumbs only on on catalog pages. I have placed the following code at the top of the local.xml file;
<catalog_category_default>
<reference name="root">
<action method="unsetChild"><name>breadcrumbs</name></action>
</reference>
<catalog_category_default>

I have placed the following code on the view.phtml file where I want the breadcrumbs to display just below some custom content.
<?php echo $this->getLayout()->getBlock(‘breadcrumbs’)->toHtml(); ?>

In the admin > configuration > Remove Breadcrumbs I have tried both yes and no. When yes breadcrumbs display and when no they do not but with either setting they do not move.

Any help will be greatly appreciated.

Thank you

Re: How to re-position breadcrumbs besides the page title?

I wish to achieve the same thing as Bhargav Mehta. Can you please help?

Re: How to re-position breadcrumbs only on catalog pages

Hi there,

 

you might want to try the view handle instead?

 

<catalog_category_view>

You will also need to insert the breadcrumbs block back into another block.

 

<action block="content" method="insert"><name>breadcrumbs</name></action>

Thanks.

If you're happy with this response - please mark it as a solution!
Magento Certified Front-end Developer | www.iweb.co.uk