Return to Support

How to modify the theme using a child theme

Home Forums Graphene WordPress theme Support How to modify the theme using a child theme

Viewing 15 posts - 31 through 45 (of 107 total)
  • Author
    Posts
  • #10859
    omnewscenter
    Member

    Hello,

    Thank you for this information it is very helpful so far.

    Let me start by stating I am no coder. I can follow direction (for the most part) but have no clue as to what to look for or change to accomplish my desired end.

    [img]HTTP://ONLINE-MARKETEERS.NET/IMAGES/OMNC.JPG[/img]

    I want to narrow the black side portions evenly and widen the gray part behind the columns.

    Then increase the post area as well as the marquee and comment area evenly.

    When doing this will I need to center the header graphic or anything for the header at all?

    I think this is all I need at this time.

    Thank you,

    Eric Hendrix

    #10860
    Bean
    Member

    Hi there. First, I’m a writer, not a designer or programmer. Just have to clarify that from the start. 😉 This is the first website I’ve designed and Graphene is the chosen theme to give my business site a clean look. I’d like each tab to be searchable. Therefore, I have given each one a certain name and a file in the directory. I copied a style sheet into each child’s folder on my server. Now what? Where exactly do I activate the folders or see them, so that I can modify according to the specs you gave above and get my menu tabs to work? Thank you for your help.

    #10861
    Syahir Hakim
    Keymaster

    You don’t need to create any folder or file to add links to the navigation menu. Just use the WordPress built-in Custom Menu function, accessible via Appearance > Menus in the admin panel. All pages and posts are searchable by the WordPress built-in search function, so it shouldn’t be a problem.

    TBH, I don’t really get what you’re trying to achieve so if you could clarify it a bit further that would help.

    #10862

    I am very confused with the whole childs theme thing. I created the files – styles.css / functions.php / header.php

    I added my adjustments and it didn’t work. After I activated it, it really messed things up.

    Right here where it says

    @import url(“../graphene/style.css”);

    I need to change each of those to…

    @import url(“../graphene/functions.php”);

    @import url(“../graphene/header.php”);

    Right??

    Also when I am removing something and adding something else in (like removing the RSS Image Icon and replacing it with a custom one). Do I need to remove the code from the original header.php file and then make my adjustments in the child’s theme or will the child’s theme override it automatically??

    #10863
    Syahir Hakim
    Keymaster

    Noo…you don’t need to add these codes:

    @import url("../graphene/functions.php");
    @import url("../graphene/header.php");

    When you’re using the child theme, WordPress will automatically check for the existence of other template files in the child theme folder (e.g. functions.php, header.php, etc.) and if those are present, WordPress will use those instead of the theme’s original.

    No need to remove the code from the original files.

    #10864
    johnalex13
    Member

    Syahir…thanks again for creating this.

    I am a n00b at all of this but I am attempting to apply the child to my wordpress to remove the RSS feed button.

    WordPress is giving me this error:

    Broken Themes

    The following themes are installed but incomplete. Themes must have a stylesheet and a template.

    Name Description

    Graphene Child The parent theme is missing. Please install the “graphene” parent theme.

    My CSS looks like this:

    /*

    Theme Name: Graphene Child

    Theme URI: http: //example.com/

    Description: Child theme for the Graphene theme

    Author: Your name here

    Author URI: http: //example.com/about/

    Template: graphene

    Version: 0.1.0

    */

    @import url(“../graphene/style.css”);

    /* #rss a {

    display:none;

    } */

    Are you familiar what is causing this issue?

    #10865
    Icestro
    Member

    I just received this particular error …. In my case I had used an extension on the style.css name something like Graphene Style.css ….. I had to change the name to just style.css ….. Hope that helps …. also you have the programming changes you are trying to make commented out ….. take away the /* and the */ before and after the #rss and }, respectively …..

    Hello Syahir …. thanks for an awesome theme …. will be donating soon (as I make some money) …..

    I made the changes to the folder and created my style file ….. however when I activated the theme I lose the parent theme and the other info that was on the template page under styles …… so it seems obvious what the problem is however I can’t figure what I did wrong ….. (if the child theme is supposed to have the exact information that the parent does on the template page that is)

    my site is StuckfromPoker.com/beta/ ….. I am trying to modify this test site using your theme so it looks like the site I have now at Stuckfrompoker.com ……

    that is change the whole theme to a black background …… I only one have one issue that I couldn’t fix in the style sheet using a css editor and that was the right sidebar and the two bars below the navigation bar remain grey

    Can U help with my issues ?

    Would be much appreciated ….. thanks

    #10866
    Icestro
    Member

    Hello Syahir,

    Don’t want you to waste your time …….. I have figured out why I could not get my style.css file to work …. If anyone is taking notes it’s because I had a space in the filename of the child theme (i.e. Graphene Child instead of GrapheneChild) …. turns out directory names don’t like spaces ……

    Still have issues with making the whole theme have a black background though ….. Particularly the bars right below the sidebar

    Thanks

    #10867
    Icestro
    Member

    Hello Syahir,

    I have been going thru your support forum (which is a tremendous help by the way) and I’ve found some of the other websites that use your theme ….. in particular the ones you’ve already noted such as

    http://www.hervecuisine.com

    http://blog.stillworx.com

    http://libertythinkers.com/

    http://vraagde2ekamer.nl/

    http://www.b2bmarketingteam.com/

    also kattsby.com

    which is a dark background similar to what I’m using currently but cannot

    completely get my Graphene theme to look like yet …..

    I am questioning how to manipulate the sidebar specifically

    so that it looks like some of the examples noted …..

    more of a rectangle off in the corner by itself ……

    also with the options to change to Comments and Tags

    and Articles (much like the Libertythinkers.com)

    I am a newbie to CSS editing obviously ……

    thanks ….. any help would be appreciated

    #10868
    Syahir Hakim
    Keymaster

    Please post your support request in a new thread for each support item.

    #10869
    Icestro
    Member

    Thanks Syahir,

    but you didn’t answer any of my questions ….. I’m trying to change the side bar to a rectangle without the grey bars that come across the page …. also change the navigation bar to one that looks like what I’m using on my site at StuckfromPoker.com ….. and manupilate the background so it is completely black …. In addition I want to add a line of grey padding around the page so the black background is separated from the post or entry ……

    As I stated before I’m trying to manipulate the CSS so my site uses your theme but looks like the one I have currently at Stuckfrompoker.com

    Thanks

    #10870
    Icestro
    Member

    I was able to do this in part at Stuckfrompoker.com/beta …… but some of the items I am having trouble with …. as I stated before I am learning CSS ….

    #10871
    Icestro
    Member

    In addition I added this code

    <?php

    function graphene_custom_header_width(){

    return 1024;

    }

    add_filter(‘graphene_header_image_width’, ‘graphene_custom_header_width’);

    ?>

    in the functions.php file under the Theme functions (functions.php) ……. however my size of the header width stayed the same ….

    is this the right place for the code ?

    Thanks again

    #10872
    Lynn
    Member

    Okay, please don’t laugh. I also am a newbie to all of this. What I don’t see questioned is WHEN do you need a child’s theme? I am pretty much using graphene right out of the box (it’s that good). I’ve changed the header, added some slideshows and css within the pages, but have not had to go into the css sheets at all. And I don’t plan on changing anything either. Am I okay NOT using a child theme?

    The site is at http://74.220.219.124/~pyktulum/

    BUT will be going live at: http://www.pyktulum.com in the next day or two.

    If you suggest that I do use a child theme, how do I do it now that I already have my site built? 20/20 hindsight, you know.

    #10873
    Syahir Hakim
    Keymaster

    Hi Lynn,

    A child theme is used to make modifications to the theme that would otherwise can’t be achieved via the WordPress admin alone. This usually includes modifications that change or add new codes to the theme’s files, for example, if you want to add more social sharing sites buttons on the top bar. Sure you can edit the theme’s files directly, but that will cause you to lose the modification when you update the theme.

    Using a child theme to make modifications like those allows you to retain your modifications even when you update the theme. The end objective is that it allows you to modify the theme to however you like it, without ever touching the original theme’s files, ever.

    But as you said, if you don’t plan on changing anything, then you’re absolutely fine without a child theme.

Viewing 15 posts - 31 through 45 (of 107 total)

You must be logged in to reply to this topic.