Skip to main content
Explained how to find the "info bar" code.
Source Link
s_ha_dum
  • 65.5k
  • 13
  • 84
  • 174

There is a difference between the home page and the front page. Since the code uses is_front_page I assume that is what you want, but check the Codex for the difference.

I don't know how your theme works, but it looks like the theme rolls several things into the "info bar". The code you posted just checks to see if there is any reason to display that bar.

if (
  !is_front_page()                          // does not show on the front page
  && (                                      // shows if either
    get_option('rttheme_breadcrumb_menus')  //     there is a breadcrumb option saved
    || get_option(THEMESLUG.'_show_search') //     or a search option
  )
){
  $info_bar = TRUE;
} else {
  $info_bar = FALSE;
}

You might be able to hack those conditionals to get something close to what you want but because the "info bar" does several different things I don't know that you can alter that to get exactly what you want. I think that the thing you need to alter is the code that generates the "info bar" itself.

I am refering to an "info bar" because there is an $info_bar variable. Right now, that variable name is all I have to go on. You will need to look for something that uses that $info_bar variable. I expect if will look something like...

if($info_bar) {
  // some code probably 
  a_function_that_makes_the_infobar();
}

... but that is a guess. If you can find that function name then find the function itself...

a_function_that_makes_the_infobar() {
  // some code
}

... and edit the code into your question, I will revise the answer.

There is a difference between the home page and the front page. Since the code uses is_front_page I assume that is what you want, but check the Codex for the difference.

I don't know how your theme works, but it looks like the theme rolls several things into the "info bar". The code you posted just checks to see if there is any reason to display that bar.

if (
  !is_front_page()                          // does not show on the front page
  && (                                      // shows if either
    get_option('rttheme_breadcrumb_menus')  //     there is a breadcrumb option saved
    || get_option(THEMESLUG.'_show_search') //     or a search option
  )
){
  $info_bar = TRUE;
} else {
  $info_bar = FALSE;
}

You might be able to hack those conditionals to get something close to what you want but because the "info bar" does several different things I don't know that you can alter that to get exactly what you want. I think that the thing you need to alter is the code that generates the "info bar" itself. If you can find that and edit the code into your question, I will revise the answer.

There is a difference between the home page and the front page. Since the code uses is_front_page I assume that is what you want, but check the Codex for the difference.

I don't know how your theme works, but it looks like the theme rolls several things into the "info bar". The code you posted just checks to see if there is any reason to display that bar.

if (
  !is_front_page()                          // does not show on the front page
  && (                                      // shows if either
    get_option('rttheme_breadcrumb_menus')  //     there is a breadcrumb option saved
    || get_option(THEMESLUG.'_show_search') //     or a search option
  )
){
  $info_bar = TRUE;
} else {
  $info_bar = FALSE;
}

You might be able to hack those conditionals to get something close to what you want but because the "info bar" does several different things I don't know that you can alter that to get exactly what you want. I think that the thing you need to alter is the code that generates the "info bar" itself.

I am refering to an "info bar" because there is an $info_bar variable. Right now, that variable name is all I have to go on. You will need to look for something that uses that $info_bar variable. I expect if will look something like...

if($info_bar) {
  // some code probably 
  a_function_that_makes_the_infobar();
}

... but that is a guess. If you can find that function name then find the function itself...

a_function_that_makes_the_infobar() {
  // some code
}

... and edit the code into your question, I will revise the answer.

Source Link
s_ha_dum
  • 65.5k
  • 13
  • 84
  • 174

There is a difference between the home page and the front page. Since the code uses is_front_page I assume that is what you want, but check the Codex for the difference.

I don't know how your theme works, but it looks like the theme rolls several things into the "info bar". The code you posted just checks to see if there is any reason to display that bar.

if (
  !is_front_page()                          // does not show on the front page
  && (                                      // shows if either
    get_option('rttheme_breadcrumb_menus')  //     there is a breadcrumb option saved
    || get_option(THEMESLUG.'_show_search') //     or a search option
  )
){
  $info_bar = TRUE;
} else {
  $info_bar = FALSE;
}

You might be able to hack those conditionals to get something close to what you want but because the "info bar" does several different things I don't know that you can alter that to get exactly what you want. I think that the thing you need to alter is the code that generates the "info bar" itself. If you can find that and edit the code into your question, I will revise the answer.