switch to horizontal menu (CUBIC THEME)
-
hi guys,
if anyone can help me I would greatly appreciate it.does anyone know if you can change the Cubic menu?
it is hidden in three bars at the top, like the menu to stay in full, horizontally.https://wordpress.com/themes/cubic/
thank you!
-
This is how to do it if you’re hosting your own WordPress install. Not sure how to do it if your site is hosted by WordPress.
Essentially, you’re going to create a custom version of header.php for Cubic to use. By default, Cubic uses Boardwalk’s header.php, unless you create your own header.php inside Cubic. So, first step, copy header.php from Boardwalk into Cubic in your /wp-content/themes folder.
Now, the menu currently exists in Boardwalk’s sidebar.php. Open that up, and look for a line that says <?php if( has_nav_menu(‘primary’) ) :?>
You’re going to copy everything from the start of that line down to the end of the comment <!–#site-navigation–>.
Now, go to header.php inside Cubic. After the comment <!–.site-branding–>, paste the code you copied from sidebar.php. Save your Cubic header.php.
That should be it. You’ve copied the nav menu from the sidebar to the header. You’ll have to do a lot of css work to get it styled correctly, but the nav menu is in the right spot.
I’ll try to do that. thank you.
Just a heads-up not to edit the theme files directly, or you’ll lose all your changes every time you update the theme.
Here are some guides in case you haven’t made one before:
http://codex.wordpress.org/Child_Themes
http://op111.net/53/
http://vimeo.com/39023468Good luck!
thanks for the tip, but I’ve changed so many files on my main theme that will use the child theme to the next. 🙂
OK, just please be careful when you update the theme as all your changes will be wiped out! Be sure to make a backup before you update.
The topic ‘switch to horizontal menu (CUBIC THEME)’ is closed to new replies.
