I experiencing some issues with the Child theme that I generated from your site.
Somehow things in header does not turn out that well using the child theme when using the following scripts in astra-child/functions.php (I want to run tablet breakpoints for desktop):
Sorry, it didn’t make any difference. Your error must have happened when you copy pasted directly my text, mine has the same ‘ as yours in my code. I guess this forum adds ยด for posted threads.
Also weird, when using the code in parent Astra theme, in Functions.php it works correctly, the problem only occurs when code is placed in child theme Functions.php it goes wrong.
This reply was modified 2 years, 1 month ago by amc11.
I’ve added the code to the child theme, and it’s functioning as intended. You can find the link to the child theme with the code added to the functions.php file.
Additionally, I’m including a link to an article that explains how to add custom code without using a child theme.
If you have any further questions or need assistance, feel free to ask.
add_filter(‘astra_is_header_footer_builder_active’, ‘is_header_footer_builder_active_callback’); function is_header_footer_builder_active_callback() { return false; }
It doesn’t work, it produces the following layout in header. The last image is correct, but that is when I load the above code in Functions.php within Astra parent theme.
Wrong
Correct
This reply was modified 2 years, 1 month ago by amc11.
If you would like to switch back to the old Header/Footer, which we do not recommend, and would like to update the Breakpoint, then you will need the snippet from this doc instead.
Well. My wish is to have two menus, one hamburger and another one as a basic menu to the right of logo. But the mobile menu do not show up on desktop version. So that is why ive added that code.
Anyway, regarding the scenario you would like to achieve. I don’t think you can achieve it using the old Header/Footer. However, even using the new HFB, I don’t think you can achieve it with only the free Astra theme. The option to have the Toggle Button on the desktop view is available only with the Astra Pro plugin.
Kind regards,
Herman ๐
Viewing 9 replies - 1 through 9 (of 9 total)
The topic ‘Child theme doesnt work as expected’ is closed to new replies.