-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How i add <li> class #57
Comments
You can add it like this here - $this->content[ 'navigation' ][ 'main' ][ 'donut-theme' ] = array(
'url' => 'https://github.com/amiyasahu/Donut',
'label' => 'Donut theme',
'selected' => 0,
); You can change the label and URL as you wish. Also you can add links via q2a admin panel -> pages . |
@amiyasahu bro help me. |
Just use the PHP code I have given in my previous comment. |
@amiyasahu Its true? function body_header() // adds login bar, user navigation and search at top of page in place of custom header content
{
if ( !empty( $this->content['navigation']['main'] ) ) {
$this->output( $this->donut_nav_bar( $this->content['navigation'] ) );
unset( $this->content['navigation']['main'] );
}
$this->content[ 'navigation' ][ 'main' ][ 'donut-theme' ] = array(
'url' => 'https://github.com/amiyasahu/Donut',
'label' => 'Donut theme',
'selected' => 0,
);
} |
No @yerbol89 , use it like below - function body_header() // adds login bar, user navigation and search at top of page in place of custom header content
{
if ( !empty( $this->content['navigation']['main'] ) ) {
$this->content[ 'navigation' ][ 'main' ][ 'donut-theme' ] = array(
'url' => 'https://github.com/amiyasahu/Donut',
'label' => 'Donut theme',
'selected' => 0,
);
$this->output( $this->donut_nav_bar( $this->content['navigation'] ) );
unset( $this->content['navigation']['main'] );
}
}
`` |
@amiyasahu thanks its work. And i want one question?
|
Instead of changing the code, you should use |
@amiyasahu i use Admin -> Pages -> Add Link option from admin panel. But first Donut theme delete class in li and open target blank not work. I enable open link new window but target blank dont work. |
I will check and fix in next version. |
The text was updated successfully, but these errors were encountered: