WordPress.org

Ready to get started?Download WordPress

Forums

Problem with Menus in SimpleFolio Theme (27 posts)

  1. Brock Poling
    Member
    Posted 2 years ago #

    I am struggling with the SimpleFolio theme on my site http://www.concealandcarryhq.com.

    Every time I add a page, regardless if I tell it to add the page to the main menu it includes it anyway. From the admin interface it looks like I should have to explicitly tell it to add new pages to the menu, but that isn't how it is working. Can someone help point me in the right direction about what I need to do to not include every page in the main menu?

    Thanks in advance.

  2. rvanzo
    Member
    Posted 2 years ago #

    I just installed the theme myself. im having trouble putting the top image on and making the columns.

    Any help making the frame of the site look similair to this:

    http://www.cmstheme.net/files/imagecache/theme_image/themes/2010/02/wordpress-simplefolio.jpg

  3. Brock Poling
    Member
    Posted 2 years ago #

    I ended up modifying the header.php file to add the banner and the intro copy that goes on every page. That is probably the place to start.

  4. Rndm_wp
    Member
    Posted 2 years ago #

    Hi, Brock,

    I am sorry I can't help you with your original question, but could you please share what code you inserted in the header to get the banner image to show and the intro copy as well.

    And as far as the title of the forum in top left you just created a custom image (pistol) with text and then modified the header, right?

    Also are you just using the "home" templet?

    I am sorry about all the questions but there's no info anywhere else and the theme's support site is down. I really want to get my theme to at least where you are now, so I'll be really grateful in advance for any help.

    Also, my theme displays year 2009 at the bottom, so does that mean I have an outdated copy in the first place? If so where can I get (download) the updated 2011 copy?

    Thanks for any help!

  5. Brock Poling
    Member
    Posted 2 years ago #

    I feel your pain. I am happy to try to answer your questions, but remember, I am not much of a coder.. so YMMV.

    Regarding the header image, I uploaded my graphic and then updated the "Custom Logo" field in the "Theme Options Tab" That is the banner with the pistol and the Conceal and Carry Headquarters copy:

    http://www.concealandcarryhq.com/images/concealandcarry/conceal-and-carry.png

    To get the horizontal banner and the intro copy to ride on every page, I had to modify the header.php file. Here is the original code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    And here is what I appended to the BOTTOM of this file to get the banner and intro copy to show up.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    If you wouldn't mind, would you try something for me? Add new pages to your site and see if it auto includes them in your menu? Can you choose what pages go in the menu and which are left out? Right now ever page I create goes into the menu whether I want it to or not. I suspect I have broken the function somewhere with these edits, but I don't know where or how.

  6. Rndm_wp
    Member
    Posted 2 years ago #

    Hi Brock. Can't thank you enough, that was extremely helpful.

    As for the menus - yes it looks like every page you create just goes to the top menu automatically and the only thing you can manage is the order in which they appear there, however you can create a custom menu and only include whatever you want in it, but you only use that for the side bar.

    Aghh..

    Such a nice template but what a pain to work with.

    I also noticed that the "Home" template doesn't permit any content or side bar and only has one widget on the bottom, is that correct?

  7. Rndm_wp
    Member
    Posted 2 years ago #

    Ok, here's an idea about the menus. If you don't put a title for the page it won't show in the top menu after you publish it, however you can give it a name through navigation label in the custom menu for the side bar.

  8. Brock Poling
    Member
    Posted 2 years ago #

    Hey, did you get the code you needed? I guess I inadvertently ran afoul of the forum rules by posting too many lines of code at once (sorry mods). If you still need it let me know and I can re-post it using the correct procedures.

  9. Rndm_wp
    Member
    Posted 2 years ago #

    Yea, I got it, Brock, thanks a lot!
    Now I at least got the site off the ground.

    http://valetparkinghq.com/

    I know, another HQ, how original lol.

  10. Rndm_wp
    Member
    Posted 2 years ago #

    Hey, Brock. If you are still looking for the answer to the original question, there is a plugin called Page Link Manager that allows you to manage which page goes to the main menu. Hope this helps.

  11. jandersen13
    Member
    Posted 2 years ago #

    Hi Brock,

    Would you be willing to share that code again? It looks like I did not see your post in time before the code was removed.

    Thanks!

  12. Brock Poling
    Member
    Posted 2 years ago #

    Sure. I am happy to repost the code the correct way. I will get it up there for you this evening.

    I also figured out how to change the menus if you need that info as well.

  13. jandersen13
    Member
    Posted 2 years ago #

    Yes, if you could pass along that info as well that would be great, thanks!

  14. Brock Poling
    Member
    Posted 2 years ago #

    Here is my original post with the code added (hopefully) in the correct way. This shows how to change the header to get the image banner and the consistent paragraph of text on all pages. You can see this on my site http://www.concealandcarryhq.com

    I feel your pain. I am happy to try to answer your questions, but remember, I am not much of a coder.. so YMMV.

    Regarding the header image, I uploaded my graphic and then updated the "Custom Logo" field in the "Theme Options Tab" That is the banner with the pistol and the Conceal and Carry Headquarters copy:

    http://www.concealandcarryhq.com/images/concealandcarry/conceal-and-carry.png

    To get the horizontal banner and the intro copy to ride on every page, I had to modify the header.php file. Here is the original code:

    CLICK HERE TO GET THE ORIGINAL CODE

    And here is what I appended to the BOTTOM of this file to get the banner and intro copy to show up.

    <div id="slider1">        							
    
    <img src="http://www.securityguardtraininghq.com/1.png" border="none">               
    
    </div>
    
    <div class="slogan">
    
    					<h2><br>Conceal and Carry - Information and Training Classes</h2>
    
    					<p>Welcome to <b>Conceal and Carry</b> Headquarters – The leading online resource for information about handgun conceal and carry laws throughout the US with specific state laws and training requirements, a list of resources for where to get the highest quality conceal and carry permit training, articles on proper safety procedures, and interviews with instructors and law enforcement to help you get the information you need to make informed personal decisions about whether conceal and carry is right for you.				</div>

    I will post how I fixed the menus separately to help keep them clear.

  15. Brock Poling
    Member
    Posted 2 years ago #

    To Fix the Menus, here is what I did.

    Here are the CODE changes:

    First, in the functions.php file add this code to the top of the file. This will allow you to create and use 2 custom menus one for the top of the page, and one for the bottom in the footer:

    /* Register Functions - Added to original theme */
    		function register_my_menus() {
      			register_nav_menus(
        				array( 'header-menu' => __( 'Header Menu' ), 'footer-menu' => __( 'Footer Menu' ))
      		);
    		}
    		add_action( 'init', 'register_my_menus' );

    Then in the header.php file I replaced this code:

    <ul class="sf-menu" id="nav">
    					<?php wp_list_pages('title_li='); ?>
    				</ul>

    with this code:

    <?php wp_nav_menu( array( 'theme_location' => 'header-menu', 'menu_class' => 'sf-menu', 'menu_id' => 'nav'
     ) ); ?>

    in the footer.php file I replaced this code:

    <ul>
    					<?php wp_list_pages('title_li=&depth=1'); ?>
    				</ul>

    with this code:

    <?php wp_nav_menu( array( 'theme_location' => 'footer-menu'
     ) ); ?>

    Then in the WP dashboard interface:

    Go to the MENUS area. In the 'Screen Options' Tab at the top of the page make sure 'Theme Locations' are checked. (I have all of the check boxes turned on).

    Now you should have the ability to define and set a custom menu for both the header and the footer of your page.

    Again, if you want to see my page for an example, you can check it out here: http://www.concealandcarryhq.com

    Let me know if this works for you and if it was helpful. As I say, I am not much of a coder, but I have dug into this problem and I think I understand how it is working.

  16. jandersen13
    Member
    Posted 2 years ago #

    Thanks Brock!

    One more question. I'm having trouble getting my custom logo to display. I'm not sure if you're using bluehost.com to host your site but if you are maybe you can help. How do I find what the direct URL is to where I have the image stored on the server? Do I need to store it in a specific place?

    Thanks,
    Jeff

  17. Brock Poling
    Member
    Posted 2 years ago #

    I am using IXWebhosting.

    I uploaded my graphic with an FTP program (I use FileZilla) and then put the URL directly into the Custom Logo field. I created a custom directory to store the custom images I upload.

    Can you connect to your hosting account with FTP?

  18. kevinle
    Member
    Posted 2 years ago #

    Brock, thank you so much for posting your tips on this theme. Can you tell me how you placed those ads by google and the code? I'm having the hardest time figuring that out.

  19. Brock Poling
    Member
    Posted 2 years ago #

    Sure, no problem.

    I presume you have an account at Adsense? If not you can get one at http://www.google.com/adsense. Once you set it up it takes them a few days to approve you (they check out your site first).

    After that log on and generate an ad. In my case you see two types of ads

    1. A link ad which is 728x15 that is placed above the banner graphic in the header, and
    2. A Medium Rectangle ad which is in the sidebar

    You generate these ads in your Adsense account, and when you are done you click Save and Get Code. This pops a box where you can put the code into your copy buffer.

    Here is where/how I placed the code.

    Link Ads above the banner:

    For these, I modified the header.php file. Place your link ad code between:

    Here:

    <div id="main">
    			<div class="container">

    and here:

    <div id="slider1">
    <img src="http://www.securityguardtraininghq.com/1.png" border="none">
    </div>
    
    <div class="slogan">
    
    <h2><br>Conceal and Carry - Information and Training Classes</h2>

    For the Medium Rectangle ads on the right side, here is how to place them:

    In your Widget's menu place a text widget in your right hand side bar widget (you can place several of these widgets in the sidebar).

    Open the text widget

    Paste the code Adsense generated for you in the text widget. Save it.

    And that is it.

    It takes about 10-20 minutes for ads to start showing up. For me, they were not well targeted at first, but over the course of a couple of days they started placing ads that were topically close to my page content.

    Let me know if you have any problems.

    Show me your blogs/sites. I would love to take a look at what you guys are working on.

  20. kevinle
    Member
    Posted 2 years ago #

    thanks a lot! im just tinkering with my blog. its still barebones. still undecided about the theme and this one seems to give me too much trouble. how did u get rid of the home wigets and made your front home page look like a page/post type of page under the banner header?

  21. Brock Poling
    Member
    Posted 2 years ago #

    Have you tried the Thesis theme? I really like that. It has a ton of functionality and there are lots of skins available for it so you can dramatically change the look. I have barely messed with the code on the sites I use Thesis on.

    You might give that a shot.

  22. stoffb
    Member
    Posted 2 years ago #

    Hi there,

    Sorry to bother you considering the last time you posted was 5 months ago but your explanations seem to be the closest to what I need...
    I'm currently working on a website seo4searchengine.co.uk and I can't modify the top nav at the top...
    I followed your explanation above and now the top nav disappeared and the footer nav stayed the same as before (About, Home, Portfolio, SEO blog)...
    Did you give a specific name to the "custom menus" in the menus options?

    Your help would be much appreciated, I'm getting really confused now about what to do to have the menu in the right order (Home, About, Portfolio, SEO blog)

    Thanks in advance

  23. stoffb
    Member
    Posted 2 years ago #


  24. Brock Poling
    Member
    Posted 2 years ago #

    Hi. I am happy to try to help, but remember, I am not really a coder, I just figured it out by digging in the code and dissecting it.

    Are you trying to get your site's menus to work the same as mine with the drop down menus?

    I am happy to post my code if you would like.

  25. stoffb
    Member
    Posted 2 years ago #

    Hi Brock,

    Thanks very much for your quick response, I finally managed to sort out what I was trying to do. Spent hours looking for codes issues when I actually didn't see an option in the menus section...
    All sorted!

    Thanks again for quick response!
    Best wishes for 2012

  26. Oysiao
    Member
    Posted 2 years ago #

    Hi all, I'm trying to figure how works the navigation menu of SimpleFolio, but I got problems trying to modify it.
    I followed these instructions to make the menu editable: http://www.njcmedia.com/2011/03/simplefolio-add-custom-menu-support/

    But now the menu falls down the header.

    my web is http://www.jlmirall.es/oysiao

    Anyone can help me?

    Another problem I have is I don't know how to put a menu item to link the home page with all the post (like the link of the image).

    sorry if I ask here, but the SimpleFolio webpage is not active now.

  27. Brock Poling
    Member
    Posted 2 years ago #

    I think if you sift through this thread from the beginning, and try some of the code ideas you will get what you need.

    I had these problems too, and most of what I did is in this thread.

Topic Closed

This topic has been closed to new replies.

About this Topic