Re: Quick Guide: Child Theme

Yes. Just make a new tapestry and add it.

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: Quick Guide: Child Theme

I am trying to add a child theme but when I do just like you described it turns my blog into a single column layout it appears.  The content column strectches as wide as the screen and the sidebar is pushed under everything. I'm still using version 1.3.5 and I want to set up my child theme before I upgrade.

Thumbs up

Re: Quick Guide: Child Theme

I don't think 1.3.5 supports Child Themes.

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: Quick Guide: Child Theme

extatix wrote:

I don't think 1.3.5 supports Child Themes.

Crap.  Thanks for the quick reply.

Thumbs up

Re: Quick Guide: Child Theme

I have created a child theme for 1.4.3.1 . Now I have updated the theme to 1.5b1 I want to activate my child theme "on top of that" again. Unfortunately my theme goes back to version 1.4.3.1 .

Is this normal behaviour? And if yes, what's the benefit for having child themes then?

Thumbs up

Re: Quick Guide: Child Theme

In which folder is 1.5b1 installed? And what did you specify as the template? The template refers to the folder the parent theme is installed in. 1.5b1 is probably in a folder not called arras-theme.

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: Quick Guide: Child Theme

extatix wrote:

In which folder is 1.5b1 installed? And what did you specify as the template? The template refers to the folder the parent theme is installed in. 1.5b1 is probably in a folder not called arras-theme.

That makes sense. :-) Sorry for stupid question...  roll

Thumbs up

Re: Quick Guide: Child Theme

Nice post the info is so clear. I copy functions.php and filters.php file into the child theme directory. But if  i
want to change some code in the functions.php or filters.php the theme doesn't change only if I change the original one. Any file in any folder of the theme could be copied into the child theme root? And it will work as the original?

Thumbs up

Re: Quick Guide: Child Theme

No. It doesn't work that way.

http://codex.wordpress.org/Child_Themes

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: Quick Guide: Child Theme

does it work with 1.4.2?

i tried it but it ignored all stylesheets!

Photos from Greece at www.travelphoto.gr

Re: Quick Guide: Child Theme

Not sure. In 1.4.3 it started working like a charm at least.

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: Quick Guide: Child Theme

Child themes are great in concept and easy to use at least from a CSS point of view. I have to upgrade to 1.4.3 in order to implement.

Unfortunately even if i copy/paste css code i have in default.css and user.css files to the new same files that come with 1.4.3 version, the look of my site becomes very unpredictable.

Moreover i lose featured posts. It shows only 2 if i choose to bring posts from alla categories. And no New Posts at all (Latest Headlines)
If i tell to bring from a specific category it works fine though... but this is not the point since i want posts from all categories there.

FOUND Something:

you have to find this link http://www.arrastheme.com/forums/post7857.html#p7857 in order to download an old version, i guess, of home php and make it work again...

Last edited by giannis (2010-07-18 14:35:41)

Photos from Greece at www.travelphoto.gr

Re: Quick Guide: Child Theme

You have to find that link? I just pointed you at that thread in another topic smile

And yes, you basically have to start over when you make a Child Theme.

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: Quick Guide: Child Theme

extatix wrote:

No. It doesn't work that way.

http://codex.wordpress.org/Child_Themes

How can i use filters.php tapestries.php and other file in a child theme?

I figure out that comments.php and header.php works fine because this files are placing in the root of the theme. But the other are in the library folder.

I create the library folder in the childe theme folder and copy the filters.php

childtheme/library/filters.php

but i doesn't work when i edit it

Thumbs up

Re: Quick Guide: Child Theme

No. And it wouldn't work either way because you'd probably have double functions in filters.php. Read the part about filters again if you want to use filters.

But you activate other php's this way.
You'd need to add this functions.php

define( 'MY_DIR', STYLESHEETPATH );
define( 'MY_LIB', ANIMEBLOG_DIR . '/library' );

and

require_once MY_LIB . '/filters.php';

Last edited by extatix (2010-07-19 00:00:29)

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: Quick Guide: Child Theme

extatix wrote:

No. And it wouldn't work either way because you'd probably have double functions in filters.php. Read the part about filters again if you want to use filters.

But you activate other php's this way.
You'd need to add this functions.php

define( 'MY_DIR', STYLESHEETPATH );
define( 'MY_LIB', ANIMEBLOG_DIR . '/library' );

and

require_once MY_LIB . '/filters.php';

This code is already added to my parent functions.php file or i have to put it on the functions.php of the child theme dir?

Thumbs up

Re: Quick Guide: Child Theme

Yes, to the child theme.

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: Quick Guide: Child Theme

I add this


<?php

// Define PHP file constants
define( 'MY_DIR', TEMPLATEPATH );
define( 'MY_LIB', ARRAS_DIR . '/library' );

but when i put the next line i get a error message

require_once MY_LIB . '/filters.php';

<---- Line 7

Error

Warning: require_once(ARRAS_DIR/library/filters.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\wordpress\wp-content\themes\child-theme-gameover\functions.php on line 7

Fatal error: require_once() [function.require]: Failed opening required 'ARRAS_DIR/library/filters.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\wordpress\wp-content\themes\child-theme-gameover\functions.php on line 7

Whant i am doing wrong? Thanks for the help

Thumbs up

Re: Quick Guide: Child Theme

Ow, crap, I made a mistake in my code above.
It should read

define( 'MY_DIR', STYLESHEETPATH );
define( 'MY_LIB', MY_DIR . '/library' );
My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: Quick Guide: Child Theme

extatix wrote:

Ow, crap, I made a mistake in my code above.
It should read

define( 'MY_DIR', STYLESHEETPATH );
define( 'MY_LIB', MY_DIR . '/library' );

It's done, works nice but the change i made doesn't show on my site. I will keep trying and reade the first page of post

Thumbs up

Re: Quick Guide: Child Theme

Thanks for the guide, xtatix... i have one question:

when you say: "Let's say you've put about 50 lines of css in the style.css and Arras Theme 1.4.4 is released. Simply update it and your changes are still there. No more worries about redoing css stuff."

What is the diference between that and editing user.css file?

I make that question because i edited user.css and i wrote  654 lines and I made a backup in my pc of the file.

If i update arras theme i only have to copy my user.css backup and thats it, right?

I think i'm missing something

Thumbs up

Re: Quick Guide: Child Theme

It's a combination of things, css is one part, php is the second part.

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: Quick Guide: Child Theme

this still working with Arras Theme 1.5b2 ?

cuz i did it and doesnt work...

Thumbs up

Re: Quick Guide: Child Theme

prolly cuz arras 1.5b2 is in a folder named arras-theme-beta or something.

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: Quick Guide: Child Theme

extatix wrote:

prolly cuz arras 1.5b2 is in a folder named arras-theme-beta or something.

nop, I rename my theme to "arras-theme" without -beta bla bla...then its "Mydomain/wp-content/themes/arras-theme"

and my style its

/*
Theme Name: PCAyudas-v1
Theme URI: http://www.pcayudas.com/
Description: Child theme for the Arras Theme for WordPress
Author: OscarS
Author URI: http://www.pcayudas.com/
Template: arras-theme
Version: 1.0
.
For more information on how to create and use child themes:
http://codex.wordpress.org/Child_Themes

Any CSS code written below will override any existing
declarations from the theme itself.
.
*/

and doesnt work... I cant see my child theme in themes option at wordpress admin panel...

Thumbs up