Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    Thread Starter marielmm

    (@marielmm)

    I’ll try to do that. thank you.

    Moderator Kathryn Presner

    (@zoonini)

    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:

    https://codex.www.ads-software.com/Child_Themes
    https://op111.net/53/
    https://vimeo.com/39023468

    Good luck!

    Thread Starter marielmm

    (@marielmm)

    thanks for the tip, but I’ve changed so many files on my main theme that will use the child theme to the next. ??

    Moderator Kathryn Presner

    (@zoonini)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘switch to horizontal menu (CUBIC THEME)’ is closed to new replies.