WordPress.org

Ready to get started?Download WordPress

Forums

Expound
Child theme example (18 posts)

  1. sgstrategist
    Member
    Posted 6 months ago #

    Does someone want to share the code they have used to successfully make a child theme? I've read several threads on this but none of the solutions offered have worked for me.

    It would be very helpful if I could just look at the actual code that someone has used successfully in their child them since .css files are squirrely on this one. Thanks!

    I'm using expound 1.9 and all I want to do is change the ration of the primary and secondary content areas. The primary is too wide and the secondary not wide enough.

    Much appreciated!

  2. batharoy
    Member
    Posted 6 months ago #

    You can do that with css, just install a custom css plugin.
    These are the default values.

    #primary {
        width: 740px
    }
    #secondary {
        width: 260px;
    }

    But to answer your question you can copy/paste the example on the codex page.
    Just change any accurance of twentyfourteen to expound.

  3. sgstrategist
    Member
    Posted 6 months ago #

    Thanks for the response. I tried several of those plug-ins and they were ineffective.

  4. sgstrategist
    Member
    Posted 6 months ago #

    I have made several successful child themes before so it's hard to know what is going wrong. The codex was the first place I looked.

  5. sgstrategist
    Member
    Posted 6 months ago #

    I have made several successful child themes before so it's hard to know what is going wrong. The codex was the first place I looked.

    The zip folder is expound1.8zip and the folder inside is expound.
    I have since updated to 1.9. Maybe that is part of the issue?

    I also think the multiple .css files are confusing me too

  6. Andrew
    Forum Moderator
    Posted 6 months ago #

    What's in your Child Theme style.css file?

    What message are you getting when you can't create your Child Theme?

  7. sgstrategist
    Member
    Posted 6 months ago #

    It says installed correctly but then when I preview/activate there is a only an ugly, basic version of the website. As if there is no CSS at all. The style.css file is actually outside the main CSS folder. It contains minimal code with an a line to import another CSS file. The expound.css is in the CSS folder and I think is the one I want to update.

    Because the child theme is installing but stripping away almost all the css I think I am failing to properly import the rest of the CSS. I've never worked with a theme so complicated that I had to do more than /themename/style.css (I don't have the exact import code in front of me).

    Thanks so much to everyone helping me try to get to the bottom of this. The custom css plug-in adapted the size of the secondary but was not able to adjust the primary. As a result my new coln sizes were too big when combined.

  8. batharoy
    Member
    Posted 6 months ago #

    Just installed Expound to try this out, heres an image of the theme directory.
    http://s23.postimg.org/an0rdhkhn/Untitled.png

    This is the code I used in the expound-child style.css

    /*
     Theme Name:   Expound Child
     Template:     expound
    */
    
    @import url("../expound/style.css");
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */

    All the default styles appear on my local server.

  9. sgstrategist
    Member
    Posted 6 months ago #

    Thank you so much for going to the effort to help me out with this. I'm not sure what I'm doing wrong, but when I upload a child theme with that code, it tells me the theme installed correctly but then all of the formatting is removed from the website, like a bad version of wikipedia.

    I then tracked down all the .css files inside and outside the css folder and included them:
    /*
    Theme Name: Expound Child
    Template: expound
    */

    @import url("../expound/style.css");
    @import url("../expound/rtl.css");
    @import url("../expound/css/expound.css");
    @import url("../expound/css/buddypress.css)";
    @import url("../expoud/css/editor-style.css");
    @import url("../expound/css/reset.css");
    /* =Theme customization starts here
    -------------------------------------------------------------- */

    This is what it looks like both with the code you supplied and the one I have listed above.

    I think I am going to install this on a subdomain and let it stew over night. I've had really weird issues fix themselves if I leave it alone for a little while.

    Thanks again for the assistance. I'll check back after work tomorrow!

  10. wiresplus
    Member
    Posted 6 months ago #

    I did the same, then found that if I took away the ../ at the start of the link, so it reads @import url('expound/style.css') with only single quotation marks, it works for me.

    Try that? and try ctrl-F5 to force the browser to go find the stylesheet again.

  11. Andrew
    Forum Moderator
    Posted 6 months ago #

    I did the same, then found that if I took away the ../ at the start of the link, so it reads @import url('expound/style.css') with only single quotation marks, it works for me.

    Isn't it supposed to be up one level (../), presuming you created your Child Theme in the "themes" directory at that level?

  12. wiresplus
    Member
    Posted 6 months ago #

    Well, you'd think so, but expound won't take it and it says "this theme is broken, you need to install expound first"

    So yes, normally you would want it up a level, but for an as yet unknown reason expound wants it without.
    The child CSS reads:

    /*
     Theme Name:   Expound Child
     Template:     expound
    */
    
    @import url('expound/style.css');
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */

    (it works for me on WP3.8)

  13. wiresplus
    Member
    Posted 6 months ago #

    And yes, I have made a child theme folder in wp-content/themes.

  14. Andrew
    Forum Moderator
    Posted 6 months ago #

    Let's see your site

  15. wiresplus
    Member
    Posted 6 months ago #

    Oh, I was only testing. sandbox.wiresplus.co.nz. It's empty as yet, but the theme is working.

  16. Andrew
    Forum Moderator
    Posted 6 months ago #

    What's the name of your Child Theme folder?

  17. Andrew
    Forum Moderator
    Posted 6 months ago #

    Sorry @sgstrategist, I didn't realise I was talking to a different person.

    @wiresplus, Please create your own thread here: http://wordpress.org/support/theme/expound#postform

  18. wiresplus
    Member
    Posted 6 months ago #

    No, I was only chipping in to help. I don't need a thread :)

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.