• Resolved lukdol

    (@lukdol)


    Hi!
    I’m using a child-theme of onepress and would like to add some HTML-elements (in my case a form-input for newsletter) to the header. I added some HTML to the original template-tags.php somewhere in the onepress_site_header function and it worked. But i would like to change it in my child theme, so updates in the future don’t touch that code. How can i hook in that function? Or any other solution? I’m not a programmer, so an example code would be really really nice. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author FameThemes

    (@famethemes)

    Hi @lukdol,

    If you want to change the newsletter form, just copy the onepress_subscribe_form function to your child theme’s functions.php and change.

    That’s all.

    Thread Starter lukdol

    (@lukdol)

    Thanks for pointing in the right direction. I also want to put some other stuff in the header, not just changing the form. I followed the same procedure: Copied the onepress_site_header function to my functions.php and added html there. It works! So easy…
    Thank you for the fast answer!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Add HTML-elements to the header’ is closed to new replies.