Legacy\cranium wp-header support

I am trying to transition a site I had rebuilt in X4 over to X5. I had modified the child wp-header file in X4 for custom menus/headers. A direct X4 child theme copy still works on top of X5, but when I try to rebuild using X5 child, the menus/headers disappear.

I found reference in the forums of using legacy\cranium with the child theme, but can not get it to work. I’ve copied wp-header, _topnav and _navbar to their respective legacy folders in the child theme, but still nothing. I also copied the entire legacy folder with modified files and still did not work.

Is there a trigger to get this to work that I’m missing?

Hi there,

Would you mind providing your FTP details as well so that we can check this further?

Thank you.

Sure. FTP credentials have been added to the original note.

Hi,

The FTP login provided doesn’t seem to work.

Kindly check again and let us know.

Thanks

Just added a new account for Apex support.

Hi there,

I can confirm this issue, but I can’t verify what customization you’re trying to move/implement. Would you mind providing the correct theme path of your main site? Example, there is no X theme here /public_html/wp-content/themes/.

I only see the staging folder which is correct I think since the changes I made are being displayed.

Maybe it’s not the cranium templates that you need to customize since it’s just a fallback templates. And I need to see your original custom templates from X4 so I could run some test on main templates instead of cranium templates.

Thanks.

Is there any documentation on use for the cranium templates? Since this is released with X5, I assumed that was best practice for transitioning. Understand that rebuilding in X5 natively would be best, of course. WooCommerce upgrade transition is also complicating the issue.

The current X4 site is located in the /public_html/TWBStore/ directory.

Thanks for your help

Hi,

Regretfully we don’t have any docs regarding it.

You can copy your parent theme directory structure in your child theme.

For example if you want to modify wp-header.php, it’s now located in

wp-content/themes/x/framework/legacy/cranium/headers/views/integrity/wp-header.php

so can copy that and create the path in your child theme directory

wp-content/themes/x-child/framework/legacy/cranium/headers/views/integrity/wp-header.php

Hope that helps.

Not sure if we were experiencing the same problem, but I had a similar edge-case issue and solved it by copying page.php into my child theme and editing it as follows:

<?php **x_legacy_modes();** x_get_view(x_get_stack(), 'wp', 'page'); ?>

Hello @daniel_roe,

Thanks for chime in and sharing the solution thereby helping our community members. :smiley:

Thanks.