Scrollspy in Child Theme?

Hello,

After reviewing the comments on this forum, I engaged a developer to help integrate Scrollspy into my X-theme site.

They are wondering if it is possible to move

legacy/cranium/headers/views/global/_header.php

to child a theme?

They say that without this file I can lose their customization (scrollspy).

They would like to add this scrolling script there:

<\body <?\php body_class(); ?> data-spy=“scroll” data-offset=“40” data-target="#navtoc">

So is this possible and will it create any issues?

Hi There,

Thanks for writing in! It is possible to override that file by moving it into your child theme. To avoid future issues, you can review this file for changes when we’re releasing updates.

For example if X theme has included any patch to the file in a future update, you need to manually include it to your child theme as well.

Hope that helps.
Thanks!

1 Like

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