Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • s b

    (@deliciouslyfictitious)

    I created a sidebar in the same theme (Buttercream). Took me aaages as I’m a coding newb and from look of other posts here I didn’t do it in the best way but happy to share what I did if it helps.

    I created a functions.php file in child, ran a ‘remove’ function to deactivate the whole buttercream_widgets_init() parent function (which registers the footer sidebar/widgets), then replaced that function with my own.

    This was basically a cut/paste of buttercream_widgets_init() except you have to give it a different name or it causes issues (eg buttercream_child_widgets_init() or whatever). In that function I just added a fourth register_sidebar, copying the code from the others and calling this one right-sidebar.

    Then I copied each file I wanted right-sidebar in into my child theme, keeping same name as parent(eg, single.php, page.php etc) and added a call(? sorry if my terminology’s all wrong!) to the new right-sidebar into each one, by adding the below code under get_header, after #primary .site-content section:

    <div id="sidebar-right" class="widget-area" role="complementary">
    	<?php do_action( 'before_sidebar' ); ?>
    	<?php if ( ! dynamic_sidebar( __( 'Right Sidebar' , 'buttercream' ) ) ) : ?>
    	<?php endif; // end sidebar widget area ?>
    </div>

    (Reading above posts, sounds like footer.php would have been a better place for this – I should prob look into that! My way works but means I’ve replaced a fair few parent files, meaning I’ll miss out on parent theme updates affecting those files).

    Finally I styled the CSS in my child style file. I used firebug to peek at the way other sites did this, as I was new to css too. I’ve also become a fan of http://www.w3schools.com, for html and css basics.

    I did all this a while ago so hopefully I’ve remembered it correctly. It’s working for me, though when I upgraded to latest version of buttercream my mods disappeared so I had to revert to old version. I’ll chase this up in a separate thread but it’s something to bear in mind when reading my post I guess!

    HTH!

    s b

    (@deliciouslyfictitious)

    Totally understand Caroline! Sorry, I didn’t mean to ask an unfair question and you’re quite right. It’s not fair to give away to me what others have paid for.

    Thanks for the tip about enqueue functions. I had seen this code but wasn’t 100% sure that’s how the stylesheets were being called. Knowing this, I did a couple of days of trial and error and I think I’ve managed to get my child theme up and running ‘safely’ now.

    (For any wondering, I’ve described what I did in this thread here, which deals with a general qu to WP gurus on elegant coding solutions).

    As an aside, I noticed using IETester that my site (and other buttercream sites from what I could see) had an error in IE 7 where whole page was being obscured by an overly large navbar. I (think) I fixed this by adding the following to the .navbar code in the child style.css:

    bottom: auto !important;

    Thought I’d mention in case anyone else was having this issue.

    s b

    (@deliciouslyfictitious)

    Hi Caroline

    I’ve been experimenting with my beautiful Buttercream theme to mimic http://www.epicuriously.com.au customisation, as this was what I was after too. I am a TOTAL novice (never coded before in my life) but have managed to get it working I think – subject to a couple of quick questions. (Sorry explanations make this a bit of a long message but qu’s are quite short).

    My site is http://www.deliciouslyfictitious.com

    Using Firebug I extracted what I THINK were epicuriously’s custom child theme style sheets (style.css, media.css and cupcake.css). I created my own child theme buttercream-df and saved these child style sheets in there. I also created a child functions.php and a few other files to get right-sidebar working etc.

    My qu’s are:

    1) When I did all this my navbar (custom menu) came up at the top of the page instead of the default bottom which I wanted. Great. But it was not going all the way across the screen. Instead, (regardless of screen size), it was lining up with where posts started on the page. I fixed this by adding a new “left” property to .navbar in my child style.css so it now reads:

    .navbar {
        border-bottom: 2px solid #422619;
        border-top: 0 none;
    left: 0;
    }

    This “left” property wasn’t in the epicuriously code (that I could see) so my qu is have I done this fix correctly or should I do something else to solve problem of navbar not going all the way across?

    2) What’s the best way for me to call on child style sheets other than the child style.css in my child theme? To get my child theme to recognise the child media.css and cupcake.css files I’ve currently used @import for the child media.css file, so the top of my child style.css reads:

    @import url("../buttercream/style.css");
    
    /*Importing media.css child edits --------------------
    */
    @import url("../buttercream-df/layouts/media.css");

    This seems to have worked (I think!?) but @import did nothing when I tried it for the child cupcake.css. I have had to cut and paste that cupcake code into my child style.css directly instead.

    If there is a better way (<link rel="stylesheet"...> perhaps??) where do I put this code? I couldn’t see any of these links anywhere in the parent buttercream theme php files (except the conditional ie.css stuff) so wasn’t sure if this was the way to go.

    Any help greatly appreciated and really can’t thank you enough for this theme. I’ve been looking for one as nice as this a long time!

    s b

    (@deliciouslyfictitious)

    Also how big is original header img and what size do i have to make my custom one to be the same – i thought id made it the same but the ribbon is not quite long enough now i’ve replaced it.

    s b

    (@deliciouslyfictitious)

    Hi Caroline, I’ve used your suggested hack above to upload my own custom header image and want to update it for the responsive version too as you suggest. How do i do this? Couldn’t see any folder in FTP client for responsive version image – maybe I’m lookinh in wrong place, or am I supposed to type something into the ‘custom CSS’ field in Theme Options? Thanks!

    s b

    (@deliciouslyfictitious)

    Hi just to follow up on my post above, I got this issue resolved by contacting my host http://www.crazydomains.com.au. They said they had to enable mod_rewrite access so it seems the problem came from their settings. They also said:

    ” On your server we had disabled SQlite extensions.

    So I created php.ini file in ‘wp-admin’ folder to enable pdo_sqlite.so.

    Using :

    Extension=pdo_sqlite.so”

    This means nothing to me but I am posting it in case someone else has the same issue and it means something to them!

    Cheers

    Thread Starter s b

    (@deliciouslyfictitious)

    Hurrah! It’s fixed!

    As suspected it had something to do with the settings my host http://www.crazydomains.com.au had in place. Apparently they had to allow mod_rewrite access. They told me:

    On your server we had disabled SQlite extensions.

    So I created php.ini file in ‘wp-admin’ folder to enable pdo_sqlite.so.

    That means nothing to me, but I’m posting it in case it means something to someone else down the track…

    s b

    (@deliciouslyfictitious)

    Hi there I’m having the same problem I think see my post http://wordpress.org/support/topic/no-permalinks-options-appearing?replies=5#post-1647399

    I am using Crazy Domains to host as well. Did you manage to solve the problem budinsky??

    I have NO idea about this stuff but in FileZilla (my FTP client) I have tracked down the .htaccess file (already in existence but entirely blank inside). I pasted the code suggested by bh_WP_fan and changed my permissions to RW for Owner, Group and Public (666). I saved the file, uploaded and closed FileZilla, then refreshed the Settings>Permalinks page. Still nothing appearing at all.

    I’ve located an options-permalink.php file in wp-admin which I suspect may be involved but I wouldn’t have a clue what to do and don’t want to muck anything up!

    If you got this sorted I’d LOVE to know! Am going crazy!

    Thread Starter s b

    (@deliciouslyfictitious)

    Ok deactivated that one too – still no love. I noticed the Settings>Permalinks page is loading with the ‘Done with errors’ symbol at the bottom. When I click on it I get the following error message:

    ***
    Message: ‘null’ is null or not an object
    Line: 60
    Char: 1
    Code: 0
    URI: http://deliciouslyfictitious.com/wp-admin/options-permalink.php
    ***

    Does this mean anything to anyone??

    Thread Starter s b

    (@deliciouslyfictitious)

    I had a few activated but I’ve deactivated them all now except Askismet and Typekit. Still no Permalinks options showing in Settings.
    (I didn’t know whether deactivating those would mess them up in some way or not. Also I don’t think it is them as I am fairly sure the problem was happening before I added them.)

    I’ve been reading a lot about .htaccess and mod_rewrite – are these things I need to change settings for/do something with? I don’t actually know what they are or where to start! The Codex was a bit too technical and I wound up thoroughly confused…

Viewing 10 replies - 1 through 10 (of 10 total)