Two horizontal menus (Artisteer / WP)


Author Message
Nils

Posted: 11/10/2011
Quote message 

Hey folks!

I´v been trying now for a while to add an extra horizontal menu for my artisteer theme that i´v created. The menu bar should for an example contain "Forum". So when you press on that, than you will be sended there. Do anyone know how to fix this?

Best regards
//Nils
 
Garry

Posted: 11/10/2011
Quote message 

Not sure I understand your requirement completely but you can simply insert a Forum link using custom menu and assign an external forum URL to it.
 
Gina

Posted: 11/11/2011
Quote message 

Hi Nils,

To add second horizontal menu you need to do the following (I have Artisteer v 3.1, so if you have earlier version than 3, tell me):

1) Go to wp-admin => Appearance => Editor

2) In functions.php find the line:

if (function_exists(‘register_nav_menus’)) {
register_nav_menus(array(‘primary-menu’ => __( ‘Primary Navigation’, THEME_NS)));

3) Add there another line, so that you get this:

if (function_exists(‘register_nav_menus’)) {
register_nav_menus(array(‘primary-menu’ => __( ‘Primary Navigation’, THEME_NS)));
register_nav_menus(array(‘secondary-menu’ => __( ‘Secondary Navigation’, THEME_NS)));

4) Now go to header.php and copy the lines:

<div class="art-bar art-nav">
<div class="art-nav-outer">
<div class="art-nav-wrapper">
<div class="art-nav-inner">
<?php
echo theme_get_menu(array(
'source' => theme_get_option('theme_menu_source'),
'depth' => theme_get_option('theme_menu_depth'),
'menu' => 'primary-menu',
'class' => 'art-hmenu'
)
);
?>
</div>
</div>
</div>
</div>

5) If you need one of the menu to be in the bottom of the page above footer, than paste the code to the file footer.php in the very beginning.

6) Change the line 'menu' => 'primary-menu', for 'menu' => 'secondary-menu',

7) Now go to wp-admin => Appearance => Menus and create one more menu there, add the items you need (forum, contact etc) and assign this menu for Secondary Navigation in the right top corner.

8) Now you have second horizontal menu with the items you need, above your footer. Notice that the menu is styled the same as the first one since it have the sane class 'class' => 'art-hmenu'. If you need this menu look different, you need to assign it a different class (e.g. art-hmenu2) and define the style for this class in styles.css (you may either copy the code in style.css for art-hmenu and modify it for art-hmenu2 the way you need; or you may create another template in Artisteer with the menu you like, then upload it to wp without activating it, go to its style.css via Editor and copy the code for the menu there (all entities that contain art-hmenu), change art-hmenu for art-hmenu2 and paste it in your activated template, in this case you will also have to copy the images that are used in this menu to the folder of the activated template, prior to this - alter the names of those images so they are not override the images for your primary navigation and then change urls for those images in style.css).

If you have any questions, just ask :-)
 
Nils

Posted: 11/11/2011
Quote message 

Thank you for your answer! I got a problem on the way though...

3) Add there another line, so that you get this:

if (function_exists(‘register_nav_menus’)) {
register_nav_menus(array(‘primary-menu’ => __( ‘Primary Navigation’, THEME_NS)));
register_nav_menus(array(‘secondary-menu’ => __( ‘Secondary Navigation’, THEME_NS)));

When I did this i got this error:

Parse error: syntax error, unexpected T_STRING in /home/mydomain/public_html/wp-content/themes/Untitled/functions.php on line 47

What to do?

And I can´t do nothing.
 
Nils

Posted: 11/11/2011
Quote message 

I can tell that i´m trying to find the file in the FTP. But with no success.
 
Gina

Posted: 11/11/2011
Quote message 

maybe, if have copy-pasted the code from here, it was pasted with curly quotation mark ‘ , make sure they are straight '.

 
Gina

Posted: 11/11/2011
Quote message 

In your ftp you must find the file with the themes, then find your theme and find the function.php in it.

When copy-pasting the code you must pay attention that the quotes are not curly, but straight, retype all of them yourself after pasting.
 
Nils

Posted: 11/11/2011
Quote message 

Okey, i´v been trying. And now this shows:

Parse error: syntax error, unexpected '}' in /home/xntrnasm/public_html/wp-content/themes/Untitled/functions.php on line 2

Any clue what to do? The document i open don´t looks like the one in editor.
 
Gina

Posted: 11/11/2011
Quote message 

this code

if (function_exists(‘register_nav_menus’)) {
register_nav_menus(array(‘primary-menu’ => __( ‘Primary Navigation’, THEME_NS)));
register_nav_menus(array(‘secondary-menu’ => __( ‘Secondary Navigation’, THEME_NS)));
}

has to be closed with }. I haven't copied it, because it was initially there in functions.php. It must have been that you deleted it by accident when pasting the new code. Make sure it is still there
 
Gina

Posted: 11/11/2011
Quote message 

though, if the error is on line 2, it may be some pther part of the code that is missing there. Have you altered something else in this file?

It is strange you having the problems, because before posting the steps for menus I have tried doing it on my site and it worked. :-X

I can't tell where exactly there is a syntaxt error not seeing the file. You may copy the content of the file here (from the beginning up to the altered code for the menus, not the whole file) :*)
 
Nils

Posted: 11/11/2011
Quote message 

Hey, i´v got an idea! What about deleting the theme from FTP? So that i will get the standard one. Or will the settings still be there?
 
Gina

Posted: 11/11/2011
Quote message 

You must have a zip file with this same theme on your pc or .artx file. You can unzip it, copy the file function.php and replace the broken file with it. No need to delete the whole theme. If you have any other Artisteer-made theme on your pc or already on the server, just take the function.php file from there.

Tell me how it is going. It is really sad that error occured.
 
Nils

Posted: 11/11/2011
Quote message 

Thank you so much Gina! I fixed it!

Now i´m back to the problem with the two menus. I have to fix a thing. And i will bee back in 3-4 houers. So I will try then. This time I wont copy, i will write it myself O:)

All I have to do is, after
if (function_exists(‘register_nav_menus’)) {
register_nav_menus(array(‘primary-menu’ => __( ‘Primary Navigation’, THEME_NS)));

press enter, and than just write in:
register_nav_menus(array(‘secondary-menu’ => __( ‘Secondary Navigation’, THEME_NS)));
?

I have another question. Here:

http://www.artisteer.com/?post_id=179329&p=forum_post&forum_id=17

Do you know anything about that? I hope it´s okey to link from here to there.

Thanks again.

Best regards
//Nils
 
Nils

Posted: 11/11/2011
Quote message 

Hey! I made it. But it dident look the way i wanted it. I want something like this:

http://i43.tinypic.com/13z2zvb.jpg

Can i fix this?
 
Nils

Posted: 11/12/2011
Quote message 

Hey. I´m trying to understand "8)" but i don´t really get it. Is that the thing I have to do, to get it like this:

http://i43.tinypic.com/13z2zvb.jpg ?
 
Gina

Posted: 11/12/2011
Quote message 

If you need one of your menus to be on top of the other, very close to each other, then you must put the code, that I gave in step 4, not in footer.php, but in the end of header.php:

<div class="art-bar art-nav">
<div class="art-nav-outer">
<div class="art-nav-wrapper">
<div class="art-nav-inner">
<?php
echo theme_get_menu(array(
'source' => theme_get_option('theme_menu_source'),
'depth' => theme_get_option('theme_menu_depth'),
'menu' => 'primary-menu',
'class' => 'art-hmenu'
)
);
?>
</div>
</div>
</div>
</div>
<div class="cleared reset-box"></div>

As for the second post you have about three images on front page, post your question in WordPress thread of forum, you will get more answers
 
Nils

Posted: 11/14/2011
Quote message 

I don´t get it to work... I add the above code in header.php. But nothing happens. What to do?
 
Nils

Posted: 11/14/2011
Quote message 

The thing is that i want the "forum" "Contact" and "home" menu to be in the header. In front of the picture that i have. And than the other menu bar should be just below the picture.

Thank you for your help, alot.
 
Gina

Posted: 11/14/2011
Quote message 

If you need the menu items in header itself, then you don't need second menu :*)

You need to create the image for header background yourself, drawing the menu items the way you want. After uploading the header image (that has menu items drawn on it) you have to make the header areas clickable.
Abland describes here, how to achieve this:
http://www.artisteer.com/Default.aspx?post_id=175563&p=forum_post
:-)
 
Gina

Posted: 11/19/2011
Quote message 

I work with Artisteer only and have my knowledge based on this program, I am not sure how that theme is designed.
I think you should address someone on their forum/support.
 
DivaVocals

Posted: 11/26/2011
Quote message 

I had a little trouble copying and pasting this code. I see that others has issues too.. So I thought I'd just share the code with the correct single quotes for anyone else who runs across this post.. (That way you can copy and paste the code straight from here and the quotes are straight not curly)

if (function_exists('register_nav_menus')) { 	register_nav_menus(array('primary-menu' => __( 'Primary Navigation', THEME_NS))); 	register_nav_menus(array('secondary-menu' => __( 'Secondary Navigation', THEME_NS))); 

 
dewata

Posted: 4/18/2016
Quote message 

Gunung bromo merupakan gunung eksotis yang ada di jawa timur dan sangat cocok dijadikan tempat berbulan madu bagi pasangan baru. Banyak tempat romantis yang tentu akan menjadikan anda terkenang seumur hidup. Banyak agen yang menyediakan paket honeymoon gunung bromo dengan durasi 2 hari 1 malam dan tentunya paket ini berfasilitas yang sangat mewah. Masalah harga nanti bisa dinego dengan pihak agen travel. Paket wisata honeymoon gunung bromo 2 hari 1 malam info lengkapnya wisata bromo tour http://extreme-guide.blogspot.co.id/2015/11/harga-paket-wisata-gunung-bromo.html

Malang Transport merupakan perusahaan yang bergerak di bidang jasa transportasi khususnya sewa menyewa mobil di kota malang. Perusahaan tempat rental mobil di malang ini banyak memiliki kantor yang bertebaran di berbagai sudut kota malang batu. Entah tempat sewa mobil malang http://catatanartikel.blog.com/2016/02/03/memilih-rental-mobil-online-malang/ itu milik perseorangan atau milik perusahaan. Info harga rental mobil di malang transport bisa anda klik rental mobil wisata di malang batu http://madas.beep.com/sewa-mobil-elf-di-malang-untuk-berbagai-kalangan-2015-12-23.htm

Kota surabaya memang menjadi kota terbesar kedua di Indonesia. Banyak perusahaan besar dan kantor-kantor pemerintahan yang berdiri di kota yang sangat padat ini. Jika anda sedang berkunjung ke kota surabaya untuk urusan pekerjaan dan membutuhkan jasa transportasi sewa mobil di surabaya maka anda bisa datang ke kantor Madas Trans di daerah surabaya barat. Tempat sewa mobil murah Madas Trans Surabaya http://www.chairulumam.abatasa.co.id/post/detail/87948/rental-mobil-lebaran-di-surabaya-yang-terpercaya.html menyediakan beragam armada pilihan yang bisa anda pilih sesuai keinginan anda. Info detail sewa mobil surabaya dan rental mobil murah kota surabaya baca di sewa mobil murah kota surabaya http://otewe.tumblr.com/post/139967513325/pilihan-harga-sewa-mobil-pengantin-di-surabaya

Yogyakarta sangat terkenal dengan kota pendidikannya. Banyak mahasiswa rantauan yang datang ke Jogja untuk menuntut ilmu. Jika anda termasuk salah satu rantauan di jogja dan sedang membutuhkan jasa sewa mobil murah di jogja maka silahkan datang ke tempat jasa sewa mobil murah jogja http://catatandiary.jimdo.com/2016/02/28/ketentuan-dan-syarat-rental-mobil-di-jogja/ di Safa Transport. Banyak tersedia mobil terbaru dengan harga sewa yang murah dan cukup bersahabat dengan kantong mahasiswa. Info lengkapnya tentang sewa mobil murah di jogja baca di rental mobil di jogja harga murah http://justshare.hatenadiary.com/entry/2016/02/20/Layanan_Jasa_Sewa_Mobil_Harian_Di_Jogja

Bali, pulau yang menyimpan banyak eksotisme dan syarat akan kebudayaannya yang sangat kental. Jika anda ingin berwisata di bali dan membutuhkan sewa mobil murah di bali silahkan datang ke kantor sewa mobil murah di bali Dewata Trans. Tempat jasa sewa mobil bali yang satu ini bisa disewa secara harian, mingguan dan bulanan. Rental mobil murah bali ini menyediakan armada terbaru dengan beragam jenis yang bisa anda pilih sesuai dengan kebutuhan Anda. Rental mobil harian bali ini bisa anda baca di sewa mobil harian murah di bali https://tobielblog.wordpress.com/2016/04/17/prinsip-prinsip-perjanjian-sewa-mobil-di-bali-dalam-hukum/