Forum Replies Created
-
AuthorPosts
-
fiddles5Member
There's no Yoast plugin. No numbers next to Category names. I've tried disabling the plugins already. Didn't help.
Thanks for looking into this for me!
fiddles5MemberHi -- the Categories widget is in the sidebar. It's called "Interesting Stuff" -- The links in the widget don't work. Also in the blog posts when you click on the link to Category, you get a blank page.
fiddles5MemberThis reply has been marked as private.fiddles5MemberBrad - explain to me what this does:
if
( ! is_home() ) {
If it's the home page, then do the following? Shouldn't it be if it's NOT the home page, then do the following? Is that what the exclamation point means? if NOT is_home then do this... ?
pardon my ignorance of php!
fiddles5MemberBrad -- I did that, but something is backwards here. Now the shorter banner is appearing on the home page, where I DON't want it. And NO banner is appearing on the other pages.
So what I want is for the larger header to appear on the home page with the header widget content on the right. And the smaller banner to appear on ALL of the other pages of the site, without the header widget.
fiddles5Memberthat previous answer was for John. Brad -- I'll try doing that and see what happens. That's probably it!
thanks!
fiddles5Memberperhaps it is a difference in themes? It didn't work for me. It hid the header AND the navigation on the home page and gave all of my text a weird shadow effect, and messed about with the placement of the footer widgets! Weird.
But it DID work on all the other pages EXCEPT the home page.
help?
fiddles5MemberThanks Brad, I did that, and you can see what happens. I get both banners on the home page, on top of eachother, and the large banner that i don't want on all the other pages. Still not working for me. http://portsmouthhistory.org/newdev/
John's latest php addition to the functions.php file didn't do it either.
But you must be on the right track as things are definitely happening with the header! Just not things I'd like to have happen! LOL!
Any other suggestions?
fiddles5Membersorry I should clarify John -- I'm talking about adding your supplied php to the functions.php doc, not the css issue.
fiddles5MemberYikes! That works for non-home pages: http://www.portsmouthhistory.org/newdev/discover-portsmouth/
But now the home page has no banner and no navigation! http://www.portsmouthhistory.org/newdev/
(I'll leave it like that for a few minutes so you can see it... thanks John!
fiddles5MemberOkay John, I'm going to try it with CSS. Here's what I tried so far that didn't work:
#header .widget-area {
float: right;
padding: 0px 0 0;
width: 262px;
margin-right:-70px;
display:none;
}.home #header .widget-area { display: visible; }
I added display:none to the #header .widget-area rule, then used the .home class as you had it in your post.
What that did was hide the widget-area on the home page. So that didn't work. What am I missing?
The body element for the home page looks like this: <body class="home blog custom-header header-image full-width-content agency">
I used the Appearance > Header to add a custom header, and changed the dimensions in the functions.php file.
http://www.portsmouthhistory.org/newdev/
help?
fiddles5Memberokay. added that to the bottom of functions.php but it didn't do anything. http://www.portsmouthhistory.org/newdev/discover-portsmouth/
Any suggestions?
fiddles5MemberYes, Brad -- I'd like to try your suggestion, and save John's for another time, thank you! And thank you John! I see what you mean.
So yes, let's remove the larger header from all the pages except the home page!
fiddles5MemberMaybe you aren't seeing the same thing I see? It works, sort of, but I see 2 banners -- one on top of the other -- on all the pages except the home page. So I see the shorter banner, and then right below it the home page banner with the rotating ads on the right. So no, this isn't what I wanted. I see 2 banners in Firefox and in Safari so it doesn't appear to be a browser issue. So there must be some extra php to hide the header on the other pages?
I so appreciate your help with this!
fiddles5Membersorry - that's a quote mark, not ”
fiddles5Memberokay -- look at this page for the result I got with the code I used: http://www.portsmouthhistory.org/newdev/discover-portsmouth/
Here is the code I used: <?php if ( !is_home() ) { ?>
<div><img src="http://www.portsmouthhistory.org/newdev/wp-content/themes/agency/images/bannerhalf.png" /></div>
<?php } ?>and checkmarked execute php on this hook.
This in the Genesis before header hook - or should it be put in genesis header hook? and then what to checkmark?
fiddles5Memberthanks, Brad -- but I'm using the header-right widgeted area only on the home page. I don't see how the "Banner-html-code-goes-here" would support that only on the home page and not on the other pages ?
I'd also need the banner area for all of the other pages to be half the height of the home page banner. Is that an easy fix?
thanks again! I am not really that familiar with php - probably know just enough to be dangerous...
fiddles5Memberthank you all so much!
fiddles5MemberChris -- strike that! I looked in the Genesis directory and found the page_archive.php and copied it to the Executive Theme directory and modified it as you mentioned, and it worked.
Does anyone see any reason NOT to do it this way, or is it okay to do it this way?
Thanks, Chris! Happy New Year!
fiddles5MemberThanks but I don't have a page_archive.php visible. I only have functions.php. Using the Executive theme.
-
AuthorPosts