Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1491286
    Scarlett
    Guest

    add_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.

    #1491289

    Hey 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,
    Rikard

    #1491336

    Thanks 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?

    #1491340

    Hi,

    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,
    Rikard

    #1491341

    We 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?

    #1491346

    Hi,

    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,
    Rikard

    #1491364

    Hi,
    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?

    #1491407

    Hi,

    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,
    Rikard

    #1491454

    Hi 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!

    #1491513

    Hi,

    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,
    Rikard

    #1491566

    Hi,
    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.

    #1491588

    Hi,

    Yes, you can upload it via FTP. https://kriesi.at/documentation/enfold/child-theme/

    Best regards,
    Rikard

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.