WordPress.org

Ready to get started?Download WordPress

Forums

Cakifo
[resolved] How do I split the home page to three columns and change its color? (13 posts)

  1. vardaaberbach
    Member
    Posted 1 year ago #

    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!

  2. Jesper Johansen (jayjdk)
    Member
    Theme Author

    Posted 1 year ago #

    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

  3. vardaaberbach
    Member
    Posted 1 year ago #

    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

  4. Jesper Johansen (jayjdk)
    Member
    Theme Author

    Posted 1 year ago #

    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
    }
    
    ?>
  5. vardaaberbach
    Member
    Posted 1 year ago #

    OK, I'll look into the "child" creating and get the above code.
    I'll let u know if OK :-)

    Thank you so much!!

  6. vardaaberbach
    Member
    Posted 1 year ago #

    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?

  7. Jesper Johansen (jayjdk)
    Member
    Theme Author

    Posted 1 year ago #

    Yes. Exactly. Glad it worked :)

  8. vardaaberbach
    Member
    Posted 1 year ago #

    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

  9. Jesper Johansen (jayjdk)
    Member
    Theme Author

    Posted 1 year ago #

    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

  10. Qonos
    Member
    Posted 1 year ago #

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

    /**
     * Theme Name: Cakifo child
     * Theme URI: http://link-to-your-site.com
     * Description: Describe what your theme should be like.
     * Version: 1.0
     * Author: Your Name
     * Author URI: http://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?

  11. Jesper Johansen (jayjdk)
    Member
    Theme Author

    Posted 1 year ago #

    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.

  12. Qonos
    Member
    Posted 1 year ago #

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

  13. Jesper Johansen (jayjdk)
    Member
    Theme Author

    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic