Support » Theme: PHLOX » Search button in header is hidden on each postpage

  • Resolved Tim de Hoog


    By default, the search button in the header main menu is hidden for posts.

    In the file:

    You will find the function:

    In this function you will find this piece of code:

        if ( 'default' === $add_search = auxin_get_post_meta( $post, 'page_header_search_button' ) ) {
            $add_search    = auxin_get_option( 'site_header_search_button' );

    But the function auxin_get_post_meta( $post, ‘page_header_search_button’ ) will return null because this option doesn’t exist. You can’t set in in the wp-admin section. The if statement will fail and the default value of $add_search = false will be used.

    Add option to toggle the search button per blog in wp-admin or check the return value correctly so that $add_search = auxin_get_option( ‘site_header_search_button’ ); will be used.

    Thank you.


Viewing 1 replies (of 1 total)
  • Theme Author averta


    Thanks for reporting this. We will improve it in next upcoming update of Phlox theme.


Viewing 1 replies (of 1 total)
  • The topic ‘Search button in header is hidden on each postpage’ is closed to new replies.