-
AuthorPosts
-
July 15, 2014 at 12:03 pm #68878
Wordpress: 3.9.3
Stack: Renew
URL: http://www.refbumpreview.comI have a custom home page set up. I only want the footer to be shown on this page, but it also shows up on my ‘Blog’ page. How can I go about removing it? Changing the layout doesn’t seem to do anything.
July 16, 2014 at 12:20 pm #69394Hi Chris,
To do so, add the following CSS codes via Customizer > Custom > CSS:
.blog .x-colophon.top { display: none; }
Hope this helps, Cheers!
July 16, 2014 at 1:28 pm #69460That worked great. Thank you. I have a follow up question, though. How can I do the same thing for the other pages? The ‘About’ and ‘Contact’ pages both have no footer at all, which is initially what I wanted, but now I’d like them to match the ‘Blog’ page, which has my footer minus the widgets.
July 16, 2014 at 7:03 pm #69707Hi Chris,
You created About & Contact pages with Blank Template which doesn’t have Footer, so at first select a Page template for them which has Layout container | Header, Footer.
Now delete previous CSS codes & add the following.
.blog .x-colophon.top, .page-id-2 .x-colophon.top, .page-id-163 .x-colophon.top { display: none; }
If you can’t do it yourself then share your website login info here as private reply.
July 16, 2014 at 11:30 pm #69890Ok, I’m sorry…I should’ve been more specific. So far, everything you’ve told me has worked. All the pages that I mentioned have the footer that I want, but now I’m noticing that when I go into a particular post…it has my footer widgets. Also, when I go into a category archive, it has my footer widgets. Is there any sort of all encompassing, clean sweep code to have the widgets turned off for every single page aside from my custom home page?
July 16, 2014 at 11:50 pm #69904Hey Chris,
Please modify wp-footer.php located in wp-content\themes\x\framework\views\renew.
Change the line
<?php x_get_view( 'global', '_footer', 'widget-areas' ); ?>
to
<?php if ( is_home() ) { x_get_view( 'global', '_footer', 'widget-areas' ); } ?>
What it’ll do is show the footer widget areas only in your home page. Or, use the conditional
is_page( 42 )
instead of is_home() if you have a custom home page.Change 42 to the ID of your page.
If you’re using a child theme, please copy the the modified file in the same directory in your child theme (e.g. wp-content\themes\x-child\framework\views\renew).
Hope that helps. 🙂
July 17, 2014 at 11:40 am #70179Okay, I can’t find it. :/
Am I going to Appearance > Editor > Footer (footer.php)?
July 17, 2014 at 2:39 pm #70254Hi Chris,
You probably have to do it in your server control panel or via FTP,
The standard wordpress editor cannot edit files located in 2nd level directory of the theme.
Or you may want to install wordpress editor plugin.
Hope that helps.
Cheers
July 17, 2014 at 4:00 pm #70301Phew *wipes forehead*
That was tricky. Thank you guys so much.
July 17, 2014 at 7:14 pm #70397Hi Chris,
You’re welcome, Thank you for the complement.
Have a nice day, Cheers!
September 19, 2014 at 11:19 pm #108488This reply has been marked as private.September 20, 2014 at 5:32 am #108576Hi there,
Please modify wp-footer.php located in YOUR CHILD THEME -> framework -> views -> renew
<?php if ( is_page( 429 ) ) { x_get_view( 'global', '_footer', 'widget-areas' ); } ?>
Hope it helps.
September 22, 2014 at 12:29 pm #109953I’m not sure I understand. Maybe I’m remembering incorrectly, but I remember the issue being completely resolved without me having to go into my child theme. Truth be told, I’m completely baffled by the concept of child themes, so I doubt I ever did anything to it.
What I’m finding now is that in the footer of individual posts, as well as the archives/categories, I’m getting those widgets again. The other pages (About, Blog, Contact, Podcast) all look how I want them to. The home page, being the only page I’d like my footer widgets to appear, looks how I want it to. Like I said, I remember the posts and archives being fine, but I must have tinkered with something and screwed it up.
My apologies, but if there’s a way to do this without using a child theme, I’d very much prefer that. Thanks again for all your help, folks. 🙂
September 22, 2014 at 1:20 pm #109996Try adding some CSS code under Appearance -> Customize -> Custom -> CSS
body.single-post footer.x-colophon.top { display: none; }
this should remove it from single posts.
body.archive footer.x-colophon.top { display: none; }
this should remove it from all archive pages.
September 22, 2014 at 2:32 pm #110071Awesome, it worked. Thanks so much.
-
AuthorPosts