Brock Poling
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Problem with Menus in SimpleFolio ThemeI 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.
Forum: Themes and Templates
In reply to: Problem with Menus in SimpleFolio ThemeHi. 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.
Forum: Fixing WordPress
In reply to: Problem with changing rotating images in 2011 themeAnyone?
Forum: Themes and Templates
In reply to: Problem with Menus in SimpleFolio ThemeHave 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.
Forum: Themes and Templates
In reply to: Problem with Menus in SimpleFolio ThemeSure, no problem.
I presume you have an account at Adsense? If not you can get one at https://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
- A link ad which is 728×15 that is placed above the banner graphic in the header, and
- 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="https://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.
Forum: Themes and Templates
In reply to: Problem with Menus in SimpleFolio ThemeI 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?
Forum: Themes and Templates
In reply to: Problem with Menus in SimpleFolio ThemeTo 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: https://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.
Forum: Themes and Templates
In reply to: Problem with Menus in SimpleFolio ThemeHere 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 https://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:
https://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="https://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.
Forum: Themes and Templates
In reply to: Problem with Menus in SimpleFolio ThemeSure. 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.
Forum: Themes and Templates
In reply to: How do I edit my Menus?Success!!
Thank you!
Forum: Themes and Templates
In reply to: How do I edit my Menus?Thanks esmi. I read all the documentation and I think I am close, but I am still struggling just a bit.
I added this to my functions.php file
/* Register Functions - Added to original theme */ function register_my_menus() { register_nav_menus( array('header-menu' => __( 'Header Menu' ) ) ); } add_action( 'init', 'register_my_menus' );
And in my header.php file I replaced this:
<div id="pagenav"> <ul class="sf-menu" id="nav"> <?php wp_list_pages('title_li='); ?> </ul> </div>
with this:
<div id="pagenav"> <?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?> </div>
When I do this I can now WHICH menu shows up (YEAH!!!!). But now the formatting is a bit screwed up. The menu is stacked on the far right and I have lost the original formatting.
If I don’t remove the
<ul class="sf-menu" id="nav">
line the entire menu is missing. Clearly this is playing an important role in the formatting, but I haven’t quite figured out what the conflict is.You can see it at https://www.concealandcarryhq.com
I am close. Thanks again so much for your help.
Do you have any thoughts on how I can recover the original formatting?
Forum: Themes and Templates
In reply to: How do I edit my Menus?Hey Zamphatta.
Thanks for your response. Actually my problem is whenever I add new pages they always end up in my top / bottom nav menu automatically. I am unclear about how to add new pages and NOT include them in the nav.
Do you have any thoughts on this?
Thanks again for your help.
Forum: Themes and Templates
In reply to: How do I edit my Menus?So digging some more, I have found this code in my header.php file
<div id="wrapper"> <div id="header"> <div id="logo"><a href="<?php bloginfo('home'); ?>"><img src="<?php echo sf_get_logo(); ?>" alt="<?php bloginfo('name'); ?> - <?php bloginfo('description') ?>"/></a></div> <div id="pagenav"> <ul class="sf-menu" id="nav"> <?php wp_list_pages('title_li='); ?> </ul> </div> </div>
I think what I need to do is replace the wp_list_pages function with the elements I have specified in a custom nav. (Yes?)
Does anyone know where these custom nav elements are? Or what I would replace the wp_list_pages(‘title_li=’) with to replace the listing of pages with the custom nav items?
Thanks in advance for hour help.
Forum: Themes and Templates
In reply to: Problem with Menus in SimpleFolio ThemeHey, 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.
Forum: Themes and Templates
In reply to: Problem with Menus in SimpleFolio ThemeI 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:
https://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.