Change Post to Page in Education Theme Home page

Community Forums Forums General Discussion Change Post to Page in Education Theme Home page

This topic is: not resolved

This topic contains 16 replies, has 2 voices, and was last updated by  Baba 1 year, 4 months ago.

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #31628

    Baba
    Participant
    Post count: 38

    Is it possible to change the “Post” directly above the footer to a “Page” in the Education Theme?

    #31689

    braddalton
    Participant
    Post count: 10217
    #31772

    Baba
    Participant
    Post count: 38

    Brad, 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!!

    #31801

    braddalton
    Participant
    Post count: 10217

    Sorry my mistake. You want to display a page rather than a post in that area?

    the area above the footer is holding a Post.


    #31805

    Baba
    Participant
    Post count: 38

    Correct.

    #31806

    braddalton
    Participant
    Post count: 10217

    You 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.


    #31848

    Baba
    Participant
    Post count: 38

    I 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.

    #31849

    braddalton
    Participant
    Post count: 10217

    You 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


    #31893

    braddalton
    Participant
    Post count: 10217

    Here’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.

    [css]
    .post-37615 {
    display: none;
    }
    [/css]

    Then add this PHP code to your child themes functions.php file.

    Or grab it from Github https://gist.github.com/braddalton/5269913


    #40110

    braddalton
    Participant
    Post count: 10217

    Hi 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.


    #40116

    Baba
    Participant
    Post count: 38

    Brad, 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.

    #42947

    Baba
    Participant
    Post count: 38

    Brad, 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?

     

    #42966

    Baba
    Participant
    Post count: 38

    Brad, 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…….

    #42981

    Baba
    Participant
    Post count: 38

    Sorry, 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!

    #42987

    braddalton
    Participant
    Post count: 10217

    Can you link to your site please


Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in to reply to this topic.