ADDING CUSTOM MENU TO THE HEADER OF YOUR MOBILEPRESS

We must have done a real good job customizing the mobilepress colors and adding our site logo.

Seeing your site in mobile view, how do you like it now? Have you seen the mobile version of this site http://onenaijablog.com/ did you see the menu? On this short tutorial, we are going to learn how to create a custom menu just like that on our mobilepress theme.

Without wasting much of our time let’s get to it real quick.

First we are going to create a php file using any of our editors.

Copy the codes below

<?php

echo "<div class=\"wapmenu\">\n";

echo "<a href=\"http://onenaijablog.com\">Home</a> | <a href=\"http://onenaija.net/forum/index.php?action=downloads\">Downloads</a> | <a href=\"http://www.twitter.com/proudlyonenaija\">Twitter</a> | <a href=\"http://onenaijablog.com/catrgory/how-to\">How To</a>\n";

echo "</div>\n";

?>

Have you copied the code above? Now paste it in your notepad or any other editor and save it as “link.php” (without the quote), upload it to your root folder which is “public_html”

Now go to Public_html/wp-content/plugins/mobilepress/system/ theme/ default/header.php

We are going to call the script we just created using php. Now edit the header.php with your cpanel editor. Go to the extreme end of the header and locate the code below.

<div><?php mopr_ad('top'); ?></div>

Now underneath it place this code below

<div align="center"> <?php include('link.php'); ?></div>

Now it will look something like this one below

<div><?php mopr_ad('top'); ?></div>

<div align="center"> <?php include('link.php'); ?></div>

Save your work and view it with your mobile and see your custom menu looking at you…

NOTE: you can add more pages to the custom menu, depending on how you want it…

If this post is of help to you, your comments are required and welcomed.

If you like this post kindly hit the like button and recommend us…

Don't Miss Any Post Again. Subscribe To Our Feed And Be Updated

Enter your email address below:

 

Powered by OnenaijaBlog

Comments

  1. Shamsuddeen says

    Thank you for the information. I have question but it not related to this post.

    Please how long does it take your new created wordpress blog to appear on google search result? Because i transfered my blog from blogger to wordpress.org but it was one month now my blog not appearing on search engine.

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>

CommentLuv badge