[resolved] Updating cakifo removed widgets from front page (5 posts)

  1. mjacob14
    Posted 2 years ago #

    I'm running a child theme based on Cakifo, but when I recently updated everything in my updates panel (including the Cakifo parent theme), it caused my widgets on the front page of my site to disappear. They're still visible when you drill down into the site structure, but as for the front page, they're gone.


    Any thoughts?

  2. Jesper Johansen (jayjdk)
    Theme Author

    Posted 2 years ago #

    You should not include the parent theme CSS in your child theme. You should import it instead by using:

    @import url( '../cakifo/style.css' );

    and then only overwrite the necessary things.

  3. mjacob14
    Posted 2 years ago #

    Is there another way of correcting the override short of gutting the entire CSS? A change to one of the .php files? Basically I just want the widgets to appear on the front page in addition to where they're already visible.

  4. Jesper Johansen (jayjdk)
    Theme Author

    Posted 2 years ago #

    I see what you mean now. It appears to be a bug in the theme. I'll make sure to fix it in the next version.

    You can fix it in your child theme functions.php

    add_action( 'after_setup_theme', 'my_child_setup', 11 );
    function my_child_setup() {
    	/* Get the parent theme prefix. */
    	$prefix = hybrid_get_prefix();
    	/* Set the layout for the front page. */
    	add_action( 'template_redirect', 'my_cakifo_child_frontpage_layout' );
    	/* Other Actions and filters calls go here. */
    function my_cakifo_child_frontpage_layout() {
    	if ( is_front_page() && ! is_home() )
    		add_filter( 'get_theme_layout', 'cakifo_theme_layout_two_columns_left' );
    function cakifo_theme_layout_two_columns_left() {
    	return 'layout-2c-l';

    Hope that helps you. If not, feel free to write again. If you have any questions beside this one, I recommend you sign-up for support on Theme Hybrid.

    - Jesper

  5. mjacob14
    Posted 2 years ago #

    I really appreciate it. Sorry to be a pain--another developer set this up for us and completely buggered the job when creating the child theme, and now I'm on damage control. Thanks for the help.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic