Add Featured Post Widget to Prose Homepage

Community Forums Forums General Discussion Add Featured Post Widget to Prose Homepage

This topic is: not resolved

This topic contains 11 replies, has 2 voices, and was last updated by  braddalton 1 year, 7 months ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #26170

    merpmerp
    Participant
    Post count: 35

    Hello,

    I would like to add a featured post widget to my homepage that displays thumbnails.    It is currently on the Featured Sidebar.

    Is this possible to do with the Prose child theme?

    Thank you,

    Mark

     

    #26932

    braddalton
    Participant
    Post count: 10348

    Yeah it is and i wrote about it recently.

    Here’s the code that goes in the child themes lib/init.php file.

    https://gist.github.com/5166697.git


    #26937

    merpmerp
    Participant
    Post count: 35

    Brad,

    Yes, I actually saw that when I searched before I entered my question.  Please forgive me, I’m fairly new to this and when I saw “sidebar”  I was thinking you were describing how to enter a slideshow.

    Can you tell me where I can find the lib/init.php file?  The only place I’ve seen something like that is in Editor and it says not to enter anything below a certain line.  I don’t want to mess anything up.

    Thanks for your help,

    Mark

     

    #26939

    braddalton
    Participant
    Post count: 10348

    Its in the Prose theme folder.  Use FTP or File Manager in cPanel and go to wp-content/themes/prose/lib/init.php

    Go to lib/init.php. Backup the file first and copy the code from the raw view.

    Open the file using a text editor like Notepad++

    This will add a widget area.

    You can also style it easily using CSS if needed.


    #27102

    merpmerp
    Participant
    Post count: 35

    uh….right.

    That’s a little beyond me right now, maybe I can get Hostgator to help me with it.

    At least I know it can be done though, so that’s a good thing.

    Thanks for your help with this,

    Mark

     

    #27104

    braddalton
    Participant
    Post count: 10348

    Its not that difficult because all you need to do is paste the code into your child themes init.php file.

    HG won’t help you with coding.

    Link to your site please.


    #28546

    merpmerp
    Participant
    Post count: 35

    Brad,

    Sorry for the late response.  Here is the site I want to do it on:

    http://unclaimed-funds.org/

    Thank you,

    Mark

    #28851

    braddalton
    Participant
    Post count: 10348

    No worries Mark. Send me an email brad@wpsites.net with your login details if you want me to take care of this.


    #30204

    merpmerp
    Participant
    Post count: 35

    Brad,
    I got as far as wp-content/themes/prose/lib, but there was no init after lib.  Does Prose have that?

    Thank you,
    Mark

    #30352

    merpmerp
    Participant
    Post count: 35

    I don’t know if opening those folders did anything, I didn’t touch anything in them, but my Prose sites are not right.  My primary sidebar is gone, instead it is one large column with everything all over the place.

    It would be good if I only wanted that, but I want to be able to use the primary sidebar still AND be able to use a widget on the home page.

    Any idea as to what happened and how I can fix it?

    Thanks for your help,

    Mark

    #30421

    merpmerp
    Participant
    Post count: 35

    Well, the sites are ok.  Maybe it was just the laptop I was using last night?

    I still don’t see the “init” option after the “lib”.

    Thanks,
    Mark

     

    #30424

    braddalton
    Participant
    Post count: 10348

    Are you using File Manager in cPanel or FTP to access the themes files?

     


Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.