Pro Theme Design Forum » Mimbo Pro » Technical Help

Pages and Categories in the Navigation Panel

  • Started 11 months ago by Allpa
  • Latest reply from akcorcoran
  • This topic is not a support question

  • Allpa
  • Member
  • Posted 11 months ago #

How to place the Category on the Navigation Panel above (I use navigation by means of pages)?

I see that at NAPNAM here - http://www.napnam.nl/- it is made so: among pages in the Navigation Panel there is a Category "Blog"...

I need to make on the blog as - please, prompt, how it to make?

Thanks:)

  • Ben
  • Ben
  • Posted 11 months ago #

To mix categories and pages the way they have on Napnam you will need to edit the header.php file yourself to add in the additional links. I am afraid there is no way to combine the two through the theme admin.

  • Allpa
  • Member
  • Posted 11 months ago #

admin, I will make the necessary changes to a file header.php, only tell, please, what need to be brought particularly changes and in what concrete place of a code?

I will be very grateful to you for any council...

  • Ben
  • Ben
  • Posted 11 months ago #

The easiest thing to do would be to open up header.php and then modify the code that surrounds <?php bm_navigation(); ?>. I have posted some samples here : http://pastebin.com/m1db87e03

  • Allpa
  • Member
  • Posted 11 months ago #

admin - bravo!!! I have understood!!! At me it has turned out!!!!

Thanks! Thanks!! THANKS!!!!!!!!!!

  • Ben
  • Ben
  • Posted 11 months ago #

Glad it all worked out :)

  • Allpa
  • Member
  • Posted 11 months ago #

admin, apparently, except you at a forum nobody responds - please, look this topic →

http://forum.prothemedesign.com/topic/tag-lt_a_gt-in-the-field-excerpt

I hope for your help, it is very necessary to me...

  • manuarmand
  • Member
  • Posted 10 months ago #

Hello,
I'm also interested to mix in the navigation bar pages and articles.

Ben yous said :
'The easiest thing to do would be to open up header.php and then modify the code that surrounds <?php bm_navigation(); ?>. I have posted some samples here : http://pastebin.com/m1db87e03'

But the link you propose dosn't exist anymore.

Can you tell me what to do in the header.php

Thanks for your help

For information, in the theme "Blend" (http://spectacu.la/blend/) it's possible to choose in the admin articles + pages or no

Hi,

I needed to add a catagory link into the navigation....heres how it looks on mine..maybe this help..

<?php
	do_action('bm_head');
?>
	<div id="printMessage"></div>
	<div id="page">
		<div id="masthead">
			<h1>&nbsp;</h1>
			<h1><a id="logo" href="<?php bloginfo('home'); ?>"><?php bloginfo('name'); ?>
			  </a></h1>&nbsp;
			<h2 id="description"><?php bloginfo('description'); ?></h2>
		</div>
		<div id="navbar" class="clearfloat">
			<ul id="nav" class="left clearfloat">
				<li <?php if (is_home()) { ?>class="current-cat"<?php } ?>><a href="<?php echo get_option('home'); ?>/"><?php _e('Home','mimbopro'); ?></a></li>
				<li><a href="http://YOUR DOMAIN URL.com/?cat=3">LINK NAME HERE</a>

</li>
<?php
	$bm_navigation = get_settings("bm_navigation");
	if( $bm_navigation == "" || $bm_navigation == 0 ) {
		wp_list_categories('title_li=');
	} else {
		wp_list_pages('title_li=');
	}
?>
  • manuarmand
  • Member
  • Posted 9 months ago #

Thanks tones.ie,
Still doesn't work for me...
Here is the code I've put in my header.php
Remember I just want to mix pages and categories in the menu and order them by ID.
Thanks for your help.

<div id="navbar" class="clearfloat">
<ul id="nav" class="left clearfloat">

<?php
$bm_navigation = get_settings("bm_navigation");
if( $bm_navigation == "" || $bm_navigation == 0 ) {
wp_list_categories('orderby=ID&exclude=1,2&title_li=');
} else {
wp_list_pages('title_li=');
}
?>

  • NAPNAM
  • Member
  • Posted 9 months ago #

Hi everybody,

Instead of alteringthe php-code (which I would have to do again when the theme updates?)
I used a plugin to create a mix of pages, posts and categories.

The plugin I use is the "Page Links To" Plugin by Mark Jaquith

U can find it here:

http://txfx.net/wordpress-plugins/page-links-to/

It makes my navigation very flexible.

I hope this will work for you!

Cheers,

Patrick

  • manuarmand
  • Member
  • Posted 9 months ago #

Tks napnam,
I will have a look at this plugin.
For now i put this code in my header.php

<?php
$bm_navigation = get_settings("bm_navigation");
wp_list_categories('orderby=ID&order=DESC&title_li=');
wp_list_pages('title_li=');
?>

and it works very well : on my nav bar comes firts the categories (order by ID) and then my pages.

You can see the result here : http://www.micheldestot.fr

Cheers

  • akcorcoran
  • Member
  • Posted 9 months ago #

Hello -

Me again! My navigation for categories is perfect as is - and I use a plugin called Category Order and it orders the category perfectly.

So, of course, I want to add something. I'd like to add just ONE page to the menu - that is my Login page - the ID is 1246 . I'd like all the categories to appear (in order they are now) and then just the one page "Login" )

The only code I have now in the header.php is
<?php bm_navigation(); ?>

I do have a child header.php

Thanks for helping me figure out what code to put in -
Alexa

Reply

You must log in to post.