-
AuthorPosts
-
November 13, 2025 at 10:42 am #1491286
Scarlett
Guestadd_action( ‘ava_main_header’, function() {
We are using this hook to create a custom header design.Previously we had tried editing the code on the child theme for header customisation, but it caused the website to crash.
Do you think using this hook can help us achieve the result without the chances of the website crashing.
November 13, 2025 at 12:56 pm #1491289Hey Scarlett,
I’m not sure that I understand what you are trying to achieve, please try to explain your intentions a bit further.
Best regards,
RikardNovember 14, 2025 at 2:21 pm #1491336Thanks for your response.
We are trying to customise our header design on bbbseed.com
Last month, while working on the same, when we tried to implement the code on the child theme header, it made the website crash. And prior to this, we had tried to implement the code on the main websiteas well, which had resulted in the main website crashing.So now, we are trying to achieve the same using hoos via the snippets.
We took reference from your article : https://kriesi.at/documentation/enfold/hooks-and-filters/Are we going in the right direction?
Or shall I share the code that we were trying to implement for customisation? Will that be of any help to identify the issue?November 14, 2025 at 4:50 pm #1491340Hi,
Thanks for the update, but I’m still not sure why you are using that specific filter? If you want to modify the header, then maybe overriding header.php and styling using custom CSS will be enough?
Best regards,
RikardNovember 14, 2025 at 6:00 pm #1491341We are using hooks to implement a custom header because we don’t file-access permissions on this project.
In this situation, is it okay to create the custom header design using hooks through a code-snippets plugin?November 15, 2025 at 9:01 am #1491346Hi,
Thanks for the update. If you are able to access files to add hooks, then you would be able to access what is necessary to override header.php and add CSS as well?
Best regards,
RikardNovember 15, 2025 at 5:18 pm #1491364Hi,
We don’t have access to create or modify any theme files, including header.php, so we are using the Code Snippets plugin and Enfold hooks to implement the custom header. Since we can’t create files inside the theme, we are relying entirely on hooks for the header layout.Can you please confirm if this is the correct approach, or if there is any recommended alternative in this situation?
November 17, 2025 at 4:34 pm #1491407Hi,
There are plugins that you can use to edit files: https://wordpress.org/plugins/wp-file-manager/. If you still cannot do it that way, then I don’t think the hook you are currently using is the correct one. Your layout might be achievable only with CSS, but since I don’t know what you are looking to do, then it’s difficult to say.
Best regards,
RikardNovember 18, 2025 at 9:57 am #1491454Hi Rikard,
We are creating a custom header design using the ava_header`** hook, which is provided in your theme documentation. Since we are not using a child theme, we do not have access to modify theme files directly. We have already made some adjustments using CSS, but we also need to rearrange certain header elements, so we are using the **ava_before_header hook through a snippet plugin instead of creating a header.php file.
Could you please confirm if this approach is recommended?
If we don’t use a child theme and create a custom header.php file directly inside the main theme:
Will this custom header.php file remain after updating the theme?
Or will it be removed/overwritten during the update and cause errors?We want to ensure we are following the correct and update-safe method, so your guidance would be greatly appreciated.
Thank you!
November 19, 2025 at 1:48 pm #1491513Hi,
I’ve never heard of anyone trying what you are looking to do, and I’ve never tried it myself either. My recommendation is still to use a child theme. I’ve asked the rest of the team to see if they know if this is possible.
Best regards,
RikardNovember 20, 2025 at 9:07 am #1491566Hi,
Thank you for the update.
We will go ahead and create a child theme for the custom header implementation. Could you please confirm if this can be done using FTP access only? Since we don’t have direct file access from the dashboard.
Looking forward to your guidance.November 20, 2025 at 4:46 pm #1491588Hi,
Yes, you can upload it via FTP. https://kriesi.at/documentation/enfold/child-theme/
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.
