Remove landmark header in Renew stack, without CSS

Hello, I would like to remove the Landmark header from all pages entirely. I do not wish to hide it wish CSS. I would prefer to remove it via remove_action or something similar, but I am not able to find where/how the landmark-header is being added/included. I assume it is with an action hook, and so I’m also assuming that it can be removed with the same hook.

Please let me know.

Thank you!

Hi There,

Thank you for writing in, while that is outside the scope of support, I could point you in the right direction with the understanding that it would ultimately be your responsibility to take it from here.

On your site directory navigate to \wp-content\themes\pro\framework\legacy\cranium\headers\views{YOUR STACK} there you’ll see a file named wp-header.php copy that file to your child theme in the same directory path, open/edit the copied file then comment out or remove the line:
<?php x_get_view( 'your stack', '_landmark-header' ); ?>

Hope it helps,
Cheers!

Thanks @friech ! … no wonder I couldn’t find the Landmark source code.

Can I submit a feature request? I think it would be great if the hardwired elements, like the Landmark header, could be controlled with an action hook or filter, rather than a template override. I have always liked WooCommerce for this reason – you can either override a template file, OR you can use an action hook to remove or relocate part of a template, without having to worry about updating template files after each new release.

For now, overriding the template will work great. Thanks again!

Hi there,

Thanks for the suggestion.

I have already added this in our feature request list so that it will be considered in the future development.

Cheers!

1 Like

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