vizjer
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Removing SuckerTree menu from "an ordinary theme"I am fairly new to coding and just downloaded this theme. I wanted to link pages directly as opposed to having the drop down menu, which is what it seems like you are looking to do also.
For example, I wanted a link to the homepage, Here is how I edited the sidebar PHP file.
this is the original:<!-- Pages --> <li><a href="#"><?php echo NAV_PAGES_TITLE; ?></a> <ul> <li><a>"><?php echo NAV_HOME_TITLE; ?></a></li> <?php wp_list_pages('title_li=&sort_column=menu_order'); ?> </ul> </li>
I edited it to look like this:
<!-- Home --> <li><a href="https://www.thelinkyouwantgoeshere.com"> <?php echo NAV_HOME_TITLE; ?></a> </li>
Thats its. Also note, in the translation php file you have a series of code under suckertree menu that looks like this:
// SUCKERTREE MENU define('NAV_HOME_TITLE','Home'); define('NAV_PAGES_TITLE','Pages'); define('NAV_LATEST_POSTS_TITLE','Latest Posts'); define('NAV_CATEGORIES_TITLE','Categories'); define('NAV_ARCHIVES_TITLE','Archives'); define('NAV_FEEDS_TITLE','Feeds');
You can edit or make up new ones so that it corresponds with the code in the sidebar php file.
For example (from the sidebar php):
<?php echo NAV_HOME_TITLE; ?>
I added
define('NAV_HOME_TITLE','Home');
in the translation php file and then used it in the suckertree menu in the sidebar php file.I hope my explanation was not too confusing and this helps with what you were looking to do.