• I would like the “Featured Posts” to be at the bottom of the home page and the diary section or other post section above it. Does anyone know how to switch the order??
    Any help would be greatly appreciated.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Theme Author lyrathemes

    (@lyrathemes)

    For now – there is no mechanism built into the theme to change the order of home page sections.

    However, you can create a Child Theme and move around the code to re position the sections. Let me know if you’re interested in this option and I can help with the code.

    Thread Starter kbtremelling

    (@kbtremelling)

    I would love to get some help with that option! I have no idea about how to go about doing that. I would greatly appreciate the help with the coding!

    Thank you:)

    Theme Author lyrathemes

    (@lyrathemes)

    You’re welcome ?? You’ll need to create the child theme yourself though and I can then guide you with the changes.

    Thread Starter kbtremelling

    (@kbtremelling)

    Is there a child theme plugin that you would suggest? I’ve been looking at CSS Editor plugins. Is the reordering of the features on my home page considered a minor change? I understand why creating a child theme may be better than a CSS Editor. I just don’t really know what is considered minor changes and what’s not.:)

    Theme Author lyrathemes

    (@lyrathemes)

    I wouldn’t suggest a plugin for the child theme. I have never tried one so I cannot recommend one… Here is the functions.php file you’ll need in your child theme: https://gist.github.com/lyrathemes/7f5c791b7351b7cadd7ab9faaba0b204

    The moving around of pieces on the home page is not a bit change since we’ve compartmentalized the sections in different files.

    Thread Starter kbtremelling

    (@kbtremelling)

    I successfully (I think) made the child theme. However, when I copy and pasted that code into the functions.php and reloaded my website I got a message saying “Parse error: syntax error, unexpected ‘<‘ in /home/thelit52/public_html/wp-content/themes/Kale-child/functions.php on line 8”. It’s referring to the <?php on the first line of your code found above through that link.

    I have this in the first few lines:

    <?php
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’, get_stylesheet_uri(), array( ‘parent-style’ ) );
    }

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    Do you know why it’s saying error??

    Again, thank you.

    • This reply was modified 7 years, 11 months ago by bdbrown.
    Thread Starter kbtremelling

    (@kbtremelling)

    Also when I deleted the “<?php” on line 8, the order on the front page did not change either.

    Hi there,

    Please create header.php file in your child theme and copy the content of header.php file from the original Kale theme. Then find these lines:

    <?php if(is_front_page() && !is_paged() ) {
    get_template_part('parts/frontpage', 'banner'); 
    get_template_part('parts/frontpage', 'featured');
    } ?>

    and change it to that:

    <?php if(is_front_page() && !is_paged() ) {
    get_template_part('parts/frontpage', 'banner'); 
    get_template_part('parts/frontpage', 'large');
    } ?>

    Next create footer.php file in your child theme and copy the content of footer.php file from the original Kale theme. Then find the following lines:

    <?php if(is_front_page() && !is_paged() ) { 
                get_template_part('parts/frontpage', 'large'); 
            } ?>

    and change it to these:

    <?php if(is_front_page() && !is_paged() ) { 
                get_template_part('parts/frontpage', 'featured'); 
            } ?>

    I hope that helps.

    Best,
    Jarek
    Kale Support

    Thread Starter kbtremelling

    (@kbtremelling)

    YES!! Thank you, that worked!

    Theme Author lyrathemes

    (@lyrathemes)

    Wonderful, thanks so much for helping here @jarektheme! ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Switch Order of “Featured Posts” and Diary’ is closed to new replies.