Support » Theme: Cakifo » Updating cakifo removed widgets from front page

  • Resolved mjacob14


    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    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.

    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

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Updating cakifo removed widgets from front page’ is closed to new replies.