• Hello everyone,

    I am pretty new at wordpress, and I need your help.

    How would I go about removing the menu on “an ordinary theme” (peop1e.org)? All I want is for there to be an about me page, contact us page, blog page, home page, etc. I do not want for it to show “Pages, Latest Posts, Archive, etc.”

    Btw, I am hosting on goDaddy and am running WP 3.0.1

    Thanks!

    (peop1e.org)

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter moid93

    (@moid93)

    To make it clearer:

    Right now where it shows Pages, Latest Posts…I want actual page links to be there rather than drop down menus. That is where I want the About Me page, Contact us page, etc. to go!

    Thanks once again!

    Thread Starter moid93

    (@moid93)

    Here is the CSS for the “Sidebar.” I think this is the one that relates to the navigation bar. THANKS!

    <?php global $options;
    		foreach ($options as $value) {
    			if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; }
    			  else { $$value['id'] = get_settings( $value['id'] ); }
    		} ?>
    		<script type="text/javascript">
    		<!--
    		//SuckerTree Horizontal Menu (Sept 14th, 06)
    		//By Dynamic Drive: https://www.dynamicdrive.com/style/
    
    		var menuids=["treemenu1"] //Enter id(s) of SuckerTree UL menus, separated by commas
    
    		function buildsubmenus_horizontal(){
    		for (var i=0; i<menuids.length; i++){
    		  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    		    for (var t=0; t<ultags.length; t++){
    				if (ultags[t].parentNode.parentNode.id==menuids[i]){ //if this is a first level submenu
    					ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item
    					ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
    				}
    				else{ //else if this is a sub level menu (ul)
    				  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
    		    	ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
    				}
    		    ultags[t].parentNode.onmouseover=function(){
    		    this.getElementsByTagName("ul")[0].style.visibility="visible"
    		    }
    		    ultags[t].parentNode.onmouseout=function(){
    		    this.getElementsByTagName("ul")[0].style.visibility="hidden"
    		    }
    		    }
    		  }
    		}
    
    		if (window.addEventListener)
    		window.addEventListener("load", buildsubmenus_horizontal, false)
    		else if (window.attachEvent)
    		window.attachEvent("onload", buildsubmenus_horizontal)
    		-->
    		</script>
    
    		<div class="suckertreemenu">
    			<ul id="treemenu1">
    
    				<!-- Pages -->
    				<li><a href="#"><?php echo NAV_PAGES_TITLE; ?></a>
    			 		<ul>
    			 			<li><a href="<?php bloginfo('url');?>"><?php echo NAV_HOME_TITLE; ?></a></li>
    			 			<?php wp_list_pages('title_li=&sort_column=menu_order'); ?>
    			  		</ul>
    				</li>
    
    				<!-- Latest Posts -->
    				<li><a href="#"><?php echo NAV_LATEST_POSTS_TITLE; ?></a>
    			 		<ul>
    			 			<?php wp_get_archives('type=postbypost&limit='.$theme_latestpostslimit); ?>
    			  	</ul>
    				</li>
    
    				<!-- Categories -->
    				<li><a href="#"><?php echo NAV_CATEGORIES_TITLE; ?></a>
    			 		<ul>
    			 			<?php /* replace wp_list_cats with wp_list_categories for newer versions (if not working) */
    						if($theme_categorycount == "Yes"){ wp_list_cats('optioncount=1'); }elseif($theme_categorycount == "No"){ wp_list_cats('optioncount=0'); } ?>
    			  	</ul>
    				</li>
    
    				<!-- Archives -->
    				<li><a href="#"><?php echo NAV_ARCHIVES_TITLE; ?></a>
    			 		<ul>
    			 			<?php /*change the before and after parameters for adding another content before and after the archive parts */
    						wp_get_archives('type='.$theme_archivestype.'&format=custom&before=<li>&after=</li>'); ?>
    			  	</ul>
    				</li>
    
    			</ul>
    			<br style="clear: left;" />
    		</div>
    Thread Starter moid93

    (@moid93)

    any help is appreciate plz. THANKS!

    Thread Starter moid93

    (@moid93)

    Does anybody know how to do this??? Thanks

    I’m trying to figure out how to do this too… So I’m bumping this thread

    If you go into the translation.php file in the theme is where the defining suckertree info is but I don’t know how to change it to a traditional menu or just adjust what it’s defining and where it’s placing.

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Removing SuckerTree menu from "an ordinary theme"’ is closed to new replies.