bosoxbrent

Member

Forum Replies Created

  • Thanks Syahir…I think I was just getting in a little over my head with trying to spin up on the child themes and how they work. I need to learn a little more about WordPress and PHP coding before I should head down that road.

    I’ve gone ahead and done what schmidtysays did with her site. This worked out great and I was able to restore the code. I should have thought of doing this in the beginning, but then again I’m still learning.

    Thanks for the help and for creating the best theme out there!!!

    -Brent

    Hi Syahir,

    I tried putting the code in the theme’s function.php (that is where I had it before the update), but when I did the update it wrote over it. That’s fine. So I read up on the topic and realize that I need to create a child theme functions.php file so this won’t happen again. So I just did that, along with having a style.css file since I read that you have to have a style.css file in any child. No problem.

    Now I’m trying to use the code that Andrewjs18 wrote a few months back. I had this code in the theme’s functions.php before and it seemed to work just fine. If I remember right, I placed it near some coded that had to do with the RSS feed and it put some buttons on the top of the page for me.

    This is the code that I used after inputting my own settings.

    <?php
    function graphene_social_icons(){ ?>
    <a href="http://www.facebook.com/group.php?gid=246817092236" title="Visit the CSI Homebrew Club on Facebook"><img src="http://csibrewers.org/content/wp-content/uploads/2010/12/facebook.png"></a>
    <a href="http://www.twitter.com/csibrewers" title="Visit the CSI Homebrew Club on Twitter"><img src="http://csibrewers.org/content/wp-content/uploads/2011/02/twitter.png"></a>
    <a href="https://spreadsheets.google.com/viewform?formkey=dDVMdXhSaDc4MnNkYzQ4ZTRNa2lyNmc6MQ" title="Join the CSI e-mail list"><img src="http://csibrewers.org/content/wp-content/uploads/2011/02/email.png"></a>
    <?php
    }
    add_action('graphene_feed_icon','graphene_social_icons');
    ?>

    So the question is “is this coded still applicable with the new version of Graphene and if so, where should I put it?

    Right now in my “graphene-child” folder I have a style.css file that I have done some minor look and feel changes to the code. That seems to be ok. Also in that folder I have a copy of theme’s functions.php that I have copied over from the “graphene” folder. This is untouched.

    Any help you could profile would be awesome!!!

    Thanks so much,

    Brent

    Sorry to beat a dead horse here, but I just upgraded my site with the latest version of Graphine (which I really like), but the Facebook, Twitter, and E-mail links that I had put on the top of the page (next to the RSS) have disappeared.

    Any idea how I can put them back? The old method of putting them in the function.php (as outlined here) doesn’t seem to work anymore. Either that or I went stupid, which is quite possible considering I have very little knowledge of PHP.

    Any help you might have would be greatly appreciated.

    Thanks,

    Brent

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