• Resolved vardaaberbach

    (@vardaaberbach)


    I’m using WP to create a site (not a blog).
    At “pages” I used for Home the attribute “default template” with three columns.
    At “static front page” I’m using “Static Page” with Home as “front page”.
    The result is not what I wanted:
    I get the home page on all the page whereas I wanted to have it in three columns.
    How can I do that?
    Also, I’d like to change the Pages color (not the site background). How can I do that?

    Thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello,

    I’m not sure I understand what you’re saying. Is this correct:

    • You have a page called “Home” and you’re using the default template
    • Under “Layout” you have it set to “Three Columns, Right/left/center”
    • You say the result is not what you wanted. What is the result and how is it different from what you wanted? Do you have a link to your page?

    If you excepted a result like the demo you should set the page template to “Front Page”.

    If you want to change the styling you should use a child theme.

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

    – Jesper

    Thread Starter vardaaberbach

    (@vardaaberbach)

    Hi Jesper,

    Thank you for your reply and for the lovely and flexible theme!

    I got the home page with only one column.
    When I set it to “Front Page” – It doesn’t display the content of the Home page (text and YouTube link).

    Varda

    Oh, right. I know what you mean. That’s a bug in the theme that will get fixed in Cakifo 1.6

    I recommend you put this in your child theme functions.php:

    <?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', 'my_cakifo_child_layout_home' );
    }
    
    function my_cakifo_child_layout_home() {
    	return 'layout-3c-l'; // 3c-l, 3c-r or 3c-c
    }
    
    ?>

    Thread Starter vardaaberbach

    (@vardaaberbach)

    OK, I’ll look into the “child” creating and get the above code.
    I’ll let u know if OK ??

    Thank you so much!!

    Thread Starter vardaaberbach

    (@vardaaberbach)

    Seems OK. Just to make I got it right:
    You mean that the ‘Child’ files: Style.css and functions.php will only contain the code that you’d sent to me? Right?

    Yes. Exactly. Glad it worked ??

    Thread Starter vardaaberbach

    (@vardaaberbach)

    Thank you!

    May I ask how to change the page color ? (not the background)
    And
    Is it possible to take off the path (for example): “You are here: Home / Support” ?

    Thanks again!

    Varda

    Please use the support forum on Theme Hybrid where Cakifo has it’s own support forum or look in the Wiki https://github.com/jayj/Cakifo/wiki – The breadcrumb thing is mentioned under “Theme Extensions”.

    – Jesper

    Hi, im trying to do the same thing, but i cant get it to work.. the css like

    /**
     * Theme Name: Cakifo child
     * Theme URI: https://link-to-your-site.com
     * Description: Describe what your theme should be like.
     * Version: 1.0
     * Author: Your Name
     * Author URI: https://link-to-your-site.com
     * Tags: Add, Whatever, Tags, You, Want
     * Template: cakifo
     */
    @import url( '../cakifo/style.min.css' );

    and the function file like:

    <?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', 'my_cakifo_child_layout_home' );
    }
    
    function my_cakifo_child_layout_home() {
    	return 'layout-3c-l'; // 3c-l, 3c-r or 3c-c
    }
    
    ?>

    can someone please help me?

    The code should work. Are you sure the child theme is activated?

    I’m sorry but I can’t help more. I offer limited free support for the theme – please sign-up on Theme Hybrid for more support.

    *edit* my bad.. think this works after all.. thanks

    You should not edit functions.php in the cakifo folder. You should edit functions.php in the cakifo-child folder.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How do I split the home page to three columns and change its color?’ is closed to new replies.