Helping you Build Your Own Social Network!

Faster, better and easier!

Help with Cosmic Buddy Child theme

(11 posts) (2 voices)
  • Started 2 years ago by Symm2112
  • Latest reply from Symm2112

Tags:

No tags yet.


  1. I'm obviously very new to this but I'm trying to create a child theme for cosmic buddy to edit files and templates in and haven't been very successful. I didn't think it was much more to begin with other than adding the Template:cosmicbuddy line to the beginning of the style.css but I guess not.

    I tried importing the style.css and the other 3 files, components, adminbar, and screen but when I try to activate it, I get a missing logo and header banner because I see that it's pulling from the child theme/images instead of the parent. I'm concerned because that means it's trying to pull more from there than I expected. Any tips or ideas anyone?

    Posted 2 years ago #
  2. hi Chris
    I see this problem.
    This is not really a problem but a little short sightedness. I assumed, that user will change logo through admin panel, not through the images.

    So, If you have not changed your logos through admin panel, this issue will appear.
    But I assure you , It is only for the top logo, bottom logo and main logo and you can get rid of it easily.

    Please open the functions.php of cosmicbuddy.
    Now at line 124 and below, you will see three occurences of
    get_stylesheet_directory_uri()
    replace it with
    get_bloginfo('template_directory')
    That's it, rest all should work fine.

    Please let me know if you need further help.

    Thanks
    Brajesh

    Posted 2 years ago #
  3. Thanks for the help. I plan on changing the logos through the admin area just trying to get all of my functionality working before skinning. I wanted to see if I could successfully create a child theme to play around with instead of the actual templates. If I change these in back end, do I still modify the functions.php? Is that the only thing I did wrong to create the child?

    Sorry for the basic questions just new to this feature.

    Posted 2 years ago #
  4. hey you are most welcome to ask questions here.
    Please feel free to ask questions.
    I appreciate you are learning the things on your own and hope that will help you in long run :)
    If you change logo through admin panel, then functions.php needs not to be changed.

    Thanks
    Brajesh

    Posted 2 years ago #
  5. Thanks for the help in creating the child theme. I "think" I have it created properly but am having a few issues. Can you tell me if these sound normal for a child theme?

    1. With the regular theme ot the child, I'm using bp-groupblog and when I click on the group, it messes u the navigation by appending your next page rather than replacing. For instance, if you go to domain.com/groups/blah/blog then click profile, it just adds that to the current URL making it like domain.com/groups/blah/blog/profile, go ti another link and it just keeps adding it. I've sent a message to mariusooms but no answer yet. Any thoughts?

    2. Now that I have the child theme active with all templates in the main theme, I have bp links active which needs to have a folder added to the current theme. With a child theme do you still add them to the child or is there something I needed to do to make it pull what it needed from the parent?

    3. I know that if I modify a template with a child, I just make a copy in my child and it will override the parent. What do I do for the css? Do you import the urls an then put your modified css in the style.css in there or do you just copy the css from screen, component, and adminbar into it and don't import the URL and edit it inside or what? I understand how it overrides the templates but just don't understand the css.

    4. Since I'm doing an "all buddydev" site ;) I'm trying to use my cosmic buddy blog theme and the gallery once out. Is it difficult to combine the adminbar and the nav bar into one global nav bar?

    Thanks again.

    Posted 2 years ago #
  6. hi Chris
    sorry for a little bit late reply.
    here we go
    1. This is an unexpected behavior. I don't think It is theme dependent,still I will install group blog with cb to test this.Please let me know what Mariusooms, I am sure he will be able to point to the issue correctly(Otherwise I am always there to investigate it :) )

    2. Are you using MrMaz's plugin(That is one of the awesome plugin for BP :)). I will advise you to copy the templates to either the parent/child, both will work. If you are working on multiple child themes, then put it in the parent theme.

    3. Mostly child theme is known for giving you the functionality to edit css(well way back, when child theme was introduced only css files and functions.php file was allowed). Now with time, wordpress child theme has grown, and you may see now you can override anything, be it the template file or the css.

    When you only want to use the main themes layout and use your own customization, better do not import the css files, just copy paste the css/images. But if you want to reuse some parent themes css, import those specific files from parent.
    Specifically for cosmic buddy, I will advise you to copy the css in the child theme and start editing,as the css was not done to separate layout/design. So the other way will be easy.

    and thanks for being all "buddydev", I am glad :) , I will be always here to assist you, just drop a line here.

    It is not difficult to combine the top navigation with the admin bar, just point me to a screen shot, how you want it to look like, I will put a file here for you :)

    P.S. If you are posting in PST, I will get back to you instantly but I may not be available to assist you instantly in other timezone(though I try my best to be here all the time :) )

    Posted 2 years ago #
  7. Thanks for the replies. I had to copy the links folder and groupblog into the child theme for it to work. Otherwise, it broke the design on the front page by not creating the thumbnails properly . I don't mind copying the subfolder that it says to put into the theme folder I just want to make sure i'm doing it properly.

    for the css, do does that mean that if I just have a blank template I only really need to just have the line that says template: cosmicbuddy and then start moving images/css/templates in there as I'm going to edit them? For instance, if I want to modify the admin bar, do I just copy ONLY the parts that I need to edit into the style.css of the child them or do I copy the ENTIRE contents of adminbar.css into style.css?

    Most of all, I'm just trying to actually LEARN how to do these things so that I can better understand. we were doing fine on standard wp but when we wanted to give our members more of a community, we found bp and now my head has been going crazy with idea and the different options that bp/wpmu offers.

    So you know, we're essentially converting cosmic buddy into a magazine theme since something like that is where we've been coming from. We used to use "the morning after" wp theme and gallery2 on the site but now that we're converting, we're having to do everything from scratch. I think cosmic buddy is one of the most adaptable themes that i've seen and I'm glad to pay the subscription to help you continue to develop things like this and the gallery.

    Thanks again.

    Posted 2 years ago #
  8. This is basically my child theme's style.css.

    I'm sure I'm going to look stupid for posting this but let me know if this is how I'm supposed to start.

    Template:cosmicbuddy
    */

    @import url(../cosmicbuddy/style.css);

    /* Font styles */
    @import url( ../cosmicbuddy/_inc/css/fonts/12px.css );

    /* Default theme admin bar styles */
    @import url( ../cosmicbuddy/_inc/css/adminbar.css );

    /* Default theme component styles */
    @import url( ../cosmicbuddy/_inc/css/components.css );

    /* Default theme styles */
    @import url(../cosmicbuddy/ _inc/css/screen.css );

    /* Uncomment the following line and add your custom styles to '_inc/css/custom.css' */
    /* @import url(../cosmicbuddy/ _inc/css/custom.css ); */

    Posted 2 years ago #
  9. you are most welcome :)
    Yes, you can copy specific folders to child theme, It is not a problem at all.
    About blank template, yes you are right.
    In that case, in style.css put that line and import the local styles(from the same theme as you will have the css/images file there in child theme).

    Now for css files, if you are doing a complete renovation, I will advise you to copy adminbar.css etc in the child theme and edit it to match(In case of cosmic buddy it is theme specific may have colors included, that's why I am saying this). If you can do css in depth, then you can ignore copying all, just specific portion and override the parent css using specific targeted selectors. Do not copy the content directly to style.css instead copy the files and use import statement to include it in style.css, It will keep the files separate and easy for maintenance and change later.

    It is nice to know you are learning the things, I am sure It will help in long run .
    I will love to see the adaption as soon as it comes live :)
    yes, bp+wpmu has great possibilities and you can extend it to as far as you want. So will be most flexible at the moment.

    Thanks again for supporting, I hope I will keep coming with more plugins and themes to community.
    Thanks
    Brajesh

    Posted 2 years ago #
  10. sorry, missed the previous post.
    You do not need to import the style.css of cosmicbuddy
    and for all others just copy _inc/css and _inc/images to your current child themes as yourchildtheme/_inc/css and yourchildtheme/_inc/images

    After that, in the main style.css of your child theme, replace ../cosmicbuddy/_inc/ with _inc/ and you are ready to work with the local version of css/images.

    You can make any change in the local copy then and It will not affect the parent at all.

    Hope it helps.
    thanks
    Brajesh

    Posted 2 years ago #
  11. PERFECT. That's exactly what I was trying to figure out.

    THANK YOU.

    Posted 2 years ago #

Reply

You must log in to post.