Archived topic
How to install a child theme?
11 replies · Started by Anonymous on June 2, 2016
Hi,
to make sure i do not mess with core files in the future, I prefer to use a child theme.
How do i do that?
Hi there,
Save this as a .zip file: http://generatepress.com/api/themes/generatepress_child.zip
Then go to "Appearance > Themes > Add New > Upload" and upload it.
Once you activate it, you're using a child theme :)
Thank you so much Tom!
You're welcome :)
Hi Tom,
It has an error when customizing the child theme. Can you help me?
customize.php:3446 Uncaught SyntaxError: Unexpected token:
Warning: array_intersect(): Argument #1 is not an array in /var/www/html/wp-includes/class-wp-customize-widgets.php
wordpress multisite
Did you install the child theme I linked to above?: https://generatepress.com/forums/topic/how-to-install-a-child-theme/#post-198913
There's no array_intersect() function in that child theme.
Let me know :)
@$widget_ids = array_values( array_intersect( $widget_ids, array_keys( $wp_registered_widgets ) ) );
@@@ hide warnings. Its ok now.
thans
I wish you would include the GeneratePress Child theme in your GeneratePress downloads section.
It would make it easier to customize websites without having to worry about updates to GeneratePress breaking things.
Thanks for your work.
Romeo - you can find the blank child theme here: http://generatepress.com/api/themes/generatepress_child.zip
Leandro - that code isn't in GP, so it might be a plugin causing the error.
hello there,
I have installed gp premium with a child theme on my new another site today.
not showing Header Padding, Mobile Header, Navigation Logo etc.
**
Thanks for opening a new topic.
We will stick to that one :)
