(+84) 463.28.7979

How to move menu below header image- Thesis theme for wordpres


Thesis is the most used premium wordpresstheme. Its highly optimized for search engines. If you are thinking of getting a premium wordpress theme then buy Thesis. Here I will show you how to move the menu which is placed by default above the header image to below it. The task is quiet simple. All you need to do is put few lines of PHP code into your custom_functions.php. I have explained the steps below.

Step 1 : Create the custom_functions.php file if not already present

The custom_functions.php file is present under  Thesis/custom folder

ie. — wp-content/themes/thesis_18/custom/custom_functions.php

If the file is not already present then create it using FTP or using File manager from yourhosting account control panel. Optionally there is a custom-sample folder already present under your thesis folder. Your are just required to rename this folder to custom.

Step 2 : Enable Custom Stylesheet Options

By default this option is enabled. If not then just login to your wordpress dashboard using youradmin login and password. From Dashboard go to Thesis > Site Options > custom stylesheet options then  check the enable custom stylesheet checkbox. Save your settings.

Step 3 : Inserting the code

Here is the

code that you are required to insert in your custom_functions.php

1
2
3
4
5
6
7
8
<?php
function my_menu()
{
thesis_nav_menu();
}
remove_action('thesis_hook_before_header', 'thesis_nav_menu');
add_action('thesis_hook_after_header', 'my_menu');
?>

Goto Thesis > Custom file editor form your wordpress dasboard. Select custom_functions.php from the drop down box and click edit selected file. Copy the above code and save your custom_functions.php. Thats all is required. Refresh your site and and you will see that the menu has moved below your header image.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>