[Resolved] Hook Element stopped working

Home Forums Support [Resolved] Hook Element stopped working

Home Forums Support Hook Element stopped working

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #1612584

    My site is at https://gfa.wishfulthinking.us/

    I updated the image for the logo on our site, and suddenly the Hook Element that switched to the white menu (for pages with image backgrounds) stopped working. It has been working fine until I made this update to the image files. Here’s the text of the php.

    <?php if ( is_page( array( 12, 179, 'Blog' ) ) ) : ?>
    	function getLogo() {
    		var img = document.getElementsByClassName('header-image')[0];
    <?php endif; ?>

    The hook I am assigning this is wp_footer. And the display rules is all pages.

    Customer Support

    Hi there,

    Sorry not sure why the custom function is needed there?

    Have you considered using our built-in header element solution?

    We cannot help with custom code in the forum here.


    I didn’t think I could use the built-in Header element because of my split nav with the logo in the center.

    I’m looking into this now. Do you foresee any issues with the split nav that I’m using?

    Customer Support

    The header element method should work for the split nav ๐Ÿ™‚


    Nice – I got it working on this page as a test – https://gfa.wishfulthinking.us/first-page/

    However, it looks like there’s a style issue. Logo coming after the right nav instead of in the middle. This is a much better solution. Can you give me any ideas about how to fix the styles?


    Actually, I found the issue with my custom code. If you have a quick fix for the header layout css with the Header element, let me know. Thanks!


    Thanks for the help!

    Customer Support

    Is everything good now?

    Please open a new topic if you need another look with something else ๐Ÿ™‚

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