Community Forums › Forums › Archived Forums › General Discussion › Change Post to Page in Education Theme Home page
- This topic has 16 replies, 2 voices, and was last updated 10 years, 11 months ago by Baba.
-
AuthorPosts
-
March 27, 2013 at 6:28 pm #31628BabaMember
Is it possible to change the "Post" directly above the footer to a "Page" in the Education Theme?
March 28, 2013 at 1:52 am #31689Brad DaltonParticipantMarch 28, 2013 at 10:17 am #31772BabaMemberBrad, maybe I'm not understanding this correctly (I'm a newbie). On the Education Theme the area above the footer is holding a Post. I thought that was part of the Theme's layout and that ONLY a Post could be placed in that area. On the Widget screen I see the Header Right, Primary Sidebar, Secondary Sidebar, Slider, Intro, Featured, Call to Action, Footer 1, Footer 2, Footer 3. The place where the Post falls into place is between the Call to Action and the Footers. So I'm not sure if making the change you are suggesting will work. Correct me if I'm wrong. Thanks!!
March 28, 2013 at 11:52 am #31801Brad DaltonParticipantSorry my mistake. You want to display a page rather than a post in that area?
the area above the footer is holding a Post.
March 28, 2013 at 12:05 pm #31805BabaMemberCorrect.
March 28, 2013 at 12:21 pm #31806Brad DaltonParticipantYou can hide the post from displaying using CSS code.
Then you can add a new widget area above the footer using a custom function hooked into that location with a conditional tag for the home page only.
March 28, 2013 at 3:51 pm #31848BabaMemberI don't know much HTML and very little CSS but I'll give it a try to see what I can break. Wish me luck!
Thanks.
March 28, 2013 at 3:59 pm #31849Brad DaltonParticipantYou can the widget by changing the hook location in this code:https://gist.github.com/braddalton/5257550
Using any of these hooks:
genesis_after_content_sidebar_wrap
genesis_before_footer
March 29, 2013 at 3:49 am #31893Brad DaltonParticipantHere's one solution. There are others.
Grab the post i.d from your source code and replace it in this CSS code which you need to add to your child themes style.css file.
.post-37615 { display: none; }
Then add this PHP code to your child themes functions.php file.
Or grab it from Github https://gist.github.com/braddalton/5269913
May 9, 2013 at 11:31 am #40110Brad DaltonParticipantHi Barbara
You can remove the Post meta link for categories using the Genesis Simple Edits plugin.
The code above works and has been tested if you want to add a new widget area above your footer.
May 9, 2013 at 11:53 am #40116BabaMemberBrad, I was just getting ready to copy the above code and jump into the deep end of the PHP pool when your final reply came through! I will work on this and let you know the outcome. Thank you for all of your assistance.
May 28, 2013 at 2:21 pm #42947BabaMemberBrad, I finally had a chance to try out your suggestions of changing the css and adding the PHP code to my functions.php file. The "Post" container disappeared (good). The "Before Footer Widget" appeared in my Widgets (good). But now I have run into a major road block. This isn't new due to your suggestions. It's an existing WP (what I consider) problem.
I dragged a "Page" into the "Before Footer Widget" area. I hit the dropdown arrow and see Title, Sort by:, and Exclude (Page IDs separated by commas). I have 285 PAGES! I will have to type in 284 EXCLUDED pages instead of typing in ONE INCLUDED page!! Any fix to this?
May 28, 2013 at 4:39 pm #42966BabaMemberBrad, well, I managed to find some information on changing the Exclude/Include problem. It required editing the default-widgets.php file. So now I have a nice page widget that has changed from "Exclude: Page IDs, separated by commas" to "Include: Page IDs, separated by commas". But now I realize that I totally misunderstood the "Pages" widget. Now, what I'm getting in the area where I wanted to show a Page instead of a Post, I'm getting a list with a link to the page I wanted to show. Brother! So despite all my efforts, this is not what I wanted. Any suggestions? Quick, before I jump.......
May 28, 2013 at 5:50 pm #42981BabaMemberSorry, me again! As stated above, the Page widget is not working out as I planned but I did try the "Genesis-Featured Page" widget and it added a page just as I had envisioned, only......the content of the page is running out of the margins! Will this never end? Anyway, just a reminder that I am using a responsive theme (Education). Hope to hear from you soon. Thanks!
May 28, 2013 at 6:38 pm #42987Brad DaltonParticipantMay 28, 2013 at 6:46 pm #42991BabaMemberBrad, just sent the link to your email.
May 30, 2013 at 10:38 am #43229BabaMemberBrad, this really turned into a headache! I viewed the Home page on an iPhone and the content was responsive! It looked great on the iphone but was spilling out of the margins on my computer. So I changed everything back to the way it was and tried the Genesis Simple Edits plugin. Activated the plugin, made my changes to delete the line items that I didn't want on the Post and was good to go! This was a Simple fix. Thanks for your patience and time. We can close this one.
It's crazy how I get through one road block that leads to another. I am sending in another topic :0)
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.